Deletes configurations for multiple domain names in a batch.
Operation description
You can specify a maximum of 50 domain names in a single request.
The throttling limit for a single user is 30 calls per second.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:BatchDeleteDcdnDomainConfigs |
update |
*domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DomainNames |
string |
Yes |
The accelerated domain names for which you want to delete configurations. Separate multiple domain names with commas (,). Note the following limits:
|
example.com |
| FunctionNames |
string |
Yes |
The names of the features to delete. Separate multiple feature names with commas (,). You can specify up to 50 feature names in a single request. For more information about feature names, see Parameters for domain name configurations. |
referer_white_list_set,https_force |
The following table lists the features.
| Name | Parameters |
| referer_white_list_set: Referer whitelist for hotlink protection | refer_domain_allow_list: The whitelist. Separate multiple domain names with commas (,). allow_empty: Specifies whether to allow requests with an empty Referer header to access DCDN resources. Valid values: on or off. |
| referer_black_list_set: Referer blacklist for hotlink protection | refer_domain_deny_list: The blacklist. Separate multiple domain names with commas (,). allow_empty: Specifies whether to allow requests with an empty Referer header to access DCDN resources. Valid values: on or off. |
| filetype_based_ttl_set: Sets the cache expiration time for specific file types | ttl: The time-to-live (TTL). Unit: seconds. file_type: The file type. Separate multiple file types with commas (,), for example, TXT,JPG. weight: The weight. |
| path_based_ttl_set: Sets the cache expiration time for specific directories | ttl: The TTL. Unit: seconds. path: The directory. The path must start with a forward slash (/). weight: The weight. |
| oss_auth: OSS authentication for buckets | oss_bucket_id: The URL of your bucket. |
| ip_black_list_set: IP address blacklist | ip_list: The list of IP addresses. Separate multiple IP addresses with commas (,). |
| ip_allow_list_set: IP address whitelist | ip_list: The list of IP addresses. Separate multiple IP addresses with commas (,). |
| error_page: Error page redirection | error_code: The error code. rewrite_page: The redirection page. |
| set_req_host_header: Modifies the custom back-to-origin request header | domain_name: The content of the back-to-origin HOST header. |
| set_hashkey_args: Ignores URL parameters | hashkey_args: The list of parameters to retain. Separate multiple parameters with commas (,). You can specify up to 10 parameters. disable: Set to on to ignore all parameters, or off to not ignore them. Ignoring all parameters for the cache hash key has a lower priority than retaining specific cache parameters. keep_oss_args: Set to on to retain all parameters for origin fetch requests, or off to use the same parameters as the cache hash key. |
| aliauth: Alibaba Cloud authentication | auth_type: The authentication type. no_auth: no authentication. type_a: authentication method A. type_b: authentication method B. type_c: authentication method C. auth_key1: Authentication key 1. auth_key2: Authentication key 2. ali_auth_delta: The custom authentication cache time. |
| set_resp_header: Sets HTTP response headers. These headers are visible on the browser. | key (Required): The response header. value (Required): The content of the response header. To delete the header, set this to null. header_operation_type: The operation on the request header. Valid values: add, delete, modify, and rewrite. duplicate: Specifies whether to allow duplicates. Valid values: on or off. header_source: The header to find. header_destination: The header to replace with. match_all: Specifies whether to match all. Valid values: on or off. |
| https_force: Forces HTTPS redirection | enable: The switch for the feature. Valid values: on or off. |
| http_force: Forces HTTP redirection | enable: The switch for the feature. Valid values: on or off. |
| https_option: Basic HTTPS parameters | http2: The switch for HTTP/2. Valid values: on or off. ocsp_stapling: The switch for the Online Certificate Status Protocol (OCSP) feature. Valid values: on or off. |
| forward_scheme: Follows the protocol of the origin server for static content | enable: The switch. Valid values: on or off. scheme_origin: The protocol for origin fetch. Valid values: http, https, and follow. |
| dynamic: Configurations related to whole site acceleration | enable (Required): The switch. Valid values: on or off. static_route_type: The file extensions for static acceleration. static_route_url: The URI for static acceleration. static_route_path: The path for static acceleration. dynamic_route_origin: The scheme for the back-to-origin route. Valid values: http, https, follow, and follow-port. dynamic_route_round_robin: The switch for Server Load Balancer. Valid values: on or off. dynamic_route_adapt_cache: The switch for adaptive caching. Valid values: on or off. |
| set_req_header: Sets custom back-to-origin HTTP headers | key: The back-to-origin header. value: The content of the back-to-origin header. |
| l2_oss_key: Enables back-to-origin requests to a private OSS bucket | private_oss_auth: The switch for back-to-origin to a private bucket. Valid values: on or off. |
| range: Enables range-based origin fetch | enable: The switch. Valid values: on or off. |
| video_seek: Enables video seeking | enable (Required): The switch. Valid values: on or off. flv_seek_by_time: Enables seeking by time for FLV files. Valid values: on or off. mp4_seek_start: The custom start parameter for MP4 seeking. mp4_seek_end: The custom end parameter for MP4 seeking. flv_seek_start: The custom start parameter for FLV seeking. flv_seek_end: The custom end parameter for FLV seeking. |
| websocket: WebSocket | enabled (Required): Specifies whether to enable WebSocket. Valid values: on or off. origin_scheme: The scheme for origin fetch. Valid values: http, https, and follow. heartbeat: The heartbeat timeout. Default value: 60 seconds. Valid values: 1 to 300 seconds. |
| ali_remove_args: Ignores specified URL parameters | ali_remove_args (Required): The parameters to delete. Separate multiple parameters with spaces. The remaining parameters are used as the args part of the URL in the hash key. keep_oss_args: Retain parameters for origin fetch. Valid values: on (retain all parameters) or off (use the same parameters as the cache hash key). |
| https_tls_version: TLS protocol versions | tls10: Enables TLSv1.0. Default: on. Valid values: on or off. tls11: Enables TLSv1.1. Default: on. Valid values: on or off. tls12: Enables TLSv1.2. Default: on. Valid values: on or off. tls13: Enables TLSv1.3. Default: off. Valid values: on or off. |
| HSTS: HTTP Strict Transport Security (HSTS) | enabled (Required): The switch. Default: off. Valid values: on or off. https_hsts_max_age (Required): The expiration time. Unit: ms. We recommend that you set this to 5184000000 ms (60 days). https_hsts_include_subdomains: Specifies whether to include the includeSubDomains parameter in the HSTS header. Valid values: on or off. Enable this feature with caution. Before you enable it, make sure that HTTPS is enabled for all subdomains of the accelerated domain name. Otherwise, the subdomains become inaccessible after automatic redirection to HTTPS. |
| filetype_force_ttl_code: Sets the expiration time for specific status codes of certain file types | file_type (Required): The file type. Separate multiple file types with commas (,), for example, TXT,JPG. code_string (Required): The status code. Separate multiple status codes with commas (,). For example: 302=0,301=0,4xx=2. |
| path_force_ttl_code: Sets the expiration time for specific status codes of certain paths | path (Required): The path must start with a forward slash (/), for example, /image. code_string (Required): The status code. Separate multiple status codes with commas (,). For example: 302=0,301=0,4xx=2. |
| gzip: Intelligent compression | enable (Required): The switch for the feature. Valid values: on or off. |
| tesla: HTML optimization | enable (Required): The switch for the feature. Valid values: on or off. trim_js: Valid values: on or off. If you enable this feature, the embedded JavaScript code in the HTML is optimized. trim_css: Valid values: on or off. If you enable this feature, the embedded CSS code in the HTML is optimized. |
| https_origin_sni: Origin Server Name Indication (SNI) | enabled: The switch for the feature. Valid values: on or off. https_origin_sni (Required): The origin SNI. |
| protogw: IP application acceleration | realip (Required): The method to pass through the real IP address of the client. Valid values: off, toa, and pp. port (Required): The service port. patten: The pattern string. |
| host_redirect: Rewrite feature | regex: The URL to rewrite. For example: ^/$. replacement: The destination URL. For example: /go/act/sale/tbzlsy.php. flag: Only redirect and break are supported. |
| forward_timeout: Timeout period for back-to-origin requests | forward_timeout: Unit: seconds. We recommend that you do not set this to a value greater than 100 seconds. |
| ipv6: IPv6 configuration | switch (Required): The switch. Valid values: on (enable) or off (disable). region: The region where IPv6 is enabled. The asterisk (*) is supported. |
| edge_function: Edge Routine | rule (Required): The DSL rule. pri (Required): The priority. enable (Required): Specifies whether the rule is effective. Valid values: on or off. name: The rule name. pos: The position where the rule is executed. For whole site acceleration domain names, only head is supported. foot is not supported. brk: If this rule is hit, the remaining rules at the current execution position are skipped. option: Option control. grammar: Grammar control. Valid values: empty, es2, and js. jsmode: JS domain name whitelist control. Valid values: redirect and bypass. |
| brotli: Brotli compression | enable (Required): The switch for the feature. Valid values: on or off. brotli_level: The compression level. Valid values: 1 to 11. |
| ali_ua: User-Agent blacklist/whitelist | ua: The User-Agent. type: The list type. Valid values: black or white. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
Examples
Success response
JSON format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid%s.ValueNotSupported | FunctionName [%s] is not supported. | The specified configuration is not supported. |
| 400 | DeleteFunctionFailed | Batch delete functions failed. | Failed to delete the configurations. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.