Adds a domain name to ApsaraVideo Live.
Usage notes
- You must activate ApsaraVideo Live before you add a domain name. For more information, see Activate ApsaraVideo Live.
- ApsaraVideo Live verifies the ownership of a new domain name that you add. After the verification is passed, the domain name is added to ApsaraVideo Live. ApsaraVideo Live allows you to use a Domain Name System (DNS) record or a verification file to verify the ownership of a domain name. For more information, see Verify the ownership of a domain name.
- To use ApsaraVideo Live to ingest and play streams, you must add an ingest domain and a streaming domain. You can add only one domain name at a time.
- After you add a domain name, you must configure a CNAME record for the domain name. For more information, see Add a CNAME record.
- After you add an ingest domain and a streaming domain, you must associate the streaming domain with the ingest domain. For more information, see Associate a streaming domain with an ingest domain.
QPS limit
You can call this operation up to 30 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | AddLiveDomain | The operation that you want to perform. Set the value to AddLiveDomain. |
LiveDomainType | String | Yes | liveVideo | The type of the domain name. Valid values:
|
DomainName | String | Yes | example.aliyundoc.com | The ingest domain or streaming domain that you want to add to ApsaraVideo Live. Wildcard domain names that start with a period (.) are supported. |
Region | String | Yes | cn-beijing | The region in which the domain name resides. Valid values:
Note Make sure that the settings of the Region and Scope parameters do not conflict with each other. |
CheckUrl | String | No | http://demo.aliyundoc.com/status.html | The URL that is used to check the health status of the domain name. |
Scope | String | No | domestic | The acceleration region. This parameter is applicable to users of level 3 or higher in the Chinese mainland and all users outside the Chinese mainland. Valid values:
|
TopLevelDomain | String | No | learn.aliyundoc.com | The top-level domain name. |
Response parameters
Parameter |
Type |
Example |
Description |
RequestId | String | 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 | The request ID. |
Examples
Sample requests
http(s)://live.aliyuncs.com/?Action=AddLiveDomain
&DomainName=example.aliyundoc.com
&LiveDomainType=liveVideo
&Region=cn-beijing
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8" ?>
<AddLiveDomainResponse>
<RequestId>15C66C7B-671A-4297-9187-2C4477247A74</RequestId>
</AddLiveDomainResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"AddLiveDomainResponse" : {
"RequestId" : "15C66C7B-671A-4297-9187-2C4477247A74"
}
}
Error codes
HTTP status code |
Error code |
Error message |
Description |
400 | NotInternationRealIdentity | You need to do real name authentication when you use Chinese mainland resources. | You must obtain authorization to access resources from the Chinese mainland. |
400 | DomainReserved | The root domain of your domain is reserved by another account. | The root domain is added to other accounts. |
For a list of error codes, see Service error codes.