Configures features for one or more domain names.
Note
- You can specify up to 50 domain names in each request. Separate multiple domain names with commas (,)
- You can call this operation up to 30 times per second per account.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | BatchSetDcdnDomainConfigs |
The operation that you want to perform. Set the value to BatchSetDcdnDomainConfigs. |
DomainNames | String | Yes | example.com,example.org |
The accelerated domain names. Specify multiple accelerated domain names with commas (,). |
Functions | String | Yes | [{"functionArgs":[{"argName":"switch","argValue":"on"},{"argName":"region","argValue":"*"}],"functionName":"ipv6"}] |
The features that you want to configure. Format: Note
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
The ID of the request. |
Examples
Sample requests
http(s)://dcdn.aliyuncs.com/?Action=BatchSetDcdnDomainConfigs
&DomainName=example.com,example.org
&Functions=[{"functionArgs":[{"argName":"switch","argValue":"on"},{"argName":"region","argValue":"*"}],"functionName":"ipv6"}]
&<Common request parameters>
Sample success responses
XML
format
<BatchSetDcdnDomainConfigsResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</BatchSetDcdnDomainConfigsResponse>
JSON
format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidFunctions.Malformed | The specified Functions is invalid. | The error message returned because the value specified for the Functions parameter is not supported. |
400 | InvalidArgValue.Malformed | The specified ArgValue is invalid. | The error message returned because the value specified for the ArgValue parameter is invalid. Specify a valid value. |
400 | Invalid%s.ValueNotSupported | [%s] is not supported. | The error message returned because the specified configuration is not supported. |
400 | Invalid%s.Malformed | The specified ArgValue [%s] is invalid. | The error message returned because the value specified for the ArgValue parameter is invalid. Specify a valid value. |
For a list of error codes, visit the API Error Center.