All Products
Search
Document Center

ApsaraVideo Live:BatchSetLiveDomainConfigs

Dernière mise à jour :Jul 23, 2026

Configures domain names in batches.

Operation description

Obtain the ApsaraVideo Live domain names to configure, and then call this operation to configure domain names in batches.

Rate limit

The single-user QPS limit for this operation is 30 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation as needed.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

live:BatchSetLiveDomainConfigs

update

*Domain

acs:cdn:*:{#accountId}:domain/{#DomainName}

None None

Request parameters

Parameter

Type

Required

Description

Example

DomainNames

string

Yes

The domain names that you want to configure in batches. Valid values: ingest domain names, primary streaming domain names, and secondary streaming domain names. Separate multiple domain names with commas (,).

demo.aliyundoc.com,example.aliyundoc.com,example.com

Functions

string

Yes

The list of features.

Some features, such as filetype_based_ttl_set, allow you to set multiple records. If you want to update a specific record, you can specify the record by its configId. For more information, refer to Functions format description and Functions feature description below.

[{"functionArgs":[{"argName":"file_type","argValue":"jpg"},{"argName":"ttl","argValue":"18"},{"argName":"weight","argValue":"30"}],"functionName":"filetype_based_ttl_set","configId":506***}]

Functions format description

  • Example: [{"functionArgs":[{"argName":"domain_name","argValue":"developer.aliyundoc.com"}],"functionName":"set_req_host_header"}]

  • Some features, such as filetype_based_ttl_set, allow you to set multiple records. If you want to update a specific record, you can specify the record by its configId. 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

NameParameters
referer_white_list_set: Referer whitelist.refer_domain_allow_list: The whitelist. Separate multiple values with commas (,).
allow_empty: Specifies whether to allow an empty Referer. Valid values: on or off.

referer_black_list_set: Referer blocklist.refer_domain_deny_list: The blocklist. Separate multiple values with commas (,).
allow_empty: Specifies whether to allow an empty Referer. Valid values: on or off.

filetype_based_ttl_set: File expiration time settings.ttl: The cache time. Unit: seconds. Valid values: 1 to 99999999 (slightly more than 3 years).
file_type: The file type. Separate multiple values with commas (,).
weight: The weight. Valid values: 1 to 99.




path_based_ttl_set: Directory expiration time settings.ttl: The cache time. Unit: seconds. Valid values: 1 to 99999999 (slightly more than 3 years).
path: The directory. Must start with a forward slash (/).
weight: The weight. Valid values: 1 to 99.




oss_auth: OSS authentication bucket.oss_bucket_id: The user bucket address.
ip_black_list_set: IP blocklist.ip_list: The IP list. Separate multiple values with commas (,).
ip_allow_list_set: IP whitelist.ip_list: The IP list. Separate multiple values with commas (,).
ip_white_list_set: Access frequency control exemption.ip_list: The IP list. Separate multiple values with commas (,).
error_page: Error page redirect.error_code: The error code.
rewrite_page: The redirect page.

set_req_host_header: Modify the back-to-origin host header.domain_name: The back-to-origin host header content.
set_hashkey_args: Ignore URL parameters.hashkey_args: The list of retained parameters. Separate multiple values with commas (,).
disable: Specifies whether to ignore all parameters. Valid values: on (ignore all parameters) or off (do not ignore).

aliauth: Alibaba authentication.auth_type: The authentication type. Valid values: type_a (authentication A), no_auth (disable authentication).
auth_key1: Authentication key 1. The authentication 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: seconds. We recommend a minimum value of 60 seconds. There is no upper limit.
auth_m3u8: Specifies whether to enable m3u8 content rewriting, which appends authentication information to ts URIs in m3u8 files to prevent ts access authentication failures. Valid values: on (default value) or off.










remote_auth: Live streaming remote authentication.enable: Specifies whether to enable remote authentication. Required. Valid values: on or off.
remote_auth_path: The authentication server address. Required.
remote_auth_pattern: The authentication pattern string. The following options can be configured:
- param: Specifies whether to pass through parameters in the ingest URL to the authentication server. Valid values: pass (default) or fail.
- args_white: Specifies the parameters to pass through. Separate multiple parameters with commas (,).
- args_black: Specifies the 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 duration.
- retry: The number of authentication timeout retries.
- timeout: The authentication timeout behavior. Valid values: pass or fail. pass: ApsaraVideo Live directly passes through the user request. fail: ApsaraVideo Live responds with an authentication failure status code (403) to the user.
- async: Asynchronous authentication. Valid values: on (enable asynchronous authentication) or 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 response header content. Set to null to delete.

































https_force: Force HTTPS redirect.enable: The feature switch. Valid values: on or off. https_force and http_force are mutually exclusive. Only one can exist at a time. To configure the other, you must first delete the existing configuration.
http_force: Force HTTP redirect.enable: The feature switch. Valid values: on or off. https_force and http_force are mutually exclusive. Only one can exist at a time. To configure the other, you must first delete the existing configuration.
forward_scheme: Adaptive back-to-origin.enable: The feature switch. Valid values: on or off.
scheme_origin: The back-to-origin protocol (http, https, or follow).
scheme_origin_port: The back-to-origin protocol port (80, 443, or 80:443).




green_manager: Chinese pornography detection.enable: Specifies whether to enable Chinese pornography detection. Valid values: on or off.
tmd_signature: Custom access frequency control rules.name: The rule name. Must be unique within the domain name.
path: Can be repeated. URI path validity is verified.
pathType: The matching rule. 0: prefix match. 1: exact match.
interval: The monitoring duration. Unit: seconds. Must be >= 10.
count: The number of visits from a single IP address.
action: The blocking type. 0: block. 1: human-machine identification.
ttl: The blocking duration. Unit: seconds.
















l2_oss_key: L2 OSS back-to-origin private key.private_oss_auth: Specifies whether to enable private OSS authentication. Valid values: on or off.
video_seek: Video slice seeking switch.enable: The feature switch. Valid values: on or off.
gzip: Page Gzip optimization.enable: The feature switch. Valid values: on or off.
tesla: Page optimization acceleration.enable: The feature switch. Valid values: on or off.
ali_ua: User-Agent access restriction.ua: The User-Agent.
type: The list type. Valid values: black or white.

host_redirect: Rewrite feature.regex: The URL to rewrite. Example: ^/$.
replacement: The target URL. Example: /go/act/sale/tbzlsy.php.
flag: Only supports: redirect or break.




ipv6: IPv6 configuration.switch: The switch (required). Valid values: on or off. To enable the feature, once enabled, to disable it, deselect it instead of deleting the configuration, otherwise it will not take effect.
region: The region where IPv6 is enabled. Valid values: cn-beijing (Beijing), cn-shanghai (Shanghai), cn-shenzhen (Shenzhen), cn-qingdao (Qingdao), apsoutheast-1 (Singapore), eu-central-1 (Germany), ap-northeast-1 (Tokyo), ap-southeast-5 (Jakarta).

ali_location: Region-based access restriction.location: The region list.
type: The list type. Valid values: black or white.

cc_defense: Anti-CC attack.enable: Specifies whether to enable anti-CC attack protection. Valid values: on or off.
alilive: ApsaraVideo Live configuration.notify_url: The live streaming notification URL.
enable: The feature switch. Valid values: on or off.
live_forbid_flv: Prohibit FLV playback. Valid values: on or off.
live_forbid_rtmp: Prohibit RTMP playback. Valid values: on or off.
live_forbid_hls: Prohibit HLS playback. Valid values: on or off.










ali_grtn: GRTN service access switch.grtn_rts_pub: The RTS ingest switch, used for ingest domain names. Valid values: on or off.
grtn_rts_play: The RTS streaming switch, used for streaming domain names. Valid values: on or off.
grtn_rts_transcode: The RTS H5 playback auto-transcoding switch. Valid values: on or off.




edge_function: Edge function.Required parameters:
rule: The DSL rule.
pri: The priority.
enable: Specifies whether this rule takes effect. Valid values: on or off.
Optional parameters:
name: The rule name.
pos: The rule execution position.
brk: If this rule is hit, the remaining rules at the current execution position are skipped.
option: The option control.
grammar: The grammar control. Valid values: empty, es2, or js.
jsmode: The JS domain name whitelist control. Valid values: redirect or bypass.




























https_tls_version: TLS protocol version.tls10: Enable TLSv1.0. Default value: on. Valid values: on or off.
tls11: Enable TLSv1.1. Default value: on. Valid values: on or off.
tls12: Enable TLSv1.2. Default value: on. Valid values: on or off.
tls13: Enable TLSv1.3. Default value: on. Valid values: on or off.







https_option: HTTP protocol settings.http2: Specifies whether to enable HTTP/2. Default value: off. Valid values: on or off.
live_http2: Specifies whether to enable live_http2. Default value: off. Valid values: on or 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 InvalidFunctions.Malformed Specified Functions is malformed.
400 InvalidFunctionArgs.Malformed The specified FunctionArgs is invalid.
400 InvalidArgValue.Malformed Specified ArgValue is malformed.
400 Invalid%s.ValueNotSupported FunctionName [%s] is not supported.
400 Invalid%s.Malformed ArgValue [%s] is malformed.
400 MissingParameter%s The specified value of ArgName[%s] is missing.
400 FunctionMutex Function is mutex with other function.
400 RewriteHostRely Domain name is configured as rewrite host by others.
400 ConfigurationConflicts The staging environment has a configuration in effect and cannot modify the production environment configuration. The staging environment has a configuration in effect and cannot modify the production environment configuration.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.