ブラックリストまたはホワイトリストを作成します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:AddBlackWhiteList |
create |
*Gateway
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| GatewayUniqueId |
string |
必須 |
ゲートウェイの一意の ID。 |
gw-0fe488252dc44d55a9dd57875193**** |
| ResourceType |
string |
任意 |
ブラックリストまたはホワイトリストの有効範囲。 有効な値:
|
GATEWAY |
| Type |
string |
任意 |
ブラックリストまたはホワイトリスト内のオブジェクトのタイプ。 |
IP |
| Content |
string |
任意 |
ブラックリストのコンテンツ。 |
1.117.115.51 |
| Status |
string |
任意 |
ブラックリストのステータス。
|
off |
| IsWhite |
boolean |
任意 |
ホワイトリストかどうか。 デフォルト値は false です。 |
false |
| ResourceIdJsonList |
string |
任意 |
JSON 形式のリソース ID。 |
[123] |
| Note |
string |
任意 |
説明。 |
this is a note |
| Name |
string |
任意 |
名前。 |
name |
| AcceptLanguage |
string |
任意 |
応答の言語。 有効な値:
|
zh |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
データ構造。 |
||
| RequestId |
string |
リクエスト ID。 |
966F6CA7-16D0-50AB-AB02-E140934F90C1 |
| HttpStatusCode |
integer |
返される HTTP ステータスコード。 |
200 |
| Message |
string |
エラーメッセージ。 |
You are not authorized to perform this operation. |
| Code |
integer |
返されるステータスコード。 |
200 |
| Success |
boolean |
リクエストが成功したかどうかを示します。 有効な値:
|
true |
| Data |
integer |
レコードの ID。 |
2 |
例
成功レスポンス
JSONJSON
{
"RequestId": "966F6CA7-16D0-50AB-AB02-E140934F90C1",
"HttpStatusCode": 200,
"Message": "You are not authorized to perform this operation.",
"Code": 200,
"Success": true,
"Data": 2
}
エラーコード
|
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 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。