Asynchronous task API is not defined in the updated API documents (available for certain services only, such as CVM). For specific usage, see the Action
field in each document.
Sending one request to common asynchronous task APIs allows you to operate only one type of resource at a time. For example, you can create CLB instance or reset the server’s operating system by making a call to the specified common asynchronous task API.
Name | Type | Description | Required |
---|---|---|---|
code | Int | Error code of the returned result. 0: success; other values: failure. | Yes |
message | String | Error message of the returned result. | No |
requestId | String | Task number. | Yes |
Sending one request to these asynchronous task APIs allows you to operate multiple resources. For example, you can change passwords, start or shut down servers.
Name | Type | Description | Required |
---|---|---|---|
code | Int | Error code of the returned result. 0: success; other values: failure. | Yes |
message | String | Error message of the returned result. | No |
detail | Array | The code, message, and requestId of the resource operation are returned with the resource ID as the key. | Yes |
Sample
{
"code": 0,
"message": "success",
"detail": {
"qcvm6a456b0d8f01d4b2b1f5073d3fb8ccc0": {
"code": 0,
"message": "",
"requestId": "1231231231231"
},
"qcvm6a456b0d8f01d4b2b1f5073d3fb8ccc1": {
"code": 0,
"message": "",
"requestId": "1231231231232"
}
}
}
Note:
detail
field.
本页内容是否解决了您的问题?