GetChangeSet
Queries the information of a specified change set. You can choose whether to retrieve the corresponding template details.
Operation description
This topic provides an example on how to query the information of a change set whose ID is 4c11658d-bd47-4dd0-ba64-727edc62**** in the China (Hangzhou) region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:GetChangeSet |
get |
*stack
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ShowTemplate |
boolean |
No |
Specifies whether to retrieve the template. Valid values:
|
false |
| RegionId |
string |
Yes |
The region ID of the change set. You can call DescribeRegions to query the most recent region list. |
cn-hangzhou |
| ChangeSetId |
string |
Yes |
The change set ID. |
4c11658d-bd47-4dd0-ba64-727edc62**** |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Status |
string |
The status of the change set. |
CREATE_COMPLETE |
| Changes |
array<object> |
The changes of the change set. |
See examples. |
|
object |
The changes of the change set. For more information, see Change set data structure. |
See examples. |
|
| Description |
string |
The description of the change set. |
It is a demo. |
| Parameters |
array<object> |
The parameters of the stack. |
|
|
object |
The parameters of the stack. |
||
| ParameterKey |
string |
The parameter name. |
ALIYUN::Region |
| ParameterValue |
string |
The parameter value. |
cn-hangzhou |
| RequestId |
string |
The request ID. |
3766EE04-76DD-50F9-9C23-3AF136CD5708 |
| StatusReason |
string |
The reason why the change set is in its current status. |
too many changes. |
| CreateTime |
string |
The time when the change set was created. The time is displayed in UTC in the YYYY-MM-DDThh:mm:ss format, based on the ISO 8601 standard. |
2021-12-01T02:20:56 |
| TemplateBody |
string |
The template of the change set. Note
This parameter is valid only when ShowTemplate is set to true. |
{"ROSTemplateFormatVersion": "2015-09-01"} |
| ChangeSetName |
string |
The name of the change set. |
ChangeSet_template |
| ChangeSetId |
string |
The change set ID. |
4c11658d-bd47-4dd0-ba64-727edc62**** |
| ExecutionStatus |
string |
The execution status of the change set. |
AVAILABLE |
| ChangeSetType |
string |
The type of the change set. |
UPDATE |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| DisableRollback |
boolean |
Indicates whether to disable rollback when the stack fails to be created or updated. |
false |
| StackName |
string |
The name of the stack to which the change set belongs. |
stack_2021-10-13 |
| TimeoutInMinutes |
integer |
The timeout period for creating or updating the stack. Unit: minutes. |
60 |
| StackId |
string |
The ID of the stack to which the change set belongs. |
a486fc19-ebb7-4ce9-a70b-554a7c3d**** |
| Log |
object |
The output logs of the change set. |
|
| TerraformLogs |
array<object> |
The Terraform output logs. This parameter is returned only for change sets of Terraform stacks. Note
This parameter is not returned for change sets that are being created. This parameter indicates the logs generated during the creation of the change set. |
|
|
object |
The output log. |
||
| Command |
string |
The name of the Terraform command that is run. Valid values:
For more information about the commands, see Command. |
apply |
| Stream |
string |
The output stream. Valid values:
|
stdout |
| Content |
string |
The content that is output by the current command in the current output stream. |
Apply complete! Resources: 42 added, 0 changed, 0 destroyed. |
| Tags |
array<object> |
The tags of the change set. |
|
|
object |
The tags of the change set. |
||
| Key |
string |
The tag key. |
usage |
| Value |
string |
The tag value. |
test |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmxazb4ph6aiy**** |
Examples
Success response
JSON format
{
"Status": "CREATE_COMPLETE",
"Changes": [
{
"test": "test",
"test2": 1
}
],
"Description": "It is a demo.",
"Parameters": [
{
"ParameterKey": "ALIYUN::Region",
"ParameterValue": "cn-hangzhou"
}
],
"RequestId": "3766EE04-76DD-50F9-9C23-3AF136CD5708",
"StatusReason": "too many changes.",
"CreateTime": "2021-12-01T02:20:56",
"TemplateBody": "{\"ROSTemplateFormatVersion\": \"2015-09-01\"}",
"ChangeSetName": "ChangeSet_template",
"ChangeSetId": "4c11658d-bd47-4dd0-ba64-727edc62****",
"ExecutionStatus": "AVAILABLE",
"ChangeSetType": "UPDATE",
"RegionId": "cn-hangzhou",
"DisableRollback": false,
"StackName": "stack_2021-10-13",
"TimeoutInMinutes": 60,
"StackId": "a486fc19-ebb7-4ce9-a70b-554a7c3d****",
"Log": {
"TerraformLogs": [
{
"Command": "apply",
"Stream": "stdout",
"Content": "Apply complete! Resources: 42 added, 0 changed, 0 destroyed."
}
]
},
"Tags": [
{
"Key": "usage",
"Value": "test"
}
],
"ResourceGroupId": "rg-acfmxazb4ph6aiy****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.