Queries the name of an event rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:ListEventCenterRuleName |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-kmsiwlxxdcva**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
031572FA-7D8F-4C05-B790-1071E0E05DE6 |
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Indicates whether the request is successful. |
true |
| RuleNames |
array<object> |
The list of names of event notification rules. |
[{'RuleName': 'mlf', 'RuleId': 'crecr-73q93pgljm1pc2fp'}] |
|
object |
|||
| RuleId |
string |
The ID of the event notification rule. |
crecr-n6pbhgjxtl***** |
| RuleName |
string |
The name of the event notification rule. |
test-chain |
Examples
Success response
JSON format
{
"RequestId": "031572FA-7D8F-4C05-B790-1071E0E05DE6",
"Code": "success",
"IsSuccess": true,
"RuleNames": [
{
"RuleId": "crecr-n6pbhgjxtl*****",
"RuleName": "test-chain"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.