Adds a domain name to ApsaraVideo Live.
Operation description
Instructions
- Before adding a live streaming domain, you must first activate the video live streaming service. For detailed operations, please refer to Activate Service. - When adding a new domain, verification is required before invoking this interface to add the domain. You can choose between DNS resolution verification or file verification. See Verify Domain Ownership for more information. - Using video live streaming requires both ingest and playback streaming; you need to separately add ingest and playback domains, with only one domain allowed per submission. - After completing the domain addition process, it is also necessary to set up CNAME resolution for the added domain. Please refer to Configure CNAME Domain Resolution.
- After adding ingest and playback domains, you need to associate the domains to use the video live streaming service. For detailed steps, see Associate Domains.
Notice Starting from February 19, 2019, domains added via AddLiveDomain no longer support central ingest streaming, and newly added domains through CDN API are similarly not supported. Instead, add an ingest domain (calling AddLiveDomain with business type liveEdge) and a playback domain (calling AddLiveDomain with business type liveVideo), and then associate them (using AddLiveDomainMapping ). Domains added before February 19, 2019, remain unaffected.
QPS Limitation
The per-user QPS limit for this interface is 30 requests/second. Exceeding this limit will result in API throttling, which may impact your services. Please use judiciously. For more information, see QPS Limitations.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
live:AddLiveDomain | create | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
LiveDomainType | string | Yes | The type of the domain name. Valid values:
| liveVideo |
DomainName | string | Yes | The ingest domain or streaming domain that you want to add. Wildcard domain names that start with a period (.) are supported. | example.aliyundoc.com |
Region | string | Yes | 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.
| cn-beijing |
CheckUrl | string | No | The URL that is used for health checks. | http://demo.aliyundoc.com/status.html |
Scope | string | No | The edge group. This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. 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 Resource groups. | rg-aekzw****** |
Response parameters
Examples
Sample success responses
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. | - |
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. | - |
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. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-24 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-09-27 | API Description Update. The Error code has changed | View Change Details |
2024-09-25 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-05-09 | The Error code has changed | View Change Details |