Skip to content

Commit 74f4309

Browse files
authored
add operation statuses resource (#28591)
* add operation statuses resource * fix api-version
1 parent 3bf0935 commit 74f4309

3 files changed

Lines changed: 75 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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": "testLocation"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"status": "InProgress"
12+
}
13+
}
14+
}
15+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "ApiManagementClient",
5+
"description": "Resource provider operation status.",
6+
"version": "2023-09-01-preview"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"paths": {
19+
"/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/operationStatuses/{operationId}": {
20+
"get": {
21+
"operationId": "OperationStatus_Get",
22+
"description": "Returns the current status of an async operation.",
23+
"x-ms-examples": {
24+
"Get operation status": {
25+
"$ref": "./examples/ApiManagementGetOperationStatus.json"
26+
}
27+
},
28+
"parameters": [
29+
{
30+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
31+
},
32+
{
33+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
34+
},
35+
{
36+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter"
37+
},
38+
{
39+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/OperationIdParameter"
40+
}
41+
],
42+
"responses": {
43+
"200": {
44+
"description": "Requested operation status",
45+
"schema": {
46+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult"
47+
}
48+
},
49+
"default": {
50+
"description": "Error response describing why the operation failed.",
51+
"schema": {
52+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
53+
}
54+
}
55+
}
56+
}
57+
}
58+
}
59+
}

specification/apimanagement/resource-manager/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ input-file:
9494
- Microsoft.ApiManagement/preview/2023-09-01-preview/apimworkspaceloggers.json
9595
- Microsoft.ApiManagement/preview/2023-09-01-preview/apimworkspaces.json
9696
- Microsoft.ApiManagement/preview/2023-09-01-preview/definitions.json
97+
- Microsoft.ApiManagement/preview/2023-09-01-preview/operationStatuses.json
9798
```
9899
### Tag: package-preview-2023-05
99100

0 commit comments

Comments
 (0)