public class ModifyHeadersRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
customHeaders
The key-value pair of the custom header.
|
String |
domain
The domain name of the website.
|
String |
embeddedHeaders
example:
{"X-Client-IP":true,"X-True-IP":true,"Web-Server-Type":true,"WL-Proxy-Client-IP":true,"X-Forwarded-Proto":true}
|
String |
resourceGroupId
The ID of the resource group to which the instance belongs.
|
| 构造器和说明 |
|---|
ModifyHeadersRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ModifyHeadersRequest |
build(Map<String,?> map) |
String |
getCustomHeaders() |
String |
getDomain() |
String |
getEmbeddedHeaders() |
String |
getResourceGroupId() |
ModifyHeadersRequest |
setCustomHeaders(String customHeaders) |
ModifyHeadersRequest |
setDomain(String domain) |
ModifyHeadersRequest |
setEmbeddedHeaders(String embeddedHeaders) |
ModifyHeadersRequest |
setResourceGroupId(String resourceGroupId) |
@NameInMap(value="CustomHeaders") public String customHeaders
The key-value pair of the custom header. The key specifies the header name, and the value specifies the header value. You can specify up to five key-value pairs. The key-value pairs can be up to 200 characters in length.
Take note of the following items:
Do not use the following default HTTP headers:
Do not use standard HTTP headers or specific widely used custom HTTP headers. The standard HTTP headers include Host, User-Agent, Connection, and Upgrade, and the widely used custom HTTP headers include X-Real-IP, X-True-IP, X-Client-IP, Web-Server-Type, WL-Proxy-Client-IP, eEagleEye-RpcID, EagleEye-TraceID, X-Forwarded-Cluster, and X-Forwarded-Proto. If the preceding headers are used, the original content of the headers is overwritten.
If you specify a key of X-Forwarded-ClientSrcPort, the system obtains the originating ports of clients that access Anti-DDoS Proxy (a Layer 7 proxy). In this case, the value is an empty string.
This parameter is required.
example:{\"X-Forwarded-ClientSrcPort\":\"\"}
@NameInMap(value="Domain") public String domain
The domain name of the website.
A forwarding rule must be configured for the domain name. You can call the DescribeDomains operation to query all domain names.
This parameter is required.
example:example.aliyundoc.com
@NameInMap(value="EmbeddedHeaders") public String embeddedHeaders
{"X-Client-IP":true,"X-True-IP":true,"Web-Server-Type":true,"WL-Proxy-Client-IP":true,"X-Forwarded-Proto":true}
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which the instance belongs.
You can query resource group IDs in the Anti-DDoS Pro or Anti-DDoS Premium console or by calling the ListResourceGroups operation. For more information, see View basic information of a resource group.
Before you modify the resource group to which an instance belongs, you can call the ListResources operation to view the current resource group of the instance.
rg-acfmz6jbof5****
public static ModifyHeadersRequest build(Map<String,?> map) throws Exception
Exceptionpublic ModifyHeadersRequest setCustomHeaders(String customHeaders)
public String getCustomHeaders()
public ModifyHeadersRequest setDomain(String domain)
public String getDomain()
public ModifyHeadersRequest setEmbeddedHeaders(String embeddedHeaders)
public String getEmbeddedHeaders()
public ModifyHeadersRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
Copyright © 2026. All rights reserved.