查詢事件規則列表。
介面說明
本文將提供一個示例,查詢事件報警規則testRule的詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cms:DescribeEventRuleTargetList |
get |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RuleName |
string |
是 |
事件報警規則名稱。 |
testRule |
關於公共請求參數的詳情,請參見公共參數。
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Code |
string |
狀態碼。 說明
200 表示成功。 |
200 |
| Message |
string |
錯誤資訊。 |
The Request is not authorization. |
| RequestId |
string |
請求 ID。 |
87170bc7-e28a-4c93-b9bf-90a1dbe84736 |
| ContactParameters |
object |
||
| ContactParameter |
array<object> |
報警聯絡組通知方式。 |
|
|
object |
|||
| ContactGroupName |
string |
警示連絡人群組的名稱。 |
Default alert notification group |
| Level |
string |
通知層級。取值: 4:DingTalk、Email。 |
3 |
| Id |
string |
警示連絡人群組通知方式唯一標識。 |
1 |
| FcParameters |
object |
||
| FCParameter |
array<object> |
函數計算通知方式。 |
|
|
object |
|||
| ServiceName |
string |
Function Compute 服務名稱。 |
service1 |
| FunctionName |
string |
函數名稱。 |
fcTest1 |
| Arn |
string |
ARN 資源描述。 格式:
|
acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx*** |
| Id |
string |
函數服務通知方式唯一標識。 |
3 |
| Region |
string |
Function Compute 服務對應的地區。 |
cn-qingdao |
| MnsParameters |
object |
||
| MnsParameter |
array<object> |
輕量訊息佇列(原 MNS)通知。 |
|
|
object |
|||
| Queue |
string |
輕量訊息佇列(原 MNS)的名稱。 |
testQueue |
| Arn |
string |
ARN 資源描述。 格式:
|
acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx*** |
| Region |
string |
輕量訊息佇列(原 MNS)對應的地區。 |
cn-hangzhou |
| Id |
string |
輕量訊息佇列(原 MNS)通知方式唯一標識。 |
2 |
| Topic |
string |
輕量訊息佇列(原 MNS)的主題。 |
topic_sample |
| WebhookParameters |
object |
||
| WebhookParameter |
array<object> |
URL 回呼通知方式。 |
|
|
object |
|||
| Url |
string |
回調的 URL 地址。 |
http://www.aliyun.com |
| Method |
string |
HTTP 回調的要求方法。目前支援 GET 和 POST 方法。 |
GET |
| Protocol |
string |
協議類型。 |
HTTP |
| Id |
string |
URL 回調通知方式唯一標識。 |
5 |
| SlsParameters |
object |
||
| SlsParameter |
array<object> |
日誌服務(SLS)通知方式。 |
|
|
object |
|||
| Project |
string |
Project 名稱。 |
project_test |
| LogStore |
string |
LogStore 名稱。 |
logstore_test |
| Arn |
string |
ARN 資源描述。 格式:
|
acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c*** |
| Region |
string |
Project 對應的地區。 |
cn-hangzhou |
| Id |
string |
Log Service 通知方式唯一標識。 |
4 |
| OpenApiParameters |
object |
||
| OpenApiParameters |
array<object> |
回呼 API 的參數含義。 |
|
|
object |
|||
| Action |
string |
API 名稱。 |
PutLogs |
| Arn |
string |
ARN 資源描述。
格式:
|
acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx*** |
| Id |
string |
API 回調通知方式的唯一標識。 |
3 |
| Product |
string |
API 對應的雲產品識別碼。 |
log |
| Region |
string |
資源對應的地區。 |
cn-hangzhou |
| Role |
string |
角色名稱。 |
MyRole |
| Version |
string |
API 的版本。 |
2019-01-01 |
樣本
正常返回樣本
JSON格式
{
"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"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。