Menambahkan nama domain ke ApsaraVideo Live. Operasi ini memungkinkan Anda menambahkan hanya satu nama domain dalam satu pengatur waktu.
Deskripsi operasi
-
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.
From February 19, 2019, domain names that are added by calling the AddLiveDomain operation do not support live center ingest. Domain names that are added by using Alibaba Cloud CDN also do not support live center ingest. When you call the AddLiveDomain operation, you can set the LiveDomainType parameter to liveEdge to add an ingest domain that uses edge ingest or set the LiveDomainType parameter to liveVideo to add a streaming domain. You can associate a streaming domain with an ingest domain by calling the AddLiveDomainMapping operation. Domain names added before February 19, 2019, for which live center ingest was configured, are not affected.
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.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:AddLiveDomain |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| LiveDomainType |
string |
Yes |
Jenis nama domain. Nilai valid:
|
liveVideo |
| DomainName |
string |
Yes |
Domain ingest atau domain streaming yang ingin Anda tambahkan. Nama domain wildcard yang diawali dengan periode (.) didukung. |
example.aliyundoc.com |
| Region |
string |
Yes |
Wilayah tempat nama domain berada. Nilai valid:
Catatan
Pastikan pengaturan parameter Region dan Scope tidak saling bertentangan. |
cn-beijing |
| CheckUrl |
string |
No |
URL yang digunakan untuk pemeriksaan kesehatan. |
http://demo.aliyundoc.com/status.html |
| Scope |
string |
No |
Kelompok edge. Parameter ini berlaku untuk pengguna level 3 atau lebih tinggi di Tiongkok Daratan dan pengguna di luar Tiongkok Daratan. Nilai valid:
|
domestic |
| TopLevelDomain |
string |
No |
Nama domain tingkat atas. |
learn.aliyundoc.com |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. Untuk informasi selengkapnya tentang kelompok sumber daya, lihat Kelompok sumber daya. |
rg-aekzw****** |
| Tag |
array<object> |
No |
Tag. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The key of the tag. |
TestKey |
| Value |
string |
No |
The value of the tag. |
TestValue |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Respons error
JSONformat
{
"Code":"InternalError",
"HostId":"live.aliyuncs.com",
"Message":"The request processing has failed due to some unknown error.",
"RequestId":"6EBD1AC4-C34D-4BE1-963E-B688A228BE31"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDomainName.Malformed | Specified DomainName is malformed. | |
| 400 | InvalidRegion.Malformed | Specified Region is malformed. | |
| 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. | |
| 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. | |
| 400 | ExceedLimit | 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. | |
| 404 | InvalidUser | The user's account is invalid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.