All Products
Search
Document Center

Dynamic Content Delivery Network:BatchSetDcdnWafDomainConfigs

Last Updated:Apr 11, 2024

Sets the protection status of multiple domain names at a time.

Operation description

  • You can call this operation up to 20 times per second.
  • Alibaba Cloud Dynamic Content Delivery Network (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.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dcdn:BatchSetDcdnWafDomainConfigs
  • Domain
    acs:dcdn:*:{#accountId}:domain/{#DomainName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamesstringYes

The protected domain names for which you want to change the protection status. You can specify up to 50 domain names. Separate multiple domain names with commas (,).

example.com,example2.com
DefenseStatusstringNo

The protection status of the domain name. Valid values: on, off, and empty string.

  • When you add a domain name, the value of this parameter is on, and the value of ClientIpTag takes effect, which is empty if the default header is selected and is the value specified by the user if a custom header is selected.
  • When you delete a domain name, the value of this parameter is off, and the value of ClientIpTag does not take effect.
  • When you only modify the value of ClientIpTag, the value of DefenseStatus is an empty string.
on
ClientIpTagstringNo

Specifies the header that records the IP address to be obtained. If the default header is selected, the value of this parameter is empty. If a custom header is selected, the value of this parameter is the value specified by the user. Separate multiple values with commas (,). You can specify a maximum of five values.

X-Forwarded-For

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE

Examples

Sample success responses

JSONformat

{
  "RequestId": "CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter is invalid.A parameter is set to an invalid value.
500InternalErrorAn internal error occurred; please try again later.An internal error occurred. Try again later. If the error persists, submit a ticket.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-08-29The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 500
    Added Error Codes: 403