All Products
Search
Document Center

Edge Security Acceleration:GetHttpIncomingRequestHeaderModificationRule

Last Updated:Jan 14, 2026

Queries the configuration details of an HTTP request header modification rule 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:GetHttpIncomingRequestHeaderModificationRuleget
*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.

608665779308176
ConfigIdlongYes

The ID of the configuration. You can call the ListHttpIncomingRequestHeaderModificationRules operation to query the ID.

433045006266368

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

5CC228B4-7A67-4016-9C9F-4A4133494A91
ConfigIdlong

The ID of the configuration.

402411533580288
ConfigTypestring

The type of the configuration. Valid values:

  • global: the global configuration.
  • rule: the rule configuration.
global
SiteVersioninteger

The version number of the website configurations. You can use this parameter to specify a version of your website to apply the feature settings. By default, version 0 is used.

0
Sequenceinteger

The order in which the rule is executed. A smaller value gives priority to the rule.

1
RuleEnablestring

Specifies whether to enable the rule. Valid values: You do not need to set this parameter when you add global configuration. Valid values:

  • on
  • off
on
Rulestring

The content of the rule. A conditional expression is used to match a user request. You do not need to set this parameter when you add global configuration. Use cases:

  • true: Match all incoming requests.
  • Set the value to a custom expression, for example: (http.host eq "video.example.com"): Match the specified request.
(http.host eq "video.example.com")
RuleNamestring

The rule name. You do not need to set this parameter when you add global configuration.

rule_example
RequestHeaderModificationarray<object>

The configurations for modifying request headers. You can add, delete, or edit a request header.

itemRequestHeaderobject

The configuration of modifying a request header.

Namestring

The name of the request header.

headerName
Operationstring

The action. Valid values:

  • add: adds a response header.
  • del: deletes a response header.
  • modify: modifies a response header.
add
Valuestring

The value of the request header.

headValue
Typestring

The value type. Valid values:

  • static
  • dynamic
static

Examples

Sample success responses

JSONformat

{
  "RequestId": "5CC228B4-7A67-4016-9C9F-4A4133494A91",
  "ConfigId": 402411533580288,
  "ConfigType": "global",
  "SiteVersion": 0,
  "Sequence": 1,
  "RuleEnable": "on",
  "Rule": "(http.host eq \"video.example.com\")",
  "RuleName": "rule_example\n",
  "RequestHeaderModification": [
    {
      "Name": "headerName",
      "Operation": "add",
      "Value": "headValue",
      "Type": "static"
    }
  ]
}

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.

Change history

Change timeSummary of changesOperation
2025-12-11The Error code has changedView Change Details