Menambahkan nama domain untuk akselerasi CDN di ApsaraVideo VOD.
Deskripsi operasi
Saat ini, satu-satunya alamat layanan yang didukung adalah China (Shanghai).
Sebelum membuat nama domain yang dipercepat, Anda harus mengaktifkan ApsaraVideo VOD, dan nama domain yang dipercepat harus memiliki Pendaftaran ICP yang telah selesai.
Konten origin yang tidak dihosting di Alibaba Cloud memerlukan peninjauan, yang akan diselesaikan sebelum hari kerja berikutnya.
Anda hanya dapat mengirimkan satu nama domain yang dipercepat dalam satu waktu. Setiap pengguna dapat menambahkan hingga 20 nama domain.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:AddVodDomain |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Nama domain yang dipercepat yang akan ditambahkan ke ApsaraVideo VOD. Nama domain wildcard didukung, dimulai dengan titik (.), seperti .example.com. |
example.com. |
| Sources |
string |
Yes |
Daftar alamat origin. Untuk informasi lebih lanjut tentang parameter, lihat tabel Sources di bawah ini. |
[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80}] |
| CheckUrl |
string |
No |
URL pemeriksaan kesehatan. |
www.example.com/test.html. |
| Scope |
string |
No |
Parameter ini valid untuk pengguna internasional dan pengguna daratan Tiongkok level L3 atau lebih tinggi. Nilai valid:
|
domestic. |
| TopLevelDomain |
string |
No |
Nama domain tingkat atas. |
example.com. |
Sources
| Name | Type | Required | Description |
| type | String | Yes | Jenis origin. Nilai valid: ipaddr: origin IP. domain: origin nama domain. oss: origin bucket OSS. |
| content | String | Yes | Alamat origin, yang dapat berupa alamat IP atau nama domain. |
| port | Integer | No | Nomor port. Anda dapat menentukan 443 atau 80. Nilai default: 80. Port 443 menggunakan HTTPS untuk permintaan back-to-origin. Anda juga dapat menentukan port kustom. |
| priority | String | No | Prioritas yang sesuai dengan alamat server origin. Nilai valid: 20 dan 30. Nilai default: 20. 20 menunjukkan server origin utama. 30 menunjukkan server origin sekunder. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
15C66C7B-671A-4297-****-2C4477247A74 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "15C66C7B-671A-4297-****-2C4477247A74"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDomainName.Malformed | Specified DomainName is malformed. | |
| 400 | MissingParameter | The input parameter cdnType that is mandatory for processing this request is not supplied. | |
| 400 | InvalidCdnType.Malformed | Specified CdnType is malformed. | |
| 400 | InvalidSources.Malformed | Specified Sources is malformed. | |
| 400 | InvalidSourceStr.Malformed | Specified SourceStr is malformed. | |
| 400 | InvalidSourceType.Malformed | Specified CdnType is malformed. | |
| 400 | InvalidSource.Priority.Malformed | The specified Source Priority is invalid. | |
| 400 | InvalidTypeAndContent.MissMatch | The specified source type does not match the specified source content. | |
| 400 | InvalidScope.Malformed | Specified Scope is malformed. | |
| 400 | DomainOverLimit | The Number of Domain is over the limit | |
| 400 | DomainAlreadyExist | This domain name is exist already | |
| 400 | DomainNotRegistration | The Domain name is not registered | |
| 400 | InvaildParameter | Source name can not equal to domain name | |
| 400 | IllegalSources | The specified origin site information is invalid. | |
| 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 | DomainReserved | The root domain of your domain is reserved by another account. Submit a ticket to contact customer support. | |
| 400 | InvalidDomainNameLevel | Domain name suffixed with alicdn.com only support third level. | |
| 400 | InvalidTopLevelDomain.Malformed | Specified TopLevelDomain is malformed. | |
| 400 | TopLevelDomain.NotFound | The specified TopLevelDomain does 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 | TopLevelDomain.Mismatch | The specified TopLevelDomain does not match webSiteType. | |
| 400 | DomainOwnerVerifyFail | Owner verification of the root domain failed. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.