All Products
Search
Document Center

Edge Security Acceleration:GetNetworkOptimization

Last Updated:Nov 07, 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 a single network optimization configuration

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

Request parameters

ParameterTypeRequiredDescriptionExample
SiteIdlongYes

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

12312312213212
ConfigIdlongYes

Configuration ConfigId, which can be obtained by calling the ListNetworkOptimizations interface.

35281609698****

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

Request ID.

C370DAF1-C838-4288-A1A0-9A87633D248E
ConfigIdlong

Configuration ID.

35281609698****
ConfigTypestring

Configuration type, which can be used to query global or rule configurations. Value range:

  • global: Query global configuration.
  • rule: Query rule configuration.
global
SiteVersioninteger

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

1
Sequenceinteger

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

2
RuleEnablestring

Rule switch. This parameter is not required when adding a global configuration. Value range:

  • on: Enable.
  • off: Disable.
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, for example: (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
SmartRoutingstring

Whether to enable smart routing service, default is disabled. Value range:

  • on: Enable
  • off: Disable
on
Http2Originstring

Whether to enable HTTP2 origin, default is disabled. Value range:

  • on: Enable
  • off: Disable
on
Websocketstring

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

  • on: Enable
  • off: Disable
on
Grpcstring

Whether to enable GRPC, default is disabled. Value range:

  • on: Enable
  • off: Disable
on
UploadMaxFilesizestring

Maximum upload file size in MB, with a range from 100 to 500.

500

Examples

Sample success responses

JSONformat

{
  "RequestId": "C370DAF1-C838-4288-A1A0-9A87633D248E",
  "ConfigId": 0,
  "ConfigType": "global",
  "SiteVersion": 1,
  "Sequence": 2,
  "RuleEnable": "on",
  "Rule": "(http.host eq \\\"video.example.com\\\")\n",
  "RuleName": "rule_example",
  "SmartRouting": "on",
  "Http2Origin": "on",
  "Websocket": "on",
  "Grpc": "on",
  "UploadMaxFilesize": 500
}

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.

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