Skip to content

Commit 222ecb7

Browse files
arsheenArsheen Khatib
andauthored
Fixing the Network Virtual Appliance Restart Http return code to match the REST API (#28959)
* Fixing the Netwotk Virtual Appliance Restart Http return code to match the REST API * Adding a header to the description * Fixing error * Fixing check failures * Adding examples * Add schema to the 200 response * Adding schema to examples and 202 * Remove schema for 202 --------- Co-authored-by: Arsheen Khatib <[email protected]>
1 parent 426b7ea commit 222ecb7

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceEmptyRestart.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
},
88
"responses": {
99
"200": {
10+
"headers": {
11+
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/00000000-0000-0000-0000-000000000000?api-version=2023-11-01"
12+
},
13+
"body": {
14+
"instanceIds": []
15+
}
16+
},
17+
"202": {
1018
"headers": {
1119
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/00000000-0000-0000-0000-000000000000?api-version=2023-11-01"
1220
}

specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSpecificRestart.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@
1111
},
1212
"responses": {
1313
"200": {
14+
"headers": {
15+
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/00000000-0000-0000-0000-000000000000?api-version=2023-11-01"
16+
},
17+
"body": {
18+
"instanceIds": [
19+
"0",
20+
"1"
21+
]
22+
}
23+
},
24+
"202": {
1425
"headers": {
1526
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/00000000-0000-0000-0000-000000000000?api-version=2023-11-01"
1627
}

specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/networkVirtualAppliance.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,19 @@
325325
],
326326
"responses": {
327327
"200": {
328-
"description": "Request successful. The operation restarts one or more Network Virtual Appliance VM resources."
328+
"description": "Request successful. The operation restarts one or more Network Virtual Appliance VM resources.",
329+
"schema": {
330+
"$ref": "#/definitions/NetworkVirtualApplianceInstanceIds"
331+
}
332+
},
333+
"202": {
334+
"description": "Request accepted. The operation restarts one or more Network Virtual Appliance VM resources.",
335+
"headers": {
336+
"Location": {
337+
"description": "The URL of the resource used to check the status of the asynchronous operation.",
338+
"type": "string"
339+
}
340+
}
329341
},
330342
"default": {
331343
"description": "Error response describing why the operation failed.",
@@ -341,6 +353,10 @@
341353
"Restart Specific NetworkVirtualAppliance VMs in VM Scale Set": {
342354
"$ref": "./examples/NetworkVirtualApplianceSpecificRestart.json"
343355
}
356+
},
357+
"x-ms-long-running-operation": true,
358+
"x-ms-long-running-operation-options": {
359+
"final-state-via": "location"
344360
}
345361
}
346362
},

0 commit comments

Comments
 (0)