BatchDeleteLiveDomainConfigs
Deletes domain name configurations in batches.
Operation description
Obtain the ApsaraVideo Live domain names whose configurations you want to delete, and then call this operation to delete domain name configurations in batches.
QPS limit
The QPS limit per user is 30 calls per second. If the limit is exceeded, API calls are throttled, which may affect your services. Call this operation at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:BatchDeleteLiveDomainConfigs |
delete |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DomainNames |
string |
Yes |
The ingest domain or streaming domain. Separate multiple domain names with commas (,). |
demo.aliyundoc.com,example.aliyundoc.com,example.com |
| FunctionNames |
string |
Yes |
The names of the features. Separate multiple features with commas (,). For more information, see the Functions feature description table below. |
referer_white_list_set,ip_black_list_set |
Functions format description
-
Example:
[{"functionArgs":[{"argName":"domain_name","argValue":"developer.aliyundoc.com"}],"functionName":"set_req_host_header"}] -
For some features, such as filetype_based_ttl_set, you can configure multiple records. To update a specific record, specify the configId of the record. Example:
[{"functionArgs":[{"argName":"file_type","argValue":"jpg"},{"argName":"ttl","argValue":"18"},{"argName":"weight","argValue":"30"}],"functionName":"filetype_based_ttl_set","configId":506***}]
Functions feature description
| Name | Parameter |
| referer_white_list_set: Referer whitelist. | refer_domain_allow_list: The whitelist. Separate multiple domain names with commas (,). allow_empty: Specifies whether to allow empty Referer headers. Valid values: on and off. |
| referer_black_list_set: Referer blacklist. | refer_domain_deny_list: The blacklist. Separate multiple domain names with commas (,). allow_empty: Specifies whether to allow empty Referer headers. Valid values: on and off. |
| filetype_based_ttl_set: File expiration time settings. | ttl: The cache duration. Unit: seconds. Valid values: 1 to 99999999 (more than 3 years). file_type: The file types. Separate multiple file types with commas (,). weight: The weight. Valid values: 1 to 99. |
| path_based_ttl_set: Directory expiration time settings. | ttl: The cache duration. Unit: seconds. Valid values: 1 to 99999999 (more than 3 years). path: The directory. It must start with a forward slash (/). weight: The weight. Valid values: 1 to 99. |
| oss_auth: OSS authentication bucket. | oss_bucket_id: The address of the user bucket. |
| ip_black_list_set: IP address blacklist. | ip_list: The IP addresses. Separate multiple IP addresses with commas (,). |
| ip_allow_list_set: IP address whitelist. | ip_list: The IP addresses. Separate multiple IP addresses with commas (,). |
| ip_white_list_set: IP address whitelist for frequency control. | ip_list: The 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: Modify the back-to-origin Host header. | domain_name: The content of the back-to-origin Host header. |
| set_hashkey_args: Ignore URL parameters. | hashkey_args: The list of reserved parameters. Separate multiple parameters with commas (,). disable: Specifies whether to ignore all parameters. Valid values: on (ignore all parameters) and off (do not ignore parameters). |
| aliauth: Alibaba Cloud authentication. | auth_type: The authentication type. Valid values: type_a (Type A authentication) and no_auth (disable authentication). auth_key1: Authentication Key 1. The key supports uppercase letters, lowercase letters, and digits. We recommend that you set the length to 8 to 32 characters. auth_key2: Authentication Key 2. ali_auth_delta: The custom authentication buffer time. Unit: minutes. We recommend that you set the minimum value to 1 minute. There is no upper limit. auth_m3u8: Specifies whether to enable M3U8 content rewriting to add authentication information to TS files in the M3U8 file. This prevents authentication failures when accessing TS files. Valid values: on (default) and off. |
| remote_auth: Live remote authentication. | enable: Specifies whether to enable remote authentication. This parameter is required. Valid values: on and off. remote_auth_path: The address of the authentication server. This parameter is required. remote_auth_pattern: The authentication pattern string. You can configure the following features: - param: Specifies whether to pass through the parameters in the ingest URL to the authentication server. Valid values: pass (default) and fail. - args_white: The specified parameters to pass through. Separate multiple parameters with commas (,). - args_black: The specified parameters not to pass through. Separate multiple parameters with commas (,). - code: The authentication status code. code=XXX specifies the HTTP status code returned by the authentication server to ApsaraVideo Live upon successful authentication. Example: code=200. code=~XXX specifies the HTTP status code returned by the authentication server to ApsaraVideo Live upon failed authentication. Example: code=~403. - delta: The authentication timeout period. - retry: The number of retries upon authentication timeout. - timeout: The action upon authentication timeout. Valid values: pass and fail. pass: ApsaraVideo Live directly approves the user request. fail: ApsaraVideo Live returns an authentication failure status code (403) to the user. - async: Asynchronous authentication. Valid values: on (enable asynchronous authentication) and off (default, disable asynchronous authentication). |
| set_resp_header: Set response headers (visible on the browser side). | key: The response header. Valid values: Content-Type Cache-Control Content-Disposition Content-Language Expires Access-Control-Allow-Origin Access-Control-Allow-Methods Access-Control-Allow-Headers Access-Control-Max-Age Access-Control-Expose-Headers value: The content of the response header. Set this parameter to null to delete the header. |
| https_force: Force HTTPS redirect. | enable: The feature switch. Valid values: on and off. https_force and http_force are mutually exclusive. To configure one, you must delete the other first. |
| http_force: Force HTTP redirect. | enable: The feature switch. Valid values: on and off. https_force and http_force are mutually exclusive. To configure one, you must delete the other first. |
| forward_scheme: Adaptive back-to-origin. | enable: The feature switch. Valid values: on and off. scheme_origin: The back-to-origin protocol (http, https, or follow). scheme_origin_port: The port of the back-to-origin protocol (80, 443, or 80:443). |
| green_manager: Pornography detection feature. | enable: Specifies whether to enable the pornography detection feature. Valid values: on and off. |
| tmd_signature: Custom frequency control rules. | name: The rule name. It must be unique within the domain name. path: The path. It can be duplicated, but the URI path validity must be verified. pathType: The matching rule. 0: prefix match. 1: exact match. interval: The monitoring duration. Unit: seconds. The value must be greater than or equal to 10. count: The number of visits from a single IP address. action: The blocking type. 0: block. 1: bot identification. ttl: The blocking duration. Unit: seconds. |
| l2_oss_key: L2 OSS back-to-origin private key. | private_oss_auth: Specifies whether to enable the private OSS authentication feature. Valid values: on and off. |
| video_seek: Video seeking switch. | enable: The feature switch. Valid values: on and off. |
| gzip: Page Gzip optimization. | enable: The feature switch. Valid values: on and off. |
| tesla: Page optimization and acceleration. | enable: The feature switch. Valid values: on and off. |
| ali_ua: User-Agent access restriction. | ua: The User-Agent. type: The list type. Valid values: black and white. |
| host_redirect: Rewrite feature. | regex: The URL to be rewritten. Example: ^/$. replacement: The destination URL. Example: /go/act/sale/tbzlsy.php. flag: Supported values: redirect and break. |
| ipv6: IPv6 configuration. | switch: The switch (required). Valid values: on and off. After you enable the feature, if you want to disable it, clear the check box instead of deleting the configuration. Otherwise, the configuration does not take effect. region: The region where the IPv6 feature is enabled. Valid values: cn-beijing (Beijing), cn-shanghai (Shanghai), cn-shenzhen (Shenzhen), cn-qingdao (Qingdao), ap-southeast-1 (Singapore), eu-central-1 (Germany), ap-northeast-1 (Tokyo), and ap-southeast-5 (Jakarta). |
| ali_location: Region-based access restriction. | location: The list of regions. type: The list type. Valid values: black and white. |
| cc_defense: Anti-CC attack. | enable: Specifies whether to enable or disable anti-CC attack. Valid values: on and off. |
| alilive: ApsaraVideo Live configuration. | notify_url: The live streaming notification URL. enable: The feature switch. Valid values: on and off. live_forbid_flv: Specifies whether to prohibit FLV playback. Valid values: on and off. live_forbid_rtmp: Specifies whether to prohibit RTMP playback. Valid values: on and off. live_forbid_hls: Specifies whether to prohibit HLS playback. Valid values: on and off. |
| ali_grtn: GRTN service access switch. | grtn_rts_pub: The RTS stream ingest switch, used for ingest domains. Valid values: on and off. grtn_rts_play: The RTS streaming switch, used for streaming domains. Valid values: on and off. grtn_rts_transcode: The automatic transcoding switch for RTS H5 playback. Valid values: on and off. |
| edge_function: Edge Routine. | Required parameters: rule: The DSL rule. pri: The priority. enable: Specifies whether this rule takes effect. Valid values: on and off. Optional parameters: name: The rule name. pos: The rule execution position. brk: After this rule is matched, the remaining rules at the current execution position are skipped. option: Option control. grammar: Grammar control. Valid values: null, es2, and js. jsmode: JS domain name whitelist control. Valid values: redirect and bypass. |
| https_tls_version: TLS protocol version. | tls10: Specifies whether to enable TLSv1.0. Default value: on. Valid values: on and off. tls11: Specifies whether to enable TLSv1.1. Default value: on. Valid values: on and off. tls12: Specifies whether to enable TLSv1.2. Default value: on. Valid values: on and off. tls13: Specifies whether to enable TLSv1.3. Default value: on. Valid values: on and off. |
| https_option: HTTP protocol settings. | http2: Specifies whether to enable HTTP/2. Default value: off. Valid values: on and off. live_http2: Specifies whether to enable live_http2. Default value: off. Valid values: on and off. |
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.