Memperbarui beberapa nama domain yang dipercepat sekaligus pada satu pengatur waktu.
Deskripsi operasi
-
Each account can call this operation up to 30 times per second.
-
You can specify up to 50 domain names in each request. Separate multiple domain names with commas (,).
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 tentang alamat origin server. Catatan
Jangan mengatur Sources dan TopLevelDomain pada pengatur waktu yang sama. Jika Anda mengatur Sources dan TopLevelDomain pada pengatur waktu yang sama, 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 pada pengatur waktu yang sama. Jika Anda mengatur Sources dan TopLevelDomain pada pengatur waktu yang sama, TopLevelDomain tidak akan berlaku. |
example.com |
Tabel berikut menjelaskan field dalam parameter Sources.
| Field | Tipe | Wajib | Deskripsi |
| type | String | Ya | Tipe origin server. ipaddr: alamat IP. domain: nama domain. oss: nama domain bucket Object Storage Service (OSS). fc_domain: nama domain Function Compute. |
| content | String | Ya | Alamat origin server. Anda dapat menentukan alamat IP atau nama domain. |
| port | Integer | Tidak | 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 | Tidak | Prioritas origin server jika beberapa origin server ditentukan. Nilai valid: 20 dan 30. Nilai default: 20. Nilai 20 menentukan bahwa origin adalah origin utama. Nilai 30 menentukan bahwa origin adalah origin sekunder. |
| weight | String | Tidak | 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 |
The ID of the request. |
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.