Mengubah blacklist atau daftar putih gerbang.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:UpdateBlackWhiteList |
update |
*Gateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
ID blacklist. |
1 |
| ResourceType |
string |
No |
Tipe Sumber daya. |
GATEWAY |
| Type |
string |
No |
Tipe blacklist atau daftar putih. |
IP |
| Content |
string |
No |
Konten blacklist. |
127.0.2.11 |
| Status |
string |
No |
Apakah akan mengaktifkan blacklist atau daftar putih. Valid values:
|
on |
| GatewayUniqueId |
string |
Yes |
ID unik gerbang. |
gw-c70622ff52fe49beb29bea9a6f52**** |
| IsWhite |
boolean |
No |
Apakah akan mengaktifkan daftar putih. |
true |
| ResourceIdJsonList |
string |
No |
ID Sumber daya dalam format JSON. |
[123] |
| Note |
string |
No |
Deskripsi. |
this is a note |
| Name |
string |
No |
Nama. |
name |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data structure. |
||
| RequestId |
string |
The ID of the request. |
AD5DEDA0-C82A-50D9-AF54-BD3576CCFB4C |
| HttpStatusCode |
integer |
The HTTP status code returned. |
200 |
| Message |
string |
The message returned. |
You are not authorized to perform this operation. |
| Code |
integer |
The return value. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
integer |
The ID of the record. |
13 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "AD5DEDA0-C82A-50D9-AF54-BD3576CCFB4C",
"HttpStatusCode": 200,
"Message": "You are not authorized to perform this operation.",
"Code": 200,
"Success": true,
"Data": 13
}
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.