All Products
Search
Document Center

Resource Orchestration Service:GetChangeSet

Last Updated:Jun 10, 2026

Mengembalikan detail untuk set perubahan tertentu, secara opsional termasuk detail templat terkaitnya.

Deskripsi operasi

This topic demonstrates how to query a change set with the ID 4c11658d-bd47-4dd0-ba64-727edc62**** in the China (Hangzhou) region.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

ros:GetChangeSet

get

*stack

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

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

ShowTemplate

boolean

No

Apakah akan mengembalikan templat. Nilai valid:

  • true: Templat dikembalikan.

  • false (default): Templat tidak dikembalikan.

false

RegionId

string

Yes

ID Wilayah tempat set perubahan berada. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar terbaru Wilayah Alibaba Cloud.

cn-hangzhou

ChangeSetId

string

Yes

ID set perubahan.

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

Untuk detail tentang parameter permintaan umum, lihat Parameter umum.

Elemen respons

Element

Type

Description

Example

object

The data returned.

Status

string

The status of the change set.

CREATE_COMPLETE

Changes

array<object>

The changes in the change set.

object

A change in the change set.

For more information, see change set data structure.

参见示例

Description

string

The description of the change set.

It is a demo.

Parameters

array<object>

The parameters of the stack.

object

A parameter for the stack.

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 for the change set's abnormal status.

too many changes.

CreateTime

string

The time when the change set was created. The time is in UTC and uses the YYYY-MM-DDThh:mm:ss format.

2021-12-01T02:20:56

TemplateBody

string

The template body of the change set.

Catatan

This parameter is returned 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 to disable rollback when a stack creation or update fails.

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

Logs for the change set.

TerraformLogs

array<object>

The Terraform output logs. This parameter is returned only for change sets of Terraform-based stacks.

Catatan

This parameter is unavailable while a change set is being created because the logs are generated only after the creation is complete.

object

A Terraform log entry.

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

A tag applied to the change set.

Key

string

The key of the tag.

usage

Value

string

The value of the tag.

test

ResourceGroupId

string

The ID of the resource group.
For more information about resource groups, see What is a resource group?.

rg-acfmxazb4ph6aiy****

Contoh

Respons sukses

JSONformat

{
  "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****"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.