All Products
Search
Document Center

Security Center:DescribeInstanceRebootStatus

Last Updated:Nov 13, 2024

Queries the status of the servers that you restart.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:DescribeInstanceRebootStatusget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
UuidsstringYes

The UUIDs of the servers that you restart. Separate multiple UUIDs with commas (,).

d77f7802-4f0a-4221-ab02-4d999e****

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of entries returned.

100
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

5BD95679-D63A-4151-97D0-188432F4A57
RebootStatusesarray<object>

An array that consists of the status information about the servers that you restart.

RebootStatusobject
Uuidstring

The UUID of the server.

9b59c2d6-0967-46e3-ad7b-152227c****
RebootStatusinteger

The status of the server. Valid values:

  • 0: The server is being restarted.
  • 1: The server is restarted.
  • 2: The server failed to be restarted.
2
Codestring

The error code that is returned when the server failed to be restarted. Valid values:

  • 10001: The restart command failed to be sent.
  • 10002: The restart operation failed.
  • 10003: A timeout error occurs.
10001
Msgstring

The message that is returned when the server failed to be restarted.

push failed

Examples

Sample success responses

JSONformat

{
  "TotalCount": 100,
  "RequestId": "5BD95679-D63A-4151-97D0-188432F4A57",
  "RebootStatuses": [
    {
      "Uuid": "9b59c2d6-0967-46e3-ad7b-152227c****",
      "RebootStatus": 2,
      "Code": "10001",
      "Msg": "push failed"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history