Retrieves the details of a scheduled shutdown task for an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidsw:GetInstanceShutdownTimer |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v2/instances/{InstanceId}/shutdowntimer HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. For more information, see ListInstances. |
dsw-730xxxxxxxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The scheduled shutdown task. |
||
| RequestId |
string |
The request ID. |
E7D55162-4489-1619-AAF5-3F97D5FCA948 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Message |
string |
The returned message. |
"XXX" |
| Code |
string |
The status code. Valid values:
|
null |
| HttpStatusCode |
integer |
The HTTP status code. Valid values:
|
null |
| InstanceId |
string |
The ID of the instance. |
dsw-730xxxxxxxxxx |
| GmtCreateTime |
string |
The time when the task was created. |
2021-01-12T14:36:01Z |
| GmtModifiedTime |
string |
The time when the task was last modified. |
2021-01-12T14:36:01Z |
| DueTime |
string |
The scheduled shutdown time. |
2021-01-12T14:36:01Z |
| RemainingTimeInMs |
integer |
The remaining time before shutdown, in milliseconds. |
3600000 |
Examples
Success response
JSON format
{
"RequestId": "E7D55162-4489-1619-AAF5-3F97D5FCA948",
"Success": true,
"Message": "\"XXX\"",
"Code": "null",
"HttpStatusCode": 0,
"InstanceId": "dsw-730xxxxxxxxxx",
"GmtCreateTime": "2021-01-12T14:36:01Z",
"GmtModifiedTime": "2021-01-12T14:36:01Z",
"DueTime": "2021-01-12T14:36:01Z",
"RemainingTimeInMs": 3600000
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.