Membuat daftar hitam atau daftar putih.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:AddBlackWhiteList |
create |
*Gateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayUniqueId |
string |
Yes |
ID unik gateway. |
gw-0fe488252dc44d55a9dd57875193**** |
| ResourceType |
string |
No |
Cakupan efektif dari daftar hitam atau daftar putih. Nilai yang valid:
|
GATEWAY |
| Type |
string |
No |
Jenis objek dalam daftar hitam atau daftar putih. |
IP |
| Content |
string |
No |
Konten daftar hitam. |
1.117.115.51 |
| Status |
string |
No |
Status daftar hitam.
|
off |
| IsWhite |
boolean |
No |
Daftar putih. Nilai default: No. |
false |
| ResourceIdJsonList |
string |
No |
ID resource dalam format JSON. |
[123] |
| Note |
string |
No |
Deskripsi. |
this is a note |
| Name |
string |
No |
Nama. |
name |
| AcceptLanguage |
string |
No |
Bahasa respons. Nilai yang valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Struktur data. |
||
| RequestId |
string |
ID permintaan. |
966F6CA7-16D0-50AB-AB02-E140934F90C1 |
| HttpStatusCode |
integer |
Kode status HTTP yang dikembalikan. |
200 |
| Message |
string |
Pesan kesalahan. |
You are not authorized to perform this operation. |
| Code |
integer |
Kode status yang dikembalikan. |
200 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
| Data |
integer |
ID rekaman. |
2 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "966F6CA7-16D0-50AB-AB02-E140934F90C1",
"HttpStatusCode": 200,
"Message": "You are not authorized to perform this operation.",
"Code": 200,
"Success": true,
"Data": 2
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.