All Products
Search
Document Center

Edge Security Acceleration:ListSiteRoutes

Last Updated:Nov 07, 2025

Queries the edge function routes for a website.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
esa:ListSiteRoutesnone
*Site
acs:esa:{#regionId}:{#accountId}:site/{#SiteId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SiteIdlongYes

The website ID, which can be obtained by calling the ListSites operation.

123456****
ConfigIdlongNo

The configuration ID.

35281609698****
ConfigTypestringNo

The configuration type. You can use this parameter to query global configurations or feature configurations. This parameter takes effect only if the functionName parameter is passed.

Valid values:

  • global
  • rule
global
RouteNamestringNo

The rule name. This parameter takes effect only when parameter functionName is specified.

test_route
PageNumberintegerNo

The page number. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Maximum value: 500. Default value: 500.

20

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

04F0F334-1335-436C-A1D7-6C044FE73368
Configsarray<object>

The returned configurations.

configsobject
ConfigIdlong

The configuration ID.

35281609698****
SiteVersioninteger

The version number of the website.

1
Sequenceinteger

The order in which the rule is executed.

1
RouteEnablestring

The route switch. Valid values:

  • on
  • off
on
Rulestring

The rule content.

(http.host eq \"video.example.com\")
RouteNamestring

The route name.

test_route
ConfigTypestring

The configuration type to query. Valid values:

  • global: global configurations.
  • rule: queries rule configurations.
global
RoutineNamestring

The function name.

test-routine1
Bypassstring

The bypass mode. Valid values:

  • on
  • off
on
Modestring

The configuration mode. Specifies whether to check the image used by the instance supports hot migration. Valid values:

  • simple: Simple Mode
  • custom: Custom Mode
simple
PageNumberinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries per page.

10
TotalCountinteger

The total number of entries returned.

16
TotalPageinteger

The total number of pages returned.

10

Examples

Sample success responses

JSONformat

{
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368\n",
  "Configs": [
    {
      "ConfigId": 0,
      "SiteVersion": 1,
      "Sequence": 1,
      "RouteEnable": "on",
      "Rule": "(http.host eq \\\"video.example.com\\\")",
      "RouteName": "test_route",
      "ConfigType": "global",
      "RoutineName": "test-routine1",
      "Bypass": "on",
      "Mode": "simple",
      "Fallback": ""
    }
  ],
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 16,
  "TotalPage": 10
}

Error codes

HTTP status codeError codeError messageDescription
400InternalExceptionFailed to call the service. Try again later or contact technical support.Failed to call the service. Try again later or contact technical support.
400InvalidParameter.FunctionNameThe specified feature does not exist. Specify a valid feature name based on the related documentation.The specified feature does not exist. Specify a valid feature name based on the related documentation.

For a list of error codes, visit the Service error codes.