Queries the details of an event-triggered alert rule.

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeEventRuleTargetList

The operation that you want to perform. Set the value to DescribeEventRuleTargetList.

RuleName String Yes testRule

The name of the event-triggered alert rule.

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

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
Message String The Request is not authorization.

The error message.

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

The ID of the request.

ContactParameters Array of ContactParameter

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

ContactParameter
ContactGroupName String Default alert contact group

The name of the alert group.

Level String 3

The alert notification methods. Valid values:

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

Id String 1

The ID of the recipient.

FcParameters Array of FCParameter

The information about the recipients in Function Compute.

FCParameter
ServiceName String service1

The name of the Function Compute service.

FunctionName String fcTest1

The name of the function.

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

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
Id String 3

The ID of the recipient.

Region String cn-qingdao

The region where Function Compute is deployed.

MnsParameters Array of MnsParameter

The information about the recipients in Message Service (MNS).

MnsParameter
Queue String testQueue

The name of the MNS queue.

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

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
Region String cn-hangzhou

The region where MNS is deployed.

Id String 2

The ID of the recipient.

Topic String topic_sample

The MNS topic.

WebhookParameters Array of WebhookParameter

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

WebhookParameter
Url String http://www.aliyun.com

The callback URL.

Method String GET

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

Protocol String HTTP

The protocol type.

Id String 5

The ID of the recipient.

SlsParameters Array of SlsParameter

The information about the recipients in Log Service.

SlsParameter
Project String project_test

The name of the project.

LogStore String logstore_test

The name of the Logstore.

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

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
Region String cn-hangzhou

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

Id String 4

The ID of the recipient.

OpenApiParameters Array of OpenApiParameters

The information about the recipients in OpenAPI Explorer.

OpenApiParameters
Action String PutLogs

The name of the API operation.

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

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
Id String 3

The ID of the recipient.

Product String log

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

Region String cn-hangzhou

The region where the resource resides.

Role String MyRole

The name of the role.

Version String 2019-01-01

The version of the API.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeEventRuleTargetList
&RuleName=testRule
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeEventRuleTargetList>
		<RequestId>87170bc7-e28a-4c93-b9bf-90a1dbe84736</RequestId>
		<ContactParameters>
			<ContactParameter>
				<ContactGroupName>Default alert contact group</ContactGroupName>
				<Level>3</Level>
				<Id>1</Id>
			</ContactParameter>
		</ContactParameters>
		<SlsParameters>
			<SlsParameter>
				<Project>project_test</Project>
				<LogStore>logstore_test</LogStore>
				<Region>cn-hangzhou</Region>
				<Arn>acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***</Arn>
				<Id>2</Id>
			</SlsParameter>
		</SlsParameters>
		<Code>200</Code>
</DescribeEventRuleTargetList>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "87170bc7-e28a-4c93-b9bf-90a1dbe84736",
  "ContactParameters" : {
    "ContactParameter" : [ {
      "ContactGroupName":"Default alert contact group",
      "Level" : "3",
      "Id" : "1"
    } ]
  },
  "SlsParameters" : {
    "SlsParameter" : [ {
      "Project" : "project_test",
      "LogStore" : "logstore_test",
      "Region" : "cn-hangzhou",
      "Arn" : "acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c***",
      "Id" : "2"
    } ]
  },
  "Code" : "200"
}

Error codes

For a list of error codes, visit the API Error Center.