ListRouteRules

Updated at:

Queries the list of rules.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: Triggers an event.

  • 1: Triggers only an alert.

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: Minutes.

  • 1: Seconds.

0

relatedServiceId

integer

The ID of the associated service.

1

routeType

string

The route type. Valid values:

  • INCIDENT: Triggers an event.

  • ALERT: Triggers only an alert.

INCIDENT

incidentLevel

string

The event level in descending order of severity. Valid values:

  • P1

  • P2

  • P3

  • P4

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: Service group.

  • USER: Single user.

SERVICEGROUP

effection

string

The impact level. Valid values:

  • LOW: Minor.

  • HIGH: Severe.

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: Disabled.

  • ENABLE: Enabled.

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:

  • 0: Invalid.

  • 1: Valid.

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.