Modifies the cookie settings of a protected object and the method to identify the originating IP addresses of clients.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
XffStatus | integer | Yes | Specifies whether a Layer 7 proxy is deployed in front of WAF. Layer 7 proxies include Anti-DDoS Proxy and Alibaba Cloud CDN. Valid values:
| 0 |
InstanceId | string | Yes | The ID of the Web Application Firewall (WAF) instance. Note
You can call the DescribeInstance operation to query the ID of the WAF instance.
| waf_v2_public_cn-wwo3c****07 |
CustomHeaders | array | No | The custom header fields. Note
The first IP address in the specified custom header field is used as the originating IP address of the client to prevent X-Forwarded-For forgery. If you specify multiple header fields, WAF reads the values of the header fields in sequence until the originating IP address is obtained. If the originating IP address cannot be obtained, the first IP address in the X-Forwarded-For header is used as the originating IP address of the client.
| |
string | No | The custom header field. | x-forwarded-for | |
Resource | string | Yes | The name of the protected object. | alb-4pxu81fgagx3****mz-alb |
AcwCookieStatus | integer | No | The status of the tracking cookie.
| 0 |
AcwSecureStatus | integer | No | The status of the secure attribute of the tracking cookie.
| 0 |
AcwV3SecureStatus | integer | No | The status of the secure attribute of the slider CAPTCHA cookie.
| 0 |
ResourceManagerResourceGroupId | string | No | The ID of the Alibaba Cloud resource group. | rg-acfm2kie2****wq |
RegionId | string | No | The region in which the WAF instance is deployed. Valid values:
| cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "6C094583-9B3F-5BD8-8748-DC638E****BF"
}
Error codes
For a list of error codes, visit the Service error codes.