Changes the accelerated domain names that are bound to a protection policy.

Description

  • You can call this operation up to 20 times per second per account.
  • Alibaba Cloud Dynamic Route for CDN (DCDN) supports POST requests.

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 ModifyDcdnWafPolicyDomains

The operation that you want to perform. Set the value to ModifyDcdnWafPolicyDomains.

PolicyId Long Yes 1000001

The ID of the protection policy. You can specify only one ID in each request.

BindDomains String No example.com,example2.com

The domain names that you want to bind to the protection policy. You can specify up to 50 domain names. Separate multiple domain names with commas (,).

UnbindDomains String No example3.com

The domain names that you want to unbind from the protection policy. You can specify up to 50 domain names. Separate multiple domain names with commas (,).

Response parameters

Parameter Type Example Description
RequestId String CB1A380B-09F0-41BB-2B35-72F8FD6DA2FE

The ID of the request.

Examples

Sample requests

curl -XPOST 'https://dcdn.aliyuncs.com/?Action=ModifyDcdnWafPolicyDomains
&PolicyId=1000001
&BindDomains=example.com,example2.com
&UnbindDomains=example3.com
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyDcdnWafPolicyDomainsResponse>
    <RequestId>CB1A380B-09F0-41BB-2B35-72F8FD6DA2FE</RequestId>
</ModifyDcdnWafPolicyDomainsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "CB1A380B-09F0-41BB-2B35-72F8FD6DA2FE"
}

Error codes

HTTP status code Error code Error message Description
400 InvalidParameter The specified parameter is invalid. The error message returned because the specified parameter value is invalid.
400 Policy.NotExist The specified policy does not exist. The error message returned because the specified protection policy does not exist.
400 DomainBindAndUnbind.Overlapped The specified bind and unbind domain names overlap. The error message returned because the specified domain names that you want to bind and unbind are the same.
500 InternalError An internal error occurred; please try again later. The error message returned because an internal error occurred. Try again later. If the error persists, submit a ticket.

For a list of error codes, visit the API Error Center.