Queries notification policies.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListDispatchRule |
The operation that you want to perform. Set the value to ListDispatchRule. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region. |
Name | String | No | Prod |
The name of the notification policy to be queried. Fuzzy match is supported. |
System | Boolean | No | true |
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DispatchRules | Array of DispatchRule |
The struct returned. |
|
Name | String | Prod |
The name of the notification policy. |
RuleId | Long | 10282 |
The ID of the notification policy. |
State | String | true |
Indicates whether the notification policy is enabled.
|
RequestId | String | 34ED024E-9E31-434A-9E4E-D9D15C3**** |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListDispatchRule
&RegionId=cn-hangzhou
&<Common request parameters>|
Sample success responses
XML
format
<ListDispatchRuleResponse>
<RequestId>34ED024E-9E31-434A-9E4E-D9D15C3**** </RequestId>
<DispatchRules>
<State>true</State>
<RuleId>10282</RuleId>
<Name>Prod</Name>
</DispatchRules>
</ListDispatchRuleResponse>
JSON
format
{
"RequestId": "34ED024E-9E31-434A-9E4E-D9D15C3****",
"DispatchRules": {
"State": true,
"RuleId": 10282,
"Name": "Prod"
}
}