Panggil operasi SetDcdnUserConfig untuk mengonfigurasi pengaturan pengguna.
Deskripsi operasi
Frekuensi panggilan maksimum adalah 30 kali per detik per pengguna.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:SetDcdnUserConfig |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FunctionId |
integer |
Yes |
ID fitur. |
6 |
| Configs |
string |
Yes |
Parameter fitur. |
\"argId\":12,\"argValue\":\"on\" |
Tabel berikut menjelaskan nilai yang valid untuk FunctionID dan Configs.
FunctionID | Name | Configs |
6 | websocket: Websocket | enabled (12): Menentukan apakah fitur diaktifkan atau tidak. Nilai yang valid: on dan off. |
16 | domain_business_control: Konfigurasi fitur nama domain | allow_function (22): Menentukan apakah fitur seperti rate limiting, Location Blacklist, dan Accurate Access Control tersedia untuk pengguna. Nilai yang valid: on dan off. |
23 | ddos: DDoS | rdomestic (42): Menentukan apakah instans DDoS di Daratan Tiongkok diaktifkan. Nilai yang valid: on atau off. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
F8AA0364-0FDB-4AD5-AC74-D69FAB8924ED |
Contoh
Respons sukses
JSONformat
{
"RequestId": "F8AA0364-0FDB-4AD5-AC74-D69FAB8924ED"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidFunctions.Malformed | The specified Functions is invalid. | The specified configuration is invalid. |
| 400 | InvalidArgValue.Malformed | The specified ArgValue is invalid. | The value specified for the ArgValue parameter is invalid. |
| 400 | Invalid%s.ValueNotSupported | [%s] is not supported. | The specified value is not supported. |
| 400 | Invalid%s.Malformed | The specified ArgValue [%s] is invalid. | The value specified for the ArgValue parameter is invalid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.