AddLiveDomain
Adds a domain name for ApsaraVideo Live. You can submit only one domain name at a time.
Operation description
-
Before adding a domain name for ApsaraVideo Live, you must activate the ApsaraVideo Live service. For more information, see Activate the service.
-
When adding a new domain name, you must first authenticate the ownership before invoking this operation to add the domain name. You can choose DNS parse verification or file verification. For more information, see Authenticate domain name ownership.
-
ApsaraVideo Live requires stream ingest and streaming. You must add an ingest domain and a streaming domain separately. You can submit only one domain name at a time.
-
After adding a domain name, you must perform CNAME parse for the added domain name. For more information, see Configure CNAME domain name parse.
-
After adding an ingest domain and a streaming domain, you must configure the associated domain before using ApsaraVideo Live. For more information, see Associated domain.
QPS limit
The QPS limit for a single user is 30 calls per second. If the limit is exceeded, API calls are throttled, which may affect your services. Exercise caution when you call this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:AddLiveDomain |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LiveDomainType |
string |
Yes |
The business type of the domain name. Valid values:
Valid values:
|
liveVideo |
| DomainName |
string |
Yes |
The ingest domain or streaming domain to be added to ApsaraVideo Live. Wildcard domain names are supported and must start with a period (.). |
example.aliyundoc.com |
| Region |
string |
Yes |
The unit information of the domain name for ApsaraVideo Live. Valid values:
Note
Region (the unit information of the domain name for ApsaraVideo Live) and Scope (the acceleration region) do not restrict each other. |
cn-beijing |
| CheckUrl |
string |
No |
The health check URL. |
http://demo.aliyundoc.com/status.html |
| Scope |
string |
No |
The acceleration region. This parameter is valid for international users and users at level 3 or above on the Alibaba Cloud China site. Valid values:
|
domestic |
| TopLevelDomain |
string |
No |
The top-level domain name. |
learn.aliyundoc.com |
| ResourceGroupId |
string |
No |
The ID of the resource group. For more information about resource groups, see What is a resource group?. |
rg-aekzw****** |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The tag key. |
TestKey |
| Value |
string |
No |
The tag value. |
TestValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Examples
Success response
JSON format
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDomainName.Malformed | Specified DomainName is malformed. | |
| 400 | InvalidRegion.Malformed | Specified Region is malformed. | The specified area is invalid. |
| 400 | InvalidSource.Content.Malformed | Specified source content is malformed. | |
| 400 | InvalidTypeContent.Mismatch | Specified source type does not math the specified source content. | |
| 400 | MissingSource.Content | Specified source content is mandatory for this action. | |
| 400 | MissingSource.Type | Specified source type is mandatory for this action. | |
| 400 | InvalidSource.Type.Malformed | Specified source type is malformed. | |
| 400 | InvalidSource.Priority.Malformed | Specified source priority is malformed. | |
| 400 | InvalidScope.Malformed | Specified Scope is malformed. | |
| 400 | SourceIp.Exceed | The Certificate you provided is malformed! | |
| 400 | InvalidCertificate | The Certificate you provided is malformed! | |
| 400 | InvalidCertificate.TooLong | The Certificate you provided is over the max length! | |
| 400 | InnerAddDomainDenied | Your account haven't bind aoneId, can not add domain. | |
| 400 | CheckSourceHealthFailed | sources ip or source domain check health failed,please input right source. | |
| 400 | ExtensiveAndAllBothExist | Extensive domain and the domain begins with 'all.' can not exist at the same time. | |
| 400 | CdnTypeNotSupportExtensiveDomain | Extensive domain not supported for this cdn type. | |
| 400 | ExtensiveAndSpecificDomainConflict | Extensive domain and corresponding specific domain are mutually exclusive. | Extensive domain and corresponding specific domain are mutually exclusive. |
| 400 | InvalidDomainNameLevel | Domain name suffixed with alicdn.com only support third level. | |
| 400 | TopLevelDomain.NotFound | TopLevelDomain is not exist. | |
| 400 | EntityNotExists.ResourceGroup | The resource group does not exist. | |
| 400 | InvalidStatus.ResourceGroup | It's now allowed to do this operation because of the current status of resource-group. | |
| 400 | NotInternationRealIdentity | You need to do real name authentication when you use Chinese mainland resources. | You must use a valid authorized identity to access resources in the Chinese mainland. |
| 400 | RecordCheckNotAvailable | Please try again later. | |
| 400 | IcpBlack | The domain is on the ICP blacklist. | |
| 400 | IspBlack | The domain is on the ISP blacklist. | |
| 400 | DomainNotRecordedAliyun | The domain not access Ali Cloud for the record please access. | |
| 400 | Abs.CheckUrl.Malformed | The CheckUrl you provided is malformed! | |
| 400 | DomainOwnerVerifyFail | Owner verification of the root domain failed. | |
| 400 | TopLevelDomain.Mismatch | The specified TopLevelDomain does not match webSiteType. | |
| 400 | InvalidResourceGroupId.Malformed | Specified ResourceGroupId is malformed. | |
| 400 | DomainReserved | The root domain of your domain is reserved by another account. | The root domain is added to other accounts. |
| 400 | ExceedLimit | The number of domains has exceeded the limit. | The number of domains has exceeded the limit. |
| 400 | LockFail | Domain has been occupied. | The domain name is currently in use. Please try again later. |
| 403 | AccountException | Account exception. Please open ticket to make an appeal. | |
| 403 | EntityNotExist.ResourceGroup | The resource group does not exist. | The resource group does not exist. |
| 404 | InvalidUser | The user's account is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.