Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DedicatedHost Reboot Feature #16737

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -8113,6 +8113,60 @@
"final-state-via": "azure-async-operation"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart": {
vbhasker-msft marked this conversation as resolved.
Show resolved Hide resolved
"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-07-01",
vbhasker-msft marked this conversation as resolved.
Show resolved Hide resolved
"hostGroupName": "myDedicatedHostGroup",
"hostName": "myHost"
},
"responses": {
"200": {
"description": "OK"
}
}
}