Menambahkan nama domain ke ApsaraVideo Live. Operasi ini hanya memungkinkan penambahan satu nama domain per panggilan.
Deskripsi operasi
Anda harus mengaktifkan ApsaraVideo Live sebelum menambahkan nama domain. Untuk informasi selengkapnya, lihat Aktifkan ApsaraVideo Live.
ApsaraVideo Live memverifikasi kepemilikan nama domain baru yang Anda tambahkan. Setelah verifikasi berhasil, nama domain tersebut akan ditambahkan ke ApsaraVideo Live. Verifikasi kepemilikan dapat dilakukan melalui catatan Domain Name System (DNS) atau file verifikasi. Untuk informasi selengkapnya, lihat Verifikasi kepemilikan nama domain.
Untuk menggunakan ApsaraVideo Live dalam mengambil dan memutar aliran, Anda harus menambahkan domain ingest dan domain streaming. Hanya satu nama domain yang dapat ditambahkan dalam satu panggilan operasi.
Setelah menambahkan nama domain, Anda harus mengonfigurasi rekaman CNAME untuk domain tersebut. Untuk informasi selengkapnya, lihat Tambahkan rekaman CNAME.
Setelah menambahkan domain ingest dan domain streaming, Anda harus mengasosiasikan domain streaming dengan domain ingest. Untuk informasi selengkapnya, lihat Asosiasikan domain streaming dengan domain ingest.
Mulai 19 Februari 2019, nama domain yang ditambahkan melalui operasi AddLiveDomain tidak mendukung edge ingest melalui live center. Demikian pula, nama domain yang ditambahkan menggunakan Alibaba Cloud CDN tidak mendukung edge ingest melalui live center. Saat memanggil operasi AddLiveDomain, Anda dapat mengatur parameter LiveDomainType ke liveEdge untuk menambahkan domain ingest yang menggunakan edge ingest, atau mengatur parameter tersebut ke liveVideo untuk menambahkan domain streaming. Asosiasi antara domain streaming dan domain ingest dapat dilakukan dengan memanggil operasi AddLiveDomainMapping. Nama domain yang ditambahkan sebelum 19 Februari 2019 dan telah dikonfigurasi untuk menggunakan live center ingest tidak terpengaruh oleh perubahan ini.
Batas QPS
Anda dapat memanggil operasi ini hingga 30 kali per detik per akun. Permintaan yang melebihi batas ini akan dibuang dan dapat menyebabkan gangguan layanan. Disarankan agar Anda mematuhi batas ini saat melakukan panggilan operasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:AddLiveDomain |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| LiveDomainType |
string |
Yes |
Jenis nama domain. Nilai yang valid:
|
liveVideo |
| DomainName |
string |
Yes |
Domain ingest atau domain streaming yang ingin Anda tambahkan. Nama domain wildcard yang diawali titik (.) didukung. |
example.aliyundoc.com |
| Region |
string |
Yes |
Wilayah tempat nama domain berada. Nilai yang 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 yang 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 |
Tag. |
||
| Key |
string |
No |
Kunci tag. |
TestKey |
| Value |
string |
No |
Nilai tag. |
TestValue |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
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. | 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.