Memperbarui konfigurasi beberapa nama domain yang dipercepat sekaligus.
Deskripsi operasi
Anda dapat memanggil operasi ini hingga 30 kali per detik per akun.
Anda dapat menentukan hingga 50 nama domain dalam setiap permintaan. Pisahkan beberapa nama domain dengan koma (,).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:BatchUpdateCdnDomain |
update |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Nama domain yang dipercepat. Anda dapat menentukan satu atau beberapa nama domain yang dipercepat. Pisahkan nama domain dengan koma (,). |
example.com,example.org |
| Sources |
string |
No |
Informasi mengenai alamat origin server. Catatan
Jangan mengatur Sources dan TopLevelDomain secara bersamaan. Jika Anda mengatur Sources dan TopLevelDomain secara bersamaan, TopLevelDomain tidak akan berlaku. |
[{"content":"10.10.10.10","type":"ipaddr","priority":"20","port":80,"weight":"15"}] |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfmyuji4b6r4** |
| TopLevelDomain |
string |
No |
Domain root. Catatan
Jangan mengatur Sources dan TopLevelDomain secara bersamaan. Jika Anda mengatur Sources dan TopLevelDomain secara bersamaan, TopLevelDomain tidak akan berlaku. |
example.com |
Tabel berikut menjelaskan bidang-bidang dalam parameter Sources.
| Field | Type | Required | Description |
| type | String | Yes | Jenis origin server.ipaddr: alamat IPdomain: nama domainoss: nama domain bucket Object Storage Service (OSS)fc_domain: nama domain Function Compute |
| content | String | Yes | Alamat origin server. Anda dapat menentukan alamat IP atau nama domain. |
| port | Integer | No | Port. Anda dapat menentukan port 80, port 443, atau port kustom. Nilai default: 80. Jika Anda menentukan port 443, Alibaba Cloud CDN berkomunikasi dengan origin server melalui HTTPS. |
| priority | String | No | Prioritas origin server jika beberapa origin server ditentukan. Nilai yang valid: 20 dan 30. Nilai default: 20. Nilai 20 menunjukkan bahwa origin tersebut adalah origin primary. Nilai 30 menunjukkan bahwa origin tersebut adalah origin secondary. |
| weight | String | No | Bobot origin server jika beberapa origin server ditentukan. Anda harus menentukan nilai yang kurang dari 100. Nilai default: 10. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
15C66C7B-671A-4297-9187-2C4477247A74 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingDomainName | The domainName parameter is required. | |
| 400 | InvalidDomainName.Malformed | The specified DomainName is invalid. | The specified domain name is invalid. |
| 400 | InvalidSource.Content.Malformed | The specified Source Content is invalid. | The specified origin address is invalid. |
| 400 | InvalidTypeContent.Mismatch | The specified source type does not match the specified source content. | |
| 400 | MissingSource.Content | The Source Content must be specified. | You must specify the origin information. |
| 400 | MissingSource.Type | The Source Type must be specified. | |
| 400 | InvalidSources.Malformed | Specified Sources is malformed. | The specified origin address is invalid. |
| 400 | InvalidSource.Type.Malformed | The specified Source Type is invalid. | |
| 400 | InvalidSource.Priority.Malformed | The specified Source Priority is invalid. | |
| 400 | InvalidResourceGroupId.Malformed | The specified ResourceGroupId is invalid. | |
| 400 | EntityNotExists.ResourceGroup | The resource group does not exist. | The specified ResourceGroup parameter does not exist. |
| 400 | EntityNotExist.ResourceGroup | The resource group does not exist. | The specified resource group does not exist. |
| 400 | InvalidStatus.ResourceGroup | It is not allowed to do this operation because of the current status of resource-group. | This operation is not supported while the resource group is in the current state. |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.