All Products
Search
Document Center

Cloud Monitor:DescribeMonitorGroupDynamicRules

Last Updated:Jun 11, 2026

Mengkueri aturan dinamis kelompok aplikasi.

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

cms:DescribeMonitorGroupDynamicRules

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

GroupId

integer

Yes

ID kelompok aplikasi.

123456

Elemen respons

Element

Type

Description

Example

object

The returned data.

Code

integer

The responses code.

Catatan

The status code 200 indicates that the request was successful.

200

Message

string

The returned message.

The specified resource is not found.

RequestId

string

The request ID.

2170B94A-1576-4D65-900E-2093037CDAF3

Success

boolean

Indicates whether the request was successful. Valid values:

  • true

  • false

true

Resource

object

Resource

array<object>

The resources that are associated with the application group.

array<object>

Category

string

The type of the cloud service to which the dynamic rule belongs. Valid values:

  • ecs: Elastic Compute Service (ECS)

  • rds: ApsaraDB RDS

  • slb: Server Load Balancer (SLB)

ecs

FilterRelation

string

The filter condition. Valid values:

  • and: queries the instances that meet all alert rules.

  • or: queries the instances that meet any alert rule.

and

Filters

object

Filter

array<object>

The dynamic rules of the application group.

object

Value

string

The value of the dynamic rule.

1

Function

string

The method that is used to filter the instances. Valid values:

  • contains: contains

  • startWith: starts with a prefix

  • endWith: ends with a suffix

contains

Name

string

The instance name.

hostName

Contoh

Respons sukses

JSONformat

{
  "Code": 200,
  "Message": "The specified resource is not found.",
  "RequestId": "2170B94A-1576-4D65-900E-2093037CDAF3",
  "Success": true,
  "Resource": {
    "Resource": [
      {
        "Category": "ecs",
        "FilterRelation": "and",
        "Filters": {
          "Filter": [
            {
              "Value": "1",
              "Function": "contains",
              "Name": "hostName"
            }
          ]
        }
      }
    ]
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 ParameterInvalid %s
401 AccessDeniedException You donot have sufficient access to perform this action.
500 InternalError %s
402 LimitExceeded The quota for this customer had been reached.
403 AccessForbidden The X.509 certificate or cms access key ID provided does not exist in our records.
206 %s %s
404 ResourceNotFound The specified resource is not found.
503 %s %s
406 %s %s
429 Throttli∂ngException The request was denied due to request throttling.
409 %s %s

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.