Memodifikasi konfigurasi nama domain yang dipercepat.
Deskripsi operasi
Anda dapat memanggil operasi ini hingga 30 kali per detik per akun.
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 dalam setiap permintaan. |
example.com |
| 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":"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 mengatur Sources dan TopLevelDomain secara bersamaan. Jika Anda mengatur Sources dan TopLevelDomain secara bersamaan, TopLevelDomain tidak akan berlaku. |
aliyundoc.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 | Nomor port. Anda dapat menentukan port 80, port 443, atau port kustom. Nilai default: 80. Jika Anda menentukan port 443, 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 kurang dari 100. Nilai default: 10. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
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.