Skip to content

Commit

Permalink
Fixing the Network Virtual Appliance Restart Http return code to matc…
Browse files Browse the repository at this point in the history
…h 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]>
  • Loading branch information
arsheen and Arsheen Khatib authored May 16, 2024
1 parent 426b7ea commit 222ecb7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
},
"responses": {
"200": {
"headers": {
"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"
},
"body": {
"instanceIds": []
}
},
"202": {
"headers": {
"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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
},
"responses": {
"200": {
"headers": {
"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"
},
"body": {
"instanceIds": [
"0",
"1"
]
}
},
"202": {
"headers": {
"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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,19 @@
],
"responses": {
"200": {
"description": "Request successful. The operation restarts one or more Network Virtual Appliance VM resources."
"description": "Request successful. The operation restarts one or more Network Virtual Appliance VM resources.",
"schema": {
"$ref": "#/definitions/NetworkVirtualApplianceInstanceIds"
}
},
"202": {
"description": "Request accepted. The operation restarts one or more Network Virtual Appliance VM resources.",
"headers": {
"Location": {
"description": "The URL of the resource used to check the status of the asynchronous operation.",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
Expand All @@ -341,6 +353,10 @@
"Restart Specific NetworkVirtualAppliance VMs in VM Scale Set": {
"$ref": "./examples/NetworkVirtualApplianceSpecificRestart.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
},
Expand Down

0 comments on commit 222ecb7

Please sign in to comment.