All Products
Search
Document Center

Resource Orchestration Service:GetStackGroupOperation

Last Updated:Jun 10, 2026

Mengkueri informasi tentang operasi kelompok stack di wilayah Alibaba Cloud.

Deskripsi operasi

In this example, the information about the stack group operation whose ID is 6da106ca-1784-4a6f-a7e1-e723863d**** is queried. The stack group named MyStackGroup is granted self-managed permissions and deployed 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:GetStackGroupOperation

get

*StackGroupOperation

acs:ros:{#regionId}:{#accountId}:stackgroupoperation/{#OperationId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID wilayah kelompok stack. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru.

cn-hangzhou

OperationId

string

Yes

ID operasi. Anda dapat memanggil operasi ListStackGroupOperations untuk mengkueri ID operasi.

6da106ca-1784-4a6f-a7e1-e723863d****

Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Parameter umum.

Elemen respons

Element

Type

Description

Example

object

RequestId

string

The request ID.

14A07460-EBE7-47CA-9757-12CC4761D47A

StackGroupOperation

object

The information about the stack group operation.

Status

string

The state of the operation.

Valid values:

  • RUNNING

  • SUCCEEDED

  • FAILED

  • STOPPING

  • STOPPED

SUCCEEDED

StackGroupId

string

The ID of the stack group.

fd0ddef9-9540-4b42-a464-94f77835****

Action

string

The operation type.

Valid values:

  • CREATE

  • UPDATE

  • DELETE

  • DETECT_DRIFT

DELETE

CreateTime

string

The time when the operation was initiated.

2020-01-20T09:22:3

RetainStacks

boolean

Indicates whether stacks are retained when the associated stack instances are deleted. When you delete a stack instance, you can choose to delete or retain the stack with which the stack instance is associated.

Valid values:

  • true: Stacks are retained when the associated stack instances are deleted.

  • false: Stacks are deleted when the associated stack instances are deleted. Proceed with caution.

Catatan

This parameter is returned only if you delete stack instances.

true

StackGroupName

string

The name of the stack group.

MyStackGroup

OperationId

string

The operation ID.

6da106ca-1784-4a6f-a7e1-e723863d****

OperationDescription

string

The description of the operation.

Catatan

This parameter is returned only if OperationDescription is specified when the CreateStackInstances operation is called to create stack instances.

Create stack instance in hangzhou

StackGroupDriftDetectionDetail

object

The information about drift detection.

Catatan

This parameter is returned only if drift detection is performed.

DriftDetectionTime

string

The time when drift detection was performed.

2020-02-27T07:47:47

TotalStackInstancesCount

integer

The number of stack instances.

2

FailedStackInstancesCount

integer

The number of stack instances that failed drift detection.

0

DriftDetectionStatus

string

The drift detection state.

Valid values:

  • COMPLETED: Drift detection is performed on the stack group and all stack instances passed the drift detection.

  • FAILED: Drift detection is performed on the stack group. The number of stack instances that failed the drift detection exceeds the specified threshold.

  • PARTIAL_SUCCESS: Drift detection is performed on the stack group. The number of stack instances that failed the drift detection does not exceed the specified threshold.

  • IN_PROGRESS: Drift detection is being performed on the stack group.

  • STOPPED: Drift detection is canceled for the stack group.

COMPLETED

StackGroupDriftStatus

string

The drift state of the stack group.

Valid values:

  • DRIFTED: At least one stack instance in the stack group has drifted.

  • NOT_CHECKED: No successful drift detection is performed in the stack group.

  • IN_SYNC: All the stack instances in the stack group are being synchronized.

DRIFTED

InProgressStackInstancesCount

integer

The number of stack instances on which drift detection was being performed.

0

InSyncStackInstancesCount

integer

The number of stack instances that were being synchronized.

1

CancelledStackInstancesCount

integer

The number of stack instances for which drift detection was canceled.

0

DriftedStackInstancesCount

integer

The number of stack instances that have drifted.

1

OperationPreferences

object

The operation settings.

MaxConcurrentCount

integer

The maximum number of accounts within which stacks are deployed at the same time in each region.

Valid values: 1 to 20.

Catatan

Only one of MaxConcurrentCount and MaxConcurrentPercentage can be returned.

1

FailureToleranceCount

integer

The number of accounts within which stack operation failures are allowed to occur in each region. If the value of this parameter is exceeded in a region, Resource Orchestration Service (ROS) stops the operation in the region. If the operation is stopped in one region, the operation is no longer performed in other regions.

Valid values: 0 to 20.

Catatan

Only one of FailureToleranceCount and FailureTolerancePercentage can be returned.

1

MaxConcurrentPercentage

integer

The percentage of the maximum number of accounts within which stacks are deployed at the same time to the total number of accounts in each region.

Valid values: 1 to 100.

Catatan

Only one of MaxConcurrentCount and MaxConcurrentPercentage can be returned.

10

RegionIdsOrder

array

The regions in the order of operation execution.

string

The region in the order of operation execution.

["cn-hangzhou","cn-beijing"]

FailureTolerancePercentage

integer

The percentage of the number of accounts within which stack operation failures are allowed to occur to the total number of accounts in each region. If the value of this parameter is exceeded in a region, ROS stops the operation in the region.

Valid values: 0 to 100.

Catatan

Only one of FailureToleranceCount and FailureTolerancePercentage can be returned.

10

EndTime

string

The time when the operation ended.

2020-01-20T09:22:4

ExecutionRoleName

string

The name of the RAM role that you specify for the execution account when you create the self-managed stack group. The administrator role AliyunROSStackGroupAdministrationRole assumes the execution role to perform operations. If this parameter is not specified, the default value AliyunROSStackGroupExecutionRole is returned.

AliyunROSStackGroupExecutionRole

AdministrationRoleName

string

The name of the RAM role that you specify for the administrator account when you create the self-managed stack group. ROS assumes the administrator role to perform operations. If this parameter is not specified, the default value AliyunROSStackGroupAdministrationRole is returned.

AliyunROSStackGroupAdministrationRole

DeploymentTargets

object

The destinations to deploy stack instances when the stack is granted service-managed permissions.

RdFolderIds

array

The IDs of the folders in the resource directory.

string

The ID of the folder in the resource directory.

["fd-4PvlVLOL8v"]

AccountIds

array

The IDs of the members in the resource directory.

Catatan

This parameter is returned only if AccountIds is specified when the UpdateStackInstances operation is called to update stack instances.

string

The ID of the member in the resource directory.

Catatan

This parameter is returned only if AccountIds is specified when the UpdateStackInstances opeation is called to update stack instances.

["151266687691****","141261387191****"]

Contoh

Respons sukses

JSONformat

{
  "RequestId": "14A07460-EBE7-47CA-9757-12CC4761D47A",
  "StackGroupOperation": {
    "Status": "SUCCEEDED",
    "StackGroupId": "fd0ddef9-9540-4b42-a464-94f77835****",
    "Action": "DELETE",
    "CreateTime": "2020-01-20T09:22:3",
    "RetainStacks": true,
    "StackGroupName": "MyStackGroup",
    "OperationId": "6da106ca-1784-4a6f-a7e1-e723863d****",
    "OperationDescription": "Create stack instance in hangzhou",
    "StackGroupDriftDetectionDetail": {
      "DriftDetectionTime": "2020-02-27T07:47:47",
      "TotalStackInstancesCount": 2,
      "FailedStackInstancesCount": 0,
      "DriftDetectionStatus": "COMPLETED",
      "StackGroupDriftStatus": "DRIFTED",
      "InProgressStackInstancesCount": 0,
      "InSyncStackInstancesCount": 1,
      "CancelledStackInstancesCount": 0,
      "DriftedStackInstancesCount": 1
    },
    "OperationPreferences": {
      "MaxConcurrentCount": 1,
      "FailureToleranceCount": 1,
      "MaxConcurrentPercentage": 10,
      "RegionIdsOrder": [
        "[\"cn-hangzhou\",\"cn-beijing\"]"
      ],
      "FailureTolerancePercentage": 10
    },
    "EndTime": "2020-01-20T09:22:4",
    "ExecutionRoleName": "AliyunROSStackGroupExecutionRole",
    "AdministrationRoleName": "AliyunROSStackGroupAdministrationRole",
    "DeploymentTargets": {
      "RdFolderIds": [
        "[\"fd-4PvlVLOL8v\"]"
      ],
      "AccountIds": [
        "[\"151266687691****\",\"141261387191****\"]"
      ]
    }
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.