All Products
Search
Document Center

Cloud Monitor:DescribeEventRuleTargetList

Last Updated:Jun 14, 2026

Mengkueri daftar aturan peringatan yang dipicu event.

Deskripsi operasi

Topik ini menyediakan contoh untuk mengkueri detail aturan peringatan yang dipicu event testRule.

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:DescribeEventRuleTargetList

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RuleName

string

Yes

Nama aturan peringatan yang dipicu event.

testRule

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

Elemen respons

Element

Type

Description

Example

object

Code

string

Kode status.

Catatan

Nilai 200 menunjukkan keberhasilan.

200

Message

string

Paket error.

The Request is not authorization.

RequestId

string

ID permintaan.

87170bc7-e28a-4c93-b9bf-90a1dbe84736

ContactParameters

object

ContactParameter

array<object>

Metode notifikasi kelompok kontak peringatan.

object

ContactGroupName

string

The name of the alert group.

Default alert notification group

Level

string

The alert notification methods. Valid values:

4: Alert notifications are sent by using DingTalk chatbots and emails.

3

Id

string

The ID of the recipient.

1

FcParameters

object

FCParameter

array<object>

Metode notifikasi Function Compute.

object

ServiceName

string

The name of the Function Compute service.

service1

FunctionName

string

The name of the function.

fcTest1

Arn

string

The Alibaba Cloud Resource Name (ARN) of the function.

Format: arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}. Fields:

  • Service: the code of an Alibaba Cloud service

  • Region: the region ID

  • Account: the ID of an Alibaba Cloud account

  • ResourceType: the resource type

  • ResourceId: the resource ID

acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***

Id

string

The ID of the recipient.

3

Region

string

The region where Function Compute is deployed.

cn-qingdao

MnsParameters

object

MnsParameter

array<object>

Metode notifikasi Simple Message Queue (sebelumnya MNS).

object

Queue

string

The name of the SMQ queue.

testQueue

Arn

string

The ARN of the MNS queue.

Format: arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}. Fields:

  • Service: the code of an Alibaba Cloud service

  • Region: the region ID

  • Account: the ID of an Alibaba Cloud account

  • ResourceType: the resource type

  • ResourceId: the resource ID

acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***

Region

string

The region for SMQ.

cn-hangzhou

Id

string

The ID of the recipient.

2

Topic

string

The SMQ topic.

topic_sample

WebhookParameters

object

WebhookParameter

array<object>

Metode notifikasi callback URL.

object

Url

string

The callback URL.

http://www.aliyun.com

Method

string

The HTTP request method. Valid values: GET and POST.

GET

Protocol

string

The protocol type.

HTTP

Id

string

The ID of the recipient.

5

SlsParameters

object

SlsParameter

array<object>

Metode notifikasi Simple Log Service (SLS).

object

Project

string

The name of the project.

project_test

LogStore

string

The name of the Logstore.

logstore_test

Arn

string

The ARN of the Log Service Logstore.

Format: arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}. Fields:

  • Service: the code of an Alibaba Cloud service

  • Region: the region ID

  • Account: the ID of an Alibaba Cloud account

  • ResourceType: the resource type

  • ResourceId: the resource ID

acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c***

Region

string

The ID of the region where the Log Service project resides.

cn-hangzhou

Id

string

The ID of the recipient.

4

OpenApiParameters

object

OpenApiParameters

array<object>

Parameter API callback.

object

Action

string

The name of the API operation.

PutLogs

Arn

string

The ARN of the API operation.

Format: arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}. Fields:

  • Service: the code of an Alibaba Cloud service

  • Region: the region ID

  • Account: the ID of an Alibaba Cloud account

  • ResourceType: the resource type

  • ResourceId: the resource ID The ARN of the Log Service Logstore.

Format: arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}. Fields:

  • Service: the code of an Alibaba Cloud service

  • Region: the region ID

  • Account: the ID of an Alibaba Cloud account

  • ResourceType: the resource type

  • ResourceId: the resource ID

acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***

Id

string

The ID of the recipient.

3

Product

string

The ID of the cloud service to which the API operation belongs.

log

Region

string

The region where the resource resides.

cn-hangzhou

Role

string

The name of the role.

MyRole

Version

string

The version of the API.

2019-01-01

Contoh

Respons sukses

JSONformat

{
  "Code": "200",
  "Message": "The Request is not authorization.",
  "RequestId": "87170bc7-e28a-4c93-b9bf-90a1dbe84736",
  "ContactParameters": {
    "ContactParameter": [
      {
        "ContactGroupName": "Default alert notification group",
        "Level": "3",
        "Id": "1"
      }
    ]
  },
  "FcParameters": {
    "FCParameter": [
      {
        "ServiceName": "service1",
        "FunctionName": "fcTest1",
        "Arn": "acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***",
        "Id": "3",
        "Region": "cn-qingdao"
      }
    ]
  },
  "MnsParameters": {
    "MnsParameter": [
      {
        "Queue": "testQueue",
        "Arn": "acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***",
        "Region": "cn-hangzhou",
        "Id": "2",
        "Topic": "topic_sample"
      }
    ]
  },
  "WebhookParameters": {
    "WebhookParameter": [
      {
        "Url": "http://www.aliyun.com",
        "Method": "GET",
        "Protocol": "HTTP",
        "Id": "5"
      }
    ]
  },
  "SlsParameters": {
    "SlsParameter": [
      {
        "Project": "project_test",
        "LogStore": "logstore_test",
        "Arn": "acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c***",
        "Region": "cn-hangzhou",
        "Id": "4"
      }
    ]
  },
  "OpenApiParameters": {
    "OpenApiParameters": [
      {
        "Action": "PutLogs",
        "Arn": "acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***",
        "Id": "3",
        "Product": "log",
        "Region": "cn-hangzhou",
        "Role": "MyRole",
        "Version": "2019-01-01"
      }
    ]
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidParameterValue Illegal parameters.
500 InternalError The request processing has failed due to some unknown error.
403 AccessForbidden User not authorized to operate on the specified resource.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.