tencent cloud

负载均衡

Response Format for Asynchronous Task APIs

PDF
聚焦模式
字号
最后更新时间: 2024-12-19 11:01:27
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.

Response Format for Common Asynchronous Task APIs

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

Response Format for Batch Asynchronous Task APIs

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:
If the operation succeeds for all resources, the outermost code is 0.
If the operation fails for all resources, the outermost code is 5100.
If the operation fails for some resources, the outermost code is 5400. In this case, the terminal can obtain information about the failed operations via the detail field.
If the operation succeeds for all resources, the outermost code is 0.
If the operation fails for all resources, the outermost code is 5100.
If the operation fails for some resources, the outermost code is 5400. In this case, the terminal can obtain information about the failed operations via the detail field.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈