调用DescribeEventRuleTargetList接口查询指定事件报警规则的详情。
本文将提供一个示例,查询事件报警规则testRule
的详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeEventRuleTargetList |
系统规定参数。取值:DescribeEventRuleTargetList。 |
RuleName | String | 是 | testRule |
事件报警规则名称。 |
关于公共请求参数的详情,请参见公共参数。
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | 200 |
状态码。 说明 200表示成功。
|
Message | String | The Request is not authorization. |
错误信息。 |
RequestId | String | 87170bc7-e28a-4c93-b9bf-90a1dbe84736 |
请求ID。 |
ContactParameters | Array of ContactParameter |
报警联系组通知方式。 |
|
ContactParameter | |||
ContactGroupName | String | 默认告警通知组 |
报警联系人组的名称。 |
Level | String | 3 |
通知级别。取值: 4:钉钉、Email。 |
Id | String | 1 |
报警联系人组通知方式唯一标识。 |
FcParameters | Array of FCParameter |
函数计算通知方式。 |
|
FCParameter | |||
ServiceName | String | service1 |
函数计算服务名称。 |
FunctionName | String | fcTest1 |
函数名称。 |
Arn | String | acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx*** |
ARN资源描述。 格式:
|
Id | String | 3 |
函数服务通知方式唯一标识。 |
Region | String | cn-qingdao |
函数计算服务对应的地域。 |
MnsParameters | Array of MnsParameter |
消息服务通知。 |
|
MnsParameter | |||
Queue | String | testQueue |
消息队列的名称。 |
Arn | String | acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx*** |
ARN资源描述。 格式:
|
Region | String | cn-hangzhou |
消息服务对应的地域。 |
Id | String | 2 |
消息服务通知方式唯一标识。 |
Topic | String | topic_sample |
消息服务的主题。 |
WebhookParameters | Array of WebhookParameter |
URL回调通知方式。 |
|
WebhookParameter | |||
Url | String | http://www.aliyun.com |
回调的URL地址。 |
Method | String | GET |
HTTP回调的请求方法。目前支持GET和POST方法。 |
Protocol | String | HTTP |
协议类型。 |
Id | String | 5 |
URL回调通知方式唯一标识。 |
SlsParameters | Array of SlsParameter |
日志服务(SLS)通知方式。 |
|
SlsParameter | |||
Project | String | project_test |
Project名称。 |
LogStore | String | logstore_test |
LogStore名称。 |
Arn | String | acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c*** |
ARN资源描述。 格式:
|
Region | String | cn-hangzhou |
Project对应的地域。 |
Id | String | 4 |
日志服务通知方式唯一标识。 |
OpenApiParameters | Array of OpenApiParameters |
回调API的参数含义。 |
|
OpenApiParameters | |||
Action | String | PutLogs |
API名称。 |
Arn | String | acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx*** |
ARN资源描述。 格式:
|
Id | String | 3 |
API回调通知方式的唯一标识。 |
Product | String | log |
API对应的云产品ID。 |
Region | String | cn-hangzhou |
资源对应的地域。 |
Role | String | MyRole |
角色名称。 |
Version | String | 2019-01-01 |
API的版本。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeEventRuleTargetList
&RuleName=testRule
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeEventRuleTargetList>
<RequestId>87170bc7-e28a-4c93-b9bf-90a1dbe84736</RequestId>
<ContactParameters>
<ContactParameter>
<ContactGroupName>默认告警通知组</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
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "87170bc7-e28a-4c93-b9bf-90a1dbe84736",
"ContactParameters" : {
"ContactParameter" : [ {
"ContactGroupName" : "默认告警通知组",
"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"
}
错误码
访问错误中心查看更多错误码。