Modifies the custom headers for a domain name added to an Anti-DDoS Pro or Anti-DDoS Premium instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-ddoscoo:ModifyHeaders |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
The ID of the target resource group. Note
|
rg-acfmz6jbof5**** |
| Domain |
string |
Yes |
The domain name of your website. Note
A website forwarding rule must be configured for the domain name. You can call the DescribeDomains operation to query all domain names. |
example.aliyundoc.com |
| CustomHeaders |
string |
Yes |
The key-value pairs of the custom header. The key specifies the header field and the value specifies the header value. You can specify up to five key-value pairs. The total length cannot exceed 200 characters. Note:
Note
If you set the key to X-Forwarded-ClientSrcPort to retrieve the port of the client that accesses the Layer 7 DPI engine, set the value to "". |
{"X-Forwarded-ClientSrcPort":""} |
| EmbeddedHeaders |
string |
No |
{"X-Client-IP":true,"X-True-IP":true,"Web-Server-Type":true,"WL-Proxy-Client-IP":true,"X-Forwarded-Proto":true} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. Alibaba Cloud generates a unique ID for each request. Use the ID to troubleshoot issues. |
DC38A1D3-C042-5670-8394-8F6B1FA97B5E |
Examples
Success response
JSON format
{
"RequestId": "DC38A1D3-C042-5670-8394-8F6B1FA97B5E"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidEmbeddedHeaders | EmbeddedHeaders parameter is invalid. | The EmbeddedHeaders parameter passed in is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.