All Products
Search
Document Center

ApsaraVideo VOD:AddVodDomain

Last Updated:Jul 21, 2026

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

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

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 (default): daratan Tiongkok.

  • overseas: Hong Kong (Tiongkok), Makau (Tiongkok), Taiwan (Tiongkok), dan wilayah di luar Tiongkok.

  • global: akselerasi global.

domestic.

TopLevelDomain

string

No

Nama domain tingkat atas.

example.com.

Sources

NameTypeRequiredDescription
typeStringYesJenis origin. Nilai valid:
ipaddr: origin IP.
domain: origin nama domain.
oss: origin bucket OSS.







contentStringYesAlamat origin, yang dapat berupa alamat IP atau nama domain.
portIntegerNoNomor 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.
priorityStringNoPrioritas 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.