ListRouteRules
Queries the list of rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:ListRouteRules |
get |
*All Resource
|
None | None |
Request syntax
POST /routeRule/list HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| ruleName |
string |
No |
The rule name. |
Rule |
| serviceName |
string |
No |
The service name. |
Service |
| pageNumber |
integer |
No |
The page number. |
1 |
| pageSize |
integer |
No |
The page size. |
10 |
| clientToken |
string |
No |
The client token. |
C4BE3837-1A13-413B-A225-2C88188E8A43 |
| routeType |
integer |
No |
The route type. Valid values:
|
0 |
| notFilterRouteRuleDeleted |
boolean |
No |
Specifies whether to include deleted routing rules. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
C4BE3837-1A13B-A225-2C88188E8A43 |
| data |
array<object> |
The rule list. |
|
|
object |
|||
| routeRuleId |
integer |
The rule ID. |
10000 |
| tenantRamId |
integer |
The tenant ID. |
1344383 |
| ruleName |
string |
The rule name. |
Rule name |
| relatedServiceName |
string |
The service name. |
Associated service name |
| timeWindow |
integer |
The time window. |
5 |
| matchCount |
integer |
The match count. |
10 |
| timeWindowUnit |
integer |
The unit of the time window. Valid values:
|
0 |
| relatedServiceId |
integer |
The ID of the associated service. |
1 |
| routeType |
string |
The route type. Valid values:
|
INCIDENT |
| incidentLevel |
string |
The event level in descending order of severity. Valid values:
|
P1 |
| assignObjectId |
integer |
The ID of the incident assignment object, which is a service group ID or a user ID. |
10 |
| assignObjectType |
string |
The event assignment object type. Valid values:
|
SERVICEGROUP |
| effection |
string |
The impact level. Valid values:
|
LOW |
| createTime |
string |
The creation time in the YYYY-MM-DD HH:mm:ss format. |
2020-03-05 15:53:55 |
| updateTime |
string |
The update time in the YYYY-MM-DD HH:mm:ss format. |
2020-03-05 15:53:55 |
| enableStatus |
string |
Specifies whether the rule is enabled. Valid values:
|
DISABLE |
| monitorSourceNames |
string |
The name of the monitoring source. |
zabbix |
| relServiceDeleteType |
integer |
The service deletion field. |
1 |
| isValid |
integer |
Specifies whether the rule is valid. Valid values:
|
1 |
| totalCount |
integer |
The total count. |
10 |
| pageNumber |
integer |
The page number. |
1 |
| pageSize |
integer |
The page size. |
10 |
Examples
Success response
JSON format
{
"requestId": "C4BE3837-1A13B-A225-2C88188E8A43",
"data": [
{
"routeRuleId": 10000,
"tenantRamId": 1344383,
"ruleName": "Rule name",
"relatedServiceName": "Associated service name",
"timeWindow": 0,
"matchCount": 10,
"timeWindowUnit": 0,
"relatedServiceId": 1,
"routeType": "INCIDENT",
"incidentLevel": "P1",
"assignObjectId": 10,
"assignObjectType": "SERVICEGROUP",
"effection": "LOW",
"createTime": "2020-03-05 15:53:55",
"updateTime": "2020-03-05 15:53:55",
"enableStatus": "DISABLE",
"monitorSourceNames": "zabbix",
"relServiceDeleteType": 1,
"isValid": 1
}
],
"totalCount": 10,
"pageNumber": 1,
"pageSize": 10
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.