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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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
  • functionName: The name of the feature. Separate multiple values with commas (,). For more information, see A list of features.
  • argName: The feature parameters for functionName.
  • argValue: The parameter values set for functionName.
    [
     {
       "functionArgs": [
        {
         "argName": "Parameter A", 
         "argValue": "Parameter value"
        }, 
      {
        "argName": "Parameter B", 
        "argValue": "Parameter value"
         }
     ], 
     "functionName": "Feature name"
        }
    ]

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.