All Products
Search
Document Center

Resource Orchestration Service:GetChangeSet

Last Updated:Aug 18, 2025

Queries the specified change set information, with an option to retrieve the details of the associated template.

Operation description

This topic provides an example of how to query information about a change set with the ID 4c11658d-bd47-4dd0-ba64-727edc62**** in the China (Hangzhou) region.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ros:GetChangeSet

get

*stack

acs:ros:{#regionId}:{#accountId}:stack/{#stackId}

None

None

Request parameters

Parameter

Type

Required

Description

Example

ShowTemplate

boolean

No

Specifies whether to query the template. Valid values:

  • true

  • false (default)

false

RegionId

string

Yes

The region ID of the change set. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou

ChangeSetId

string

Yes

The ID of the change set.

4c11658d-bd47-4dd0-ba64-727edc62****

For more information about common request parameters, refer to Common parameters.

Response parameters

Parameter

Type

Description

Example

object

The returned parameters.

Status

string

The status of the change set.

CREATE_COMPLETE

Changes

array<object>

The list of changes in the change set.

object

The list of changes in the change set.

For more information, refer to ChangeSet data structure.

参见示例

Description

string

The description of the change set.

It is a demo.

Parameters

array<object>

The list of stack parameters.

object

The list of stack parameters.

ParameterKey

string

The name of the parameter.

ALIYUN::Region

ParameterValue

string

The value of the parameter.

cn-hangzhou

RequestId

string

The request ID.

3766EE04-76DD-50F9-9C23-3AF136CD5708

StatusReason

string

The reason why the change set is in an abnormal state.

too many changes.

CreateTime

string

The time when the change set was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.

2021-12-01T02:20:56

TemplateBody

string

The template that is associated with 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 ID of the change set.

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 the stack is rolled back 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.

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 for creating the change set.

object

The output logs.

Command

string

The name of the Terraform command that is executed. Valid values:

  • apply

  • plan

  • destroy

  • version

For more information about the commands, refer to Command.

apply

Stream

string

The output stream. Valid values:

  • stdout: standard output.

  • stderr: standard error.

stdout

Content

string

The content that is returned by the 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 ID of the resource group. For more information about resource groups, refer to What is a resource group?.

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.