Mengambil detail tentang konfigurasi kode respons khusus suatu situs.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
ID Situs. Untuk informasi lebih lanjut, lihat ListSites. |
775724064754208 |
| ConfigId |
integer |
Yes |
ID Konfigurasi. |
424022244554752 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil respons permintaan. |
||
| RequestId |
string |
ID Permintaan. |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| ConfigId |
integer |
ID Konfigurasi. |
352816096987136 |
| ConfigType |
string |
Tipe konfigurasi. Nilai yang valid:
|
global |
| SiteVersion |
integer |
Nomor versi konfigurasi situs. Untuk situs dengan kontrol versi yang diaktifkan, gunakan parameter ini untuk menentukan versi situs tempat konfigurasi berlaku. Defaultnya adalah versi 0. |
0 |
| Sequence |
integer |
Urutan eksekusi aturan. Nilai yang lebih kecil menunjukkan prioritas eksekusi yang lebih tinggi. |
1 |
| RuleEnable |
string |
Sakelar aturan. Jangan tetapkan parameter ini saat menambahkan konfigurasi global. Nilai yang valid:
|
on |
| Rule |
string |
Konten aturan. Gunakan ekspresi kondisional untuk mencocokkan permintaan pengguna. Jangan tetapkan parameter ini saat menambahkan konfigurasi global. Ada dua skenario:
|
(http.host eq "video.example.com") |
| RuleName |
string |
Nama aturan. Jangan tetapkan parameter ini saat menambahkan konfigurasi global. |
rule_example |
| ReturnCode |
string |
Kode respons. |
200 |
| PageId |
string |
Halaman respons. |
0 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"ConfigId": 352816096987136,
"ConfigType": "global",
"SiteVersion": 0,
"Sequence": 1,
"RuleEnable": "on",
"Rule": "(http.host eq \"video.example.com\")\n",
"RuleName": "rule_example",
"ReturnCode": "200",
"PageId": "0"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.