The DescribeChangeOrder API queries change order information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:DescribeChangeOrder |
get |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/sam/changeorder/DescribeChangeOrder HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ChangeOrderId |
string |
Yes |
Change order ID. Obtain by calling the ListChangeOrders API. |
76fa5c0-9ebb-4bb4-b383-1f885447**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Returned data. |
||
| RequestId |
string |
Request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
Additional information about the call result. |
success |
| TraceId |
string |
Call chain ID, used for term query of call information. |
0a98a02315955564772843261e**** |
| Data |
object |
Change order information. |
|
| Status |
integer |
Batch status. Values are as follows:
|
2 |
| SubStatus |
integer |
Deployment sub-status. Use this to determine if an exception occurred during deployment. Values are as follows:
|
0 |
| ApprovalId |
string |
Operation approval ID. |
67de0b39-a9d4-4c09-a170-cf438208**** |
| ErrorMessage |
string |
Error message. |
success |
| BatchWaitTime |
integer |
Wait time before starting the next batch in automatic batch mode. Unit: minutes. |
0 |
| CreateTime |
string |
Creation time. |
2020-12-17 21:06:45 |
| BatchCount |
integer |
Number of batches. |
1 |
| CoTypeCode |
string |
Change type code. Values are as follows:
|
CoRestartInstances |
| SupportRollback |
boolean |
Whether rollback is supported. Values are as follows:
|
false |
| ChangeOrderId |
string |
Change order ID. |
765fa5c0-9ebb-4bb4-b383-1f885447** |
| AppName |
string |
Application name. |
app-test |
| BatchType |
string |
Batch type. Values are as follows:
|
auto |
| Description |
string |
Change order description. |
description |
| CoType |
string |
Change type, a description of CoTypeCode. |
批量重启实例 |
| Auto |
boolean |
Whether it is an automatic batch. Values are as follows:
|
true |
| CurrentPipelineId |
string |
Current batch ID. |
0e4acf82-c9b1-4c1e-ac28-55776338**** |
| Pipelines |
array<object> |
Batch information. |
|
|
object |
Batch information. |
||
| Status |
integer |
Batch status. Values are as follows:
|
2 |
| StartTime |
integer |
Start time. |
1562831689704 |
| UpdateTime |
integer |
Last update time. |
1562847178007 |
| BatchType |
integer |
Batch type. |
0 |
| ParallelCount |
integer |
Number of parallel tasks within the batch. |
0 |
| PipelineName |
string |
Batch name. |
Batch 1 Change |
| PipelineId |
string |
Batch ID. |
0e4acf82-c9b1-4c1e-ac28-55776338**** |
| AppId |
string |
Application ID. |
bbbbb-3fd370b2-3646-4ba6-91f9-9423e19ab0cd-***** |
| ApplicationUpdateStrategy |
string |
||
| ApplicationEnableGreyTagRoute |
boolean |
||
| ErrorCode |
string |
Error code. Values are as follows:
|
空 |
| Code |
string |
API status or POP error code. Values are as follows:
|
200 |
| Success |
boolean |
Whether change order information was queried successfully. Values are as follows:
|
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"Status": 2,
"SubStatus": 0,
"ApprovalId": "67de0b39-a9d4-4c09-a170-cf438208****",
"ErrorMessage": "success",
"BatchWaitTime": 0,
"CreateTime": "2020-12-17 21:06:45",
"BatchCount": 1,
"CoTypeCode": "CoRestartInstances",
"SupportRollback": false,
"ChangeOrderId": "765fa5c0-9ebb-4bb4-b383-1f885447**",
"AppName": "app-test",
"BatchType": "auto",
"Description": "description",
"CoType": "批量重启实例",
"Auto": true,
"CurrentPipelineId": "0e4acf82-c9b1-4c1e-ac28-55776338****",
"Pipelines": [
{
"Status": 2,
"StartTime": 1562831689704,
"UpdateTime": 1562847178007,
"BatchType": 0,
"ParallelCount": 0,
"PipelineName": "Batch 1 Change",
"PipelineId": "0e4acf82-c9b1-4c1e-ac28-55776338****"
}
],
"AppId": "bbbbb-3fd370b2-3646-4ba6-91f9-9423e19ab0cd-*****",
"ApplicationUpdateStrategy": "",
"ApplicationEnableGreyTagRoute": false
},
"ErrorCode": "空",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | |
| 400 | Resouce.no.permission | You are not authorized to operate on the specified resources. | You are not authorized to operate on the specified resources. |
| 400 | InvalidChangeOrder.NotFound | The current change order does not exist. | The current change order does not exist. |
| 404 | InvalidAppId.NotFound | The specified AppId does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.