Skip to content

Commit 203adb5

Browse files
authored
Add locations/operationsResults endpoint for DELETE workflow (#28808)
* add operation results * fix spec * operationresults * fix file name
1 parent 74f4309 commit 203adb5

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-09-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"operationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
6+
"location": "westus2"
7+
},
8+
"responses": {
9+
"200": {},
10+
"202": {
11+
"headers": {
12+
"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"
13+
}
14+
}
15+
}
16+
}

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/operationStatuses.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,54 @@
5454
}
5555
}
5656
}
57+
},
58+
"/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/operationResults/{operationId}": {
59+
"get": {
60+
"tags": [
61+
"OperationResults"
62+
],
63+
"description": "Returns operation results for long running operations executing DELETE or PATCH on the resource.",
64+
"operationId": "OperationsResults_Get",
65+
"x-ms-examples": {
66+
"ApiManagementGetOperationResult": {
67+
"$ref": "./examples/ApiManagementGetOperationResult.json"
68+
}
69+
},
70+
"parameters": [
71+
{
72+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
73+
},
74+
{
75+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
76+
},
77+
{
78+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter"
79+
},
80+
{
81+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/OperationIdParameter"
82+
}
83+
],
84+
"responses": {
85+
"200": {
86+
"description": "Successfully retrieved the operation result."
87+
},
88+
"202": {
89+
"description": "The operation is still in progress.",
90+
"headers": {
91+
"Location": {
92+
"type": "string",
93+
"description": "URL for determining when an operation has completed."
94+
}
95+
}
96+
},
97+
"default": {
98+
"description": "Error response describing why the operation failed.",
99+
"schema": {
100+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
101+
}
102+
}
103+
}
104+
}
57105
}
58106
}
59107
}

0 commit comments

Comments
 (0)