Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Compute Diagnostic RP's Swagger API .(Ref PR: https://github.com/Azure/azure-rest-api-specs/pull/18317) #18351

Merged
merged 2 commits into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,98 @@
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/diskInspection/registerStorageConfiguration": {
"post": {
"tags": [
"registerStorageConfiguration"
],
"operationId": "DiskInspectionStorageConfiguration_Register",
"x-ms-long-running-operation": false,
"description": "Register a storageAccount for a subscription used for DiskInspection",
"consumes": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/LocationParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "storageConfigurationInput",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StorageConfigurationInput"
},
"description": "Storage Configuration object supplied in the body of the Post to cache storageAccount for a given subscription."
}
],
"responses": {
"200": {
"description": "Succeeded"
},
"default": {
"description": "Error response describing why the register operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Create a request for registering a storageAccount information.": {
"$ref": "./examples/RegisterStorageConfiguration.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/diskInspection/validateStorageConfiguration": {
"post": {
"tags": [
"validateStorageConfiguration"
],
"operationId": "DiskInspectionStorageConfiguration_Validate",
"x-ms-long-running-operation": false,
"description": "Validate if a storageAccount configuration exists for a subscription used for DiskInspection.",
"consumes": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/LocationParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/StorageConfigurationResponse"
}
},
"default": {
"description": "Error response describing why the get call failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Returns storageAccount value for an existing configuration entry": {
"$ref": "./examples/ValidateStorageConfiguration.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -312,6 +404,28 @@
},
"description": "Api output result when disk inspection result is completed."
},
"StorageConfigurationInput": {
"type": "object",
"properties": {
"storageAccountId": {
"description": "Qualified name of the storage account",
"type": "string"
}
},
"required": [
"storageAccountId"
],
"description": "Data used for registering a Storage Account for a Subscription."
},
"StorageConfigurationResponse": {
"type": "object",
"properties": {
"storageAccountId": {
"type": "string"
}
},
"description": "Api output result when there is an existing storage configuration entry."
},
"ErrorResponse": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"location": "eastus",
"api-version": "2021-06-01-preview",
"storageConfigurationInput": {
"storageAccountId": "/subscriptions/88fd8cb2-8248-499e-9a2d-4929a4b0133c/resourceGroups/az-iid-blobtest/providers/Microsoft.Storage/storageAccounts/aziidblobtest"
}
},
"responses": {
"200": {
"headers": {
"x-ms-request-id": "fa55b700-8218-42b1-a3e3-1794cfd37629"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"location": "eastus",
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {
"headers": {
"x-ms-request-id": "27b7c568-16ec-46f3-bcf1-5bea3f2529b1"
},
"body": {
"storageAccountId": "/subscriptions/88fd8cb2-8248-499e-9a2d-4929a4b0133c/resourceGroups/az-iid-blobtest/providers/Microsoft.Storage/storageAccounts/aziidblobtest"
}
}
}
}