All Products
Search
Document Center

CloudMonitor:DescribeEventRuleTargetList

Last Updated:Oct 29, 2024

Queries event-triggered alert rules.

Operation description

This topic provides an example to show how to query the details of an event-triggered alert rule named testRule.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cms:DescribeEventRuleTargetListget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RuleNamestringYes

The name of the event-triggered alert rule.

testRule

For more information about common request parameters, see Common parameters.

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The HTTP status code.

Note The status code 200 indicates that the call was successful.
200
Messagestring

The error message.

The Request is not authorization.
RequestIdstring

The ID of the request.

87170bc7-e28a-4c93-b9bf-90a1dbe84736
ContactParametersarray<object>

The information about the recipients if alert notifications are sent to the alert contacts of an alert contact group.

ContactParameterobject
ContactGroupNamestring

The name of the alert group.

Levelstring

The alert notification methods. Valid values:

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

3
Idstring

The ID of the recipient.

1
FcParametersarray<object>

The information about the recipients in Function Compute.

FCParameterobject
ServiceNamestring

The name of the Function Compute service.

service1
FunctionNamestring

The name of the function.

fcTest1
Arnstring

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***
Idstring

The ID of the recipient.

3
Regionstring

The region where Function Compute is deployed.

cn-qingdao
MnsParametersarray<object>

The notifications of Simple Message Queue (formerly MNS) (SMQ).

MnsParameterobject
Queuestring

The name of the SMQ queue.

testQueue
Arnstring

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***
Regionstring

The region for SMQ.

cn-hangzhou
Idstring

The ID of the recipient.

2
Topicstring

The SMQ topic.

topic_sample
WebhookParametersarray<object>

The information about the recipients if alert notifications are sent by sending a request to a callback URL.

WebhookParameterobject
Urlstring

The callback URL.

http://www.aliyun.com
Methodstring

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

GET
Protocolstring

The protocol type.

HTTP
Idstring

The ID of the recipient.

5
SlsParametersarray<object>

The information about the recipients in Log Service.

SlsParameterobject
Projectstring

The name of the project.

project_test
LogStorestring

The name of the Logstore.

logstore_test
Arnstring

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***
Regionstring

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

cn-hangzhou
Idstring

The ID of the recipient.

4
OpenApiParametersarray<object>

The information about the recipients in OpenAPI Explorer.

OpenApiParametersobject
Actionstring

The name of the API operation.

PutLogs
Arnstring

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***
Idstring

The ID of the recipient.

3
Productstring

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

log
Regionstring

The region where the resource resides.

cn-hangzhou
Rolestring

The name of the role.

MyRole
Versionstring

The version of the API.

2019-01-01

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "The Request is not authorization.",
  "RequestId": "87170bc7-e28a-4c93-b9bf-90a1dbe84736",
  "ContactParameters": {
    "ContactParameter": [
      {
        "ContactGroupName": "",
        "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"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterValueIllegal parameters.Illegal parameters.
403AccessForbiddenUser not authorized to operate on the specified resource.-
500InternalErrorThe request processing has failed due to some unknown error.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history