All Products
Search
Document Center

Edge Security Acceleration:ListNetworkOptimizations

Last Updated:Nov 15, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Query multiple network optimization configurations

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:ListNetworkOptimizationsnone
*Site
acs:esa:{#regionId}:{#accountId}:site/{#SiteId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SiteIdlongYes

Site ID, which can be obtained by calling the ListSites interface.

1231231221****
ConfigIdlongNo

Configuration ID.

3528160969****
ConfigTypestringNo

Configuration type, which can be used to query global or rule-based configurations. The value range is as follows:

  • global: Query global configuration.
  • rule: Query rule-based configuration.

This parameter is optional; if not provided, it does not distinguish between global and rule-based configurations.

global
RuleNamestringNo

Rule name, which can be used to find the rule with the specified name.

test
PageNumberintegerNo

Page number, defaulting to 1 if not provided.

1
PageSizeintegerNo

Number of items per page, with a maximum of 500. Defaults to 500 if not provided.

20
SiteVersionintegerNo

Site version number. For sites with version management enabled, this parameter can specify the site version for which the configuration takes effect, defaulting to version 0.

1

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

Request ID.

EEEBE525-F576-1196-8DAF-2D70CA3F4D2F
Configsarray<object>

Response body configurations.

configsobject
ConfigIdlong

Configuration ID.

395386449776640
SiteVersioninteger

Site configuration version number. For sites with version management enabled, this parameter can specify the site version for which the configuration takes effect, defaulting to version 0.

1
Sequenceinteger

Rule execution order. The smaller the value, the higher the priority.

1
RuleEnablestring

Rule switch. This parameter is not required when adding a global configuration. The value range is as follows:

  • on: Enabled.
  • off: Disabled.
on
Rulestring

Rule content, using conditional expressions to match user requests. This parameter is not required when adding a global configuration. There are two usage scenarios:

  • Match all incoming requests: Set the value to true
  • Match specific requests: Set the value to a custom expression, e.g., (http.host eq "video.example.com")
(http.host eq \"video.example.com\")
RuleNamestring

Rule name. This parameter is not required when adding a global configuration.

rule_example
ConfigTypestring

Configuration type, which can be used to query global or rule-based configurations. The value range is as follows:

  • global: Query global configuration.
  • rule: Query rule-based configuration.
global
SmartRoutingstring

Whether to enable smart routing service, defaulting to off. The value range is as follows:

  • on: Enabled.
  • off: Disabled.
on
Http2Originstring

Whether to enable HTTP2 origin, defaulting to off. The value range is as follows:

  • on: Enabled.
  • off: Disabled.
on
Websocketstring

Whether to enable Websocket, enabled by default. Value range:

  • on: Enabled.
  • off: Disabled.
on
Grpcstring

Whether to enable GRPC, default is off. The value range is:

  • on: enabled.
  • off: disabled.
on
UploadMaxFilesizestring

Maximum file size for upload, in MB. The value range is 100 to 500.

500
PageNumberinteger

The current page number.

1
PageSizeinteger

The size of the page.

10
TotalCountinteger

Total number of records.

100
TotalPageinteger

Total number of pages.

2

Examples

Sample success responses

JSONformat

{
  "RequestId": "EEEBE525-F576-1196-8DAF-2D70CA3F4D2F",
  "Configs": [
    {
      "ConfigId": 395386449776640,
      "SiteVersion": 1,
      "Sequence": 1,
      "RuleEnable": "on",
      "Rule": "(http.host eq \\\"video.example.com\\\")\n",
      "RuleName": "rule_example",
      "ConfigType": "global",
      "SmartRouting": "on",
      "Http2Origin": "on",
      "Websocket": "on",
      "Grpc": "on",
      "UploadMaxFilesize": 500
    }
  ],
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 100,
  "TotalPage": 2
}

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.