ゲートウェイのブラックリストまたはホワイトリストを変更します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:UpdateBlackWhiteList |
update |
*Gateway
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Id |
integer |
必須 |
ブラックリストの ID。 |
1 |
| ResourceType |
string |
任意 |
リソースのタイプ。 |
GATEWAY |
| Type |
string |
任意 |
ブラックリストまたはホワイトリストのタイプ。 |
IP |
| Content |
string |
任意 |
ブラックリストのコンテンツ。 |
127.0.2.11 |
| Status |
string |
任意 |
ブラックリストまたはホワイトリストを有効にするかどうかを指定します。 列挙値:
|
on |
| GatewayUniqueId |
string |
必須 |
ゲートウェイの一意の ID。 |
gw-c70622ff52fe49beb29bea9a6f52**** |
| IsWhite |
boolean |
任意 |
ホワイトリストを有効にするかどうかを指定します。 |
true |
| ResourceIdJsonList |
string |
任意 |
JSON フォーマットのリソース ID。 |
[123] |
| Note |
string |
任意 |
説明。 |
this is a note |
| Name |
string |
任意 |
名前。 |
name |
| AcceptLanguage |
string |
任意 |
応答の言語。有効な値:
|
zh |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
データ構造。 |
||
| RequestId |
string |
リクエスト ID。 |
AD5DEDA0-C82A-50D9-AF54-BD3576CCFB4C |
| HttpStatusCode |
integer |
返される HTTP ステータスコード。 |
200 |
| Message |
string |
返されるメッセージ。 |
You are not authorized to perform this operation. |
| Code |
integer |
戻り値。 |
200 |
| Success |
boolean |
リクエストが成功したかどうかを示します。有効な値:
|
true |
| Data |
integer |
レコードの ID。 |
13 |
例
成功レスポンス
JSONJSON
{
"RequestId": "AD5DEDA0-C82A-50D9-AF54-BD3576CCFB4C",
"HttpStatusCode": 200,
"Message": "You are not authorized to perform this operation.",
"Code": 200,
"Success": true,
"Data": 13
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | |
| 400 | InvalidParameter | Parameter error:%s | |
| 500 | InternalError | Console error. Try again later:%s | |
| 403 | NoPermission | You are not authorized to perform this operation:%s | |
| 404 | NotFound | Not found:%s |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。