Mengubah nama domain yang dipercepat.
Deskripsi operasi
Operasi ini hanya tersedia di wilayah China (Shanghai).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:UpdateVodDomain |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Nama domain yang dipercepat. |
example.com. |
| Sources |
string |
No |
Alamat server asal. Untuk informasi lebih lanjut tentang parameter Sources, lihat bagian Sources. |
[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80}] |
| TopLevelDomain |
string |
No |
Domain tingkat atas. |
example.com. |
Sources
| Parameter | Tipe | Wajib | Deskripsi |
| type | String | Ya | Tipe server asal. Nilai valid:ipaddr: alamat IP domain: nama domain oss: domain OSS dari bucket Object Storage Service (OSS) |
| content | String | Ya | Alamat server asal. Anda dapat menentukan alamat IP atau nama domain. |
| port | Integer | Tidak | Nomor port. Anda dapat menentukan port 443 atau 80. Nilai default: 80. Jika Anda menentukan 443, permintaan akan dialihkan ke server asal melalui HTTPS. Anda juga dapat menentukan port kustom. |
| priority | String | Tidak | Prioritas server asal jika beberapa server asal ditentukan. Nilai valid: 20 dan 30. Nilai default: 20. 20 menentukan server asal utama dan 30 menentukan server asal 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 | MissingDomainName | The domainName parameter is required. | |
| 400 | InvalidDomainName.Malformed | The specified DomainName is invalid. | |
| 400 | InvalidSource.Content.Malformed | The specified Source Content 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. | |
| 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 | InvalidSources.Malformed | Specified Sources is malformed. | |
| 400 | IllegalSources | The specified origin site information is invalid. | |
| 400 | TopLevelDomain.NotFound | The specified TopLevelDomain does not exist. | |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. | |
| 403 | ServiceBusy | The specified Domain is configuring, please retry later | |
| 403 | IllegalOperation | Illegal domain operate is not permitted. | |
| 404 | InvalidDomain.NotFound | The domain provided does not belong to you. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.