Restarts a specified node group.
Operation description
This operation is asynchronous. The instance does not restart immediately. After you call the operation successfully, the instance enters the restarting state. When the instance status changes to running, the restart is complete.
Try it now
Test
RAM authorization
Request syntax
POST /webapi/nodegroup/restart HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The ID of the instance. |
c-b25e21e24388**** |
| NodeGroupId |
string |
No |
The ID of the compute group. |
ng-3d5ce6454354**** |
| FastMode |
boolean |
No |
Whether to restart in fast mode. Default value: false.
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code of the request. |
200 |
| RequestId |
string |
The ID of the request. |
32A44F0D-BFF6-5664-999A-218BBDE7**** |
| Success |
boolean |
Indicates whether the request succeeded. |
false |
| ErrCode |
string |
The error code. |
InvalidParams |
| ErrMessage |
string |
The error message. |
Invalid params: [instance not exists]. |
| Data |
boolean |
The order ID. |
24151320976**** |
| AccessDeniedDetail |
string |
AccessDeniedDetail |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" } |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE7****",
"Success": false,
"ErrCode": "InvalidParams",
"ErrMessage": "Invalid params: [instance not exists].",
"Data": true,
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxx\", \"EncodedDiagnosticMessage\": \"xxx\", \"AuthPrincipalType\": \"xxx\", \"AuthPrincipalDisplayName\": \"xxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"sr:xxx\" }"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.