Skip to content

Commit

Permalink
DedicatedHost Reboot Feature (#16737)
Browse files Browse the repository at this point in the history
* added new feature to compute.json

* added example for my feature

* prettier check on the reboot example

* fixed names of parameters in example file:

* changed name to DedicatedHosts_reboot and moved change to where the other DH APIs are

* added cloud error to the reboot

* fixed default error, it was in the wrong spot

* moved reboot to end of specs

* moved older swagger files to 2021-11-01

* reverted previous commit

* renamed reboot to restart as per sameers comment

* updated description as per sameers comment

* updated api version to 2021-11-01 per sameers comment
  • Loading branch information
vbhasker-msft authored and grizzlytheodore committed Jan 3, 2022
1 parent 4756e54 commit 6fbc3c0
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8862,6 +8862,60 @@
"final-state-via": "azure-async-operation"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart": {
"post": {
"tags": [
"DedicatedHost"
],
"operationId": "DedicatedHosts_Restart",
"description": "Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview for more details.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "hostGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the dedicated host group."
},
{
"name": "hostName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the dedicated host."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Restart Dedicated Host.": {
"$ref": "./examples/compute/DedicatedHostRestart.json"
}
}
}
}
},
"definitions": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2021-11-01",
"hostGroupName": "myDedicatedHostGroup",
"hostName": "myHost"
},
"responses": {
"200": {
"description": "OK"
}
}
}

0 comments on commit 6fbc3c0

Please sign in to comment.