Skip to content

Commit

Permalink
Add locations/operationsResults endpoint for DELETE workflow (#28808)
Browse files Browse the repository at this point in the history
* add operation results

* fix spec

* operationresults

* fix file name
  • Loading branch information
solankisamir authored May 14, 2024
1 parent 74f4309 commit 203adb5
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"api-version": "2023-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"operationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"location": "westus2"
},
"responses": {
"200": {},
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus2/operationResults/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?api-version=2023-09-01-preview"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,54 @@
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/operationResults/{operationId}": {
"get": {
"tags": [
"OperationResults"
],
"description": "Returns operation results for long running operations executing DELETE or PATCH on the resource.",
"operationId": "OperationsResults_Get",
"x-ms-examples": {
"ApiManagementGetOperationResult": {
"$ref": "./examples/ApiManagementGetOperationResult.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/OperationIdParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved the operation result."
},
"202": {
"description": "The operation is still in progress.",
"headers": {
"Location": {
"type": "string",
"description": "URL for determining when an operation has completed."
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
}
}
}
}
}

0 comments on commit 203adb5

Please sign in to comment.