You can call this operation to delete configurations of one or more CDN domains.

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 BatchDeleteCdnDomainConfig

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

DomainNames String Yes www.macaron.org.cn,xxx.org.com

The names of the CDN domains to delete configurations. Separate multiple domain names with commas (,).

FunctionNames String Yes referer_white_list_set,https_force

The names of the features to be deleted. Separate multiple feature names with commas (,).

Feature description

Feature

Parameter description

referer_white_list_set: configures the referer whitelist.

refer_domain_allow_list: the whitelisted referers. Separate multiple referers with commas (,).

allow_empty: specifies whether an empty referer is allowed. Valid values: on and off.

referer_black_list_set: configures the referer blacklist.

refer_domain_deny_list: the blacklisted referers. Separate multiple referers with commas (,).

allow_empty: indicates whether an empty referer is allowed. Valid values: on and off.

filetype_based_ttl_set: sets an expiration rule for specific files.

ttl: the validity period of the cached content. Unit: seconds.

file_type: the file type. You can specify multiple file types and separate them with commas (,). Example: txt,jpg.

path_based_ttl_set: sets an expiration rule for a directory.

ttl: the validity period of the cached content. Unit: seconds.

path: the directory, which must start with a forward slash (/).

cc_defense: configures protection against HTTP flood attacks.

enable: specifies whether to enable or disable this feature. Valid values: on and off.

oss_auth: authenticates the access to an OSS bucket.

oss_bucket_id: the ID of your bucket.

ip_black_list_set: configures the IP blacklist.

ip_list: the blacklisted IP addresses. Separate multiple IP addresses with commas (,).

ip_allow_list_set: configures the IP whitelist.

ip_list: the whitelisted IP addresses. Separate multiple IP addresses with commas (,).

error_page: redirects an error page to another specified page.

error_code: the error code.

rewrite_page: the page to be redirected when the specified error occurs.

tesla: configures HTML optimization.

enable: specifies whether to enable the feature. Valid values: on and off.

set_req_host_header: modifies the custom origin host.

domain_name: the custom domain name that is used as the origin host.

set_hashkey_args: ignores URL parameters.

hashkey_args: the list of retained parameters. Separate multiple parameters with commas (,).

disable: specifies whether to ignore all parameters. Valid values: on and off.

aliauth: configures URL authentication.

auth_type: the authentication type. Valid values: no_auth, type_a, type_b, and type_c.

auth_key1: the primary authentication key. auth_key2: the secondary authentication key.

ali_auth_delta: the custom buffer time for authentication.

set_resp_header: customizes a response header. To verify the setting, you can check the response messages on the client (browser).

key: the name of the response header.

value: the value of the response header. Enter null if you want to delete the header.

video_seek: configures the video seeking feature.

enable: specifies whether to enable the feature. Valid values: on and off.

range: configures the object chunking feature.

enable: specifies whether to enable the feature. Valid values: on and off.

gzip: configures the intelligent compression feature.

enable: specifies whether to enable the feature. Valid values: on and off.

https_force: configures force redirect to HTTPS.

enable: specifies whether to enable the feature. Valid values: on and off.

https_force: configures force redirect to HTTP.

enable: specifies whether to enable the feature. Valid values: on and off.

alilive: configures the ApsaraVideo Live service.

notify_url: the URL to send a live streaming notification to.

enable: specifies whether to enable the feature. Valid values: on and off.

forward_scheme: configures the static origin protocol policy.

enable: specifies whether to enable the feature. Valid values: on and off.

scheme_origin: the protocol of the origin. Valid values: http, https, and follow.

scheme_origin_port: the origin port. Valid values: 80 and 443.

Response parameters

Parameter Type Example Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

The ID of the request.

Examples

Sample requests

http(s)://cdn.aliyuncs.com? Action=BatchDeleteCdnDomainConfig
&DomainNames=www.macaron.org.cn,xxx.org.com
&FunctionNames=referer_white_list_set,https_force
&<Common request parameters>

Sample success responses

XML format

<BatchDeleteCdnDomainConfigResponse>
	  <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</BatchDeleteCdnDomainConfigResponse>

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 error message returned because the specified FunctionName parameter is not supported.
400 DeleteFunctionFailed Batch delete functions failed. The error message returned because the system has failed to delete the configurations of the specified CDN domains.

For more information about error codes, visit API Error Center.