Call DescribeChangeOrder to get information about a change order.
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 |
The change order ID. You can obtain it by calling the ListChangeOrders interface. |
76fa5c0-9ebb-4bb4-b383-1f885447**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The message returned for the request. |
success |
| TraceId |
string |
The trace ID of the request. This ID is used for troubleshooting. |
0a98a02315955564772843261e**** |
| Data |
object |
The details of the change order. |
|
| Status |
integer |
The status of the change order. Valid values:
|
2 |
| SubStatus |
integer |
The substatus of the release order. This parameter indicates whether an exception occurred during the release. Valid values:
|
0 |
| ApprovalId |
string |
The approval ID for the operation. |
67de0b39-a9d4-4c09-a170-cf438208**** |
| ErrorMessage |
string |
The error message. |
success |
| BatchWaitTime |
integer |
The wait time, in minutes, between batches in an automatic release. |
0 |
| CreateTime |
string |
The time when the change order was created. |
2020-12-17 21:06:45 |
| BatchCount |
integer |
The number of batches. |
1 |
| CoTypeCode |
string |
The change type code. Valid values:
|
CoRestartInstances |
| SupportRollback |
boolean |
Indicates whether rollback is supported. Valid values:
|
false |
| ChangeOrderId |
string |
The change order ID. |
765fa5c0-9ebb-4bb4-b383-1f885447** |
| AppName |
string |
The application name. |
app-test |
| BatchType |
string |
The release mode for batches. Valid values:
|
auto |
| Description |
string |
The description of the change order. |
description |
| CoType |
string |
The change type. This parameter is a description of |
Batch Restart Instances |
| Auto |
boolean |
Indicates whether to automatically release the change in batches. Valid values:
|
true |
| CurrentPipelineId |
string |
The ID of the current batch. |
0e4acf82-c9b1-4c1e-ac28-55776338**** |
| Pipelines |
array<object> |
The batch information. |
|
|
object |
The information about a batch. |
||
| Status |
integer |
The status of the batch. Valid values:
|
2 |
| StartTime |
integer |
The start time of the batch. |
1562831689704 |
| UpdateTime |
integer |
The time when the batch was last updated. |
1562847178007 |
| BatchType |
integer |
The batch type. |
0 |
| ParallelCount |
integer |
The number of parallel tasks in a batch. |
0 |
| PipelineName |
string |
The batch name. |
Batch 1 Change |
| PipelineId |
string |
The batch ID. |
0e4acf82-c9b1-4c1e-ac28-55776338**** |
| AppId |
string |
The application ID. |
bbbbb-3fd370b2-3646-4ba6-91f9-9423e19ab0cd-***** |
| ApplicationUpdateStrategy |
string |
The update strategy for the application. |
|
| ApplicationEnableGreyTagRoute |
boolean |
Indicates whether gray tag routing is enabled. |
|
| ErrorCode |
string |
The error code.
|
|
| Code |
string |
The HTTP status code or POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
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": "Batch Restart Instances",
"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.