Mengonfigurasi satu atau beberapa nama domain untuk CDN.
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:BatchSetVodDomainConfigs |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainNames |
string |
Yes |
Nama domain untuk CDN. Pisahkan beberapa nama domain dengan koma (,). |
example.com |
| Functions |
string |
Yes |
Fitur-fitur yang akan dikonfigurasi.
|
[{"functionArgs":[{"argName":"domain_name","argValue":"www.example.com"}],"functionName":"set_req_host_header"}] |
Feature description
Semua nilai parameter bertipe string.
| Feature | Description | Parameter |
| referer_white_list_set | Menentukan daftar putih referer. | refer_domain_allow_list: referer yang akan ditambahkan ke daftar putih. Pisahkan beberapa referer dengan koma (,). allow_empty: menentukan apakah referer kosong diperbolehkan. Nilai yang valid: on dan off. |
| referer_black_list_set | Menentukan blacklist referer. | refer_domain_deny_list: referer yang akan ditambahkan ke blacklist. Pisahkan beberapa referer dengan koma (,). allow_empty: menentukan apakah referer kosong diperbolehkan. Nilai yang valid: on dan off. |
| filetype_based_ttl_set | Menentukan periode waktu setelah file kedaluwarsa. | ttl: waktu kedaluwarsa konten yang di-cache. Satuan: detik. file_type: tipe file. Pisahkan beberapa tipe file dengan koma (,). Contoh: txt,jpg. weight: bobot file dalam cache. Nilai yang valid: 1 hingga 199. |
| path_based_ttl_set | Menentukan periode waktu setelah direktori kedaluwarsa. | ttl: waktu kedaluwarsa konten yang di-cache. Satuan: detik. path: direktori, yang harus diawali dengan garis miring (/). weight: bobot direktori dalam cache. Nilai yang valid: 1 hingga 99. |
| oss_auth | Mengonfigurasi autentikasi untuk akses ke bucket Object Storage Service (OSS). | oss_bucket_id: ID bucket tersebut. |
| ip_black_list_set | Menentukan blacklist alamat IP. | ip_list: alamat IP yang akan ditambahkan ke blacklist. Pisahkan beberapa alamat IP dengan koma (,). |
| ip_allow_list_set | Menentukan daftar putih alamat IP. | ip_list: alamat IP yang akan ditambahkan ke daftar putih. Pisahkan beberapa alamat IP dengan koma (,). |
| ip_white_list_set | Menentukan aturan kustom untuk pembatasan laju. | ip_list: alamat IP yang akan ditambahkan ke daftar putih. Pisahkan beberapa alamat IP dengan koma (,). |
| error_page | Mengalihkan halaman kesalahan ke halaman tertentu. | error_code: kode kesalahan. rewrite_page: halaman tujuan pengalihan halaman kesalahan. |
| set_req_host_header | Memodifikasi header kustom pada permintaan back-to-origin. | domain_name: header host kustom untuk permintaan back-to-origin. |
| set_hashkey_args | Mengabaikan parameter URL tertentu. | hashkey_args: parameter yang akan dipertahankan. Pisahkan beberapa parameter dengan koma (,). disable: menentukan apakah semua parameter diabaikan. Nilai on berarti semua parameter diabaikan. Nilai off berarti tidak ada parameter yang diabaikan. |
| aliauth | Mengonfigurasi autentikasi Alibaba Cloud. | auth_type: tipe autentikasi. Nilai yang valid: no_auth, type_a, type_b, dan type_c. auth_key1: kunci autentikasi primary. auth_key2: kunci autentikasi secondary. ali_auth_delta: waktu buffer kustom untuk autentikasi. ali_auth_remote_desc: string pencocokan pola. |
| set_resp_header | Menentukan header respons. Untuk memverifikasi pengaturan ini, Anda dapat memeriksa pesan respons di browser. | key: nama header respons. Nilai yang valid: Content-Type, Cache-Control, Content-Disposition, Content-Language, Expires, Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers, Access-Control-Max-Age, dan Access-Control-Expose-Headers. value: isi header respons. Jika ingin menghapus header tersebut, masukkan null. |
| https_force | Mengonfigurasi pengalihan paksa ke HTTPS. | enable: menentukan apakah pengalihan paksa ke HTTPS diaktifkan. Nilai yang valid: on dan off. |
| http_force | Mengonfigurasi pengalihan paksa ke HTTP. | enable: menentukan apakah pengalihan paksa ke HTTP diaktifkan. Nilai yang valid: on dan off. |
| l2_oss_key | Mengonfigurasi autentikasi kunci privat untuk permintaan back-to-origin dari node L2 ke bucket OSS pribadi. | private_oss_auth: menentukan apakah akses ke bucket OSS pribadi diautentikasi. Nilai yang valid: on dan off. |
| green_manager | Mengonfigurasi Deteksi pornografi. | enable: menentukan apakah Deteksi pornografi diaktifkan. Nilai yang valid: on dan off. |
| range | Mengonfigurasi chunking objek. | enable: menentukan apakah chunking objek diaktifkan. Nilai yang valid: onoffforce |
| video_seek | Mengonfigurasi Pencarian video. | enable: menentukan apakah Pencarian video diaktifkan. Nilai yang valid: onoff |
| tmd_signature | Menentukan aturan kustom untuk pembatasan laju. | name: nama aturan, yang harus unik dalam nama domain. path: path URI. Anda dapat menentukan path URI duplikat, tetapi harus memverifikasi validitasnya. 01 10 01 |
| ali_business | Mengonfigurasi fitur kustom. | ali_business_type: wajib diisi. Tipe bisnis. ali_business_table: string pencocokan pola. |
| hls_token_rewrite | Mengonfigurasi Enkripsi M3U8 dan penulisan ulang. | enable: wajib diisi. Menentukan apakah Enkripsi M3U8 dan penulisan ulang diaktifkan. Nilai yang valid: on dan off. hls_token_arg_name: nama parameter yang ditambahkan. Jika tidak ditentukan, nama parameter MtsHlsUriToken akan digunakan. |
| hls_token_rewrite | Mengonfigurasi Enkripsi M3U8 dan penulisan ulang URL. | enable: wajib diisi. Menentukan apakah Enkripsi M3U8 dan penulisan ulang URL diaktifkan. Nilai yang valid: on dan off. hls_token_arg_name: nama parameter yang ditambahkan. Jika tidak ditentukan, parameter default MtsHlsUriToken akan digunakan. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
04F0F334-1335-436C-****-6C044FE73368 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "04F0F334-1335-436C-****-6C044FE73368"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidFunctions.Malformed | The specified Functions is incorrectly formatted. | |
| 400 | InvalidArgValue.Malformed | The specified ArgValue is invalid. | |
| 400 | Invalid%s.ValueNotSupported | [%s] is not supported. | |
| 400 | Invalid%s.Malformed | The specified ArgValue [%s] is invalid. | |
| 400 | MissingParameter%s | The specified value of ArgName[%s] is missing. | |
| 400 | InvalidFunctionArgs.Malformed | The specified FunctionArgs is invalid. | |
| 400 | MissingParameter | The specified ArgValue is missing. | |
| 400 | InvalidHeaderKey.ValueNotSupported | The specified value of parameter HeaderKey is not supported. | |
| 400 | TooManyDomains | The count of domain is over 50. | |
| 400 | InvalidRule.Malformed | %s | |
| 400 | InvalidFunction.NotSupported | The domain is not supported to set the function. | |
| 400 | InvalidDomain.BelongToConfigGroup | This Domain activated in configuration group and should modify by config group. | |
| 400 | EntityNotExist.Role | EntityNotExist.Role | |
| 400 | MissingParameterFunctions | The specified value of Functions is missing. | |
| 400 | NoPermission.SLR | The current user does not have permission to create servicelinkedrole. Please contact the Alibaba Cloud account or administrator to authorize AliyunCDNFullAccess or custom policy:Service Name:cdn-ddos.cdn.aliyuncs.com,Role: AliyunServiceRoleForCDNAccessingDDoS,Permission: ram: CreateServiceLinkedRole | |
| 400 | ConfigExceedLimit | Count of config entries exceeds the limit. | |
| 400 | EdgeScriptCountExceedLimit | The number of rules exceeds the default limit (1). To increase the limit, submit a ticket. | You can configure only one script. To increase the limit, submit a ticket. |
| 400 | EdgeScripOptionsHasInnerConfig | The extension has a background configuration or a parameter of this configuration is invalid. For more information, submit a ticket. | |
| 400 | EdgeScriptGrammarNotSupport | A background customization rule exists or a parameter of this configuration is invalid. For more information, submit a ticket. | |
| 400 | EdgeScriptNotSupportJs | JavaScript rules are not supported. For more information, submit a ticket. | |
| 400 | ServiceInvokeFailed | Failed to invoke service. | |
| 400 | ConfigurationConflicts | Failed to modify the parameter settings in the production environment because the parameter settings are different from those in the staging environment. Set parameters in the staging environment before you publish them to the production environment. | Failed to modify the parameter settings in the production environment because the parameter settings are different from those in the staging environment. Set parameters in the staging environment before you publish them to the production environment. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.