Memperbarui nama domain yang dipercepat.
Deskripsi operasi
Each account can call this operation up to 30 times per second.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:ModifyCdnDomain |
update |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Nama domain yang dipercepat. Anda hanya dapat menentukan satu nama domain di setiap permintaan. |
example.com |
| Sources |
string |
No |
Informasi tentang alamat server asal. Catatan
Jangan menetapkan Sources dan TopLevelDomain pada pengatur waktu yang sama. Jika Anda menetapkan Sources dan TopLevelDomain pada pengatur waktu yang sama, TopLevelDomain tidak akan berlaku. |
[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80,"weight":"15"}] |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfmyuji4b6r4** |
| TopLevelDomain |
string |
No |
Domain root. Untuk menambahkan nama domain root, Anda harus ditambahkan ke daftar putih yang ditentukan oleh parameter CDN_TOP_LEVEL_DOMAIN_GREY_USER_LIST. Catatan
Jangan menetapkan Sources dan TopLevelDomain pada pengatur waktu yang sama. Jika Anda menetapkan Sources dan TopLevelDomain pada pengatur waktu yang sama, TopLevelDomain tidak akan berlaku. |
aliyundoc.com |
Tabel berikut menjelaskan field di parameter Sources.
| Field | Tipe | Wajib | Deskripsi |
| type | String | Ya | Tipe server asal. ipaddr: alamat IP. domain: nama domain. oss: nama domain bucket Object Storage Service (OSS). fc_domain: nama domain Function Compute. |
| content | String | Ya | Alamat server asal. Anda dapat menentukan alamat IP atau nama domain. |
| port | Integer | Tidak | Nomor port. Anda dapat menentukan port 80, port 443, atau port kustom. Nilai default: 80. Jika Anda menentukan port 443, CDN berkomunikasi dengan server asal melalui HTTPS. |
| priority | String | Tidak | Prioritas server asal jika beberapa server asal 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 server asal jika beberapa server asal 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. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Respons error
JSONformat
{"RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8","HostId":"cdn.aliyuncs.com","Code":"InternalError","Message":"The request processing has failed due to some unknown error."}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Abs.Sources.Malformed | The specified Sources is invalid. | The specified origin is invalid. |
| 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 | 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. |
| 400 | TopLevelDomain.NotFound | TopLevelDomain is not exist. | The specified TopLevelDomain parameter does not exist. |
| 400 | InvalidTopLevelDomain.Malformed | Specified TopLevelDomain is malformed. | The specified TopLevelDomain parameter is invalid. |
| 400 | TopLevelDomain.Mismatch | The specified TopLevelDomain does not match webSiteType. | The top-level domain name does not match the domain name type. |
| 400 | SourceInBlacklist | Source is in the blacklist. | The origin server is in the blacklist. |
| 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.