SQL ファイアウォールルールについて説明します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
polardb:DescribeFirewallRules |
get |
*DBCluster
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DBClusterId |
string |
必須 |
クラスター ID。 |
pc-***************** |
| RuleNameList |
string |
任意 |
照会するファイアウォールルールの名前。 複数のルールを照会するには、ルール名をカンマ (,) で区切ります。 説明
DescribeFirewallRules 操作を呼び出して、ルール名など、ターゲットクラスターのすべてのファイアウォールルールの詳細を表示します。 |
testrule |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
84D7DCD2-54F7-5BD2-B055-F5DE9D2B5264 |
| Message |
string |
応答メッセージ。 説明
リクエストが成功した場合、Successful が返されます。 リクエストが失敗した場合、エラーコードなどのエラーメッセージが返されます。 |
Message |
| Success |
boolean |
リクエストが成功したかどうかを示します。 有効な値:
|
true |
| Data |
object |
結果セット。 |
|
| RuleList |
array |
ファイアウォールルールのリスト。 |
|
|
string |
ルールオブジェクト。 |
"{"mode":"Defending","endpoint":"[{"EndpointName":"pe-**************","EndpointType":"Cluster","DBEndpointDescription":"Cluster Address"},{"EndpointName":"pe-************","EndpointType":"Custom","DBEndpointDescription":"pc-***********"},{"EndpointName":"pe-**************","EndpointType":"Custom","DBEndpointDescription":"pc-***********"}]","id":"test","sub_rules":[],"type":"BlackList","enabled":"true","users":{"applies_to":[]}}" |
|
| DBClusterId |
string |
クラスター ID。 |
pc-***************** |
例
成功レスポンス
JSONJSON
{
"RequestId": "84D7DCD2-54F7-5BD2-B055-F5DE9D2B5264",
"Message": "Message",
"Success": true,
"Data": {
"RuleList": [
"\"{\"mode\":\"Defending\",\"endpoint\":\"[{\"EndpointName\":\"pe-**************\",\"EndpointType\":\"Cluster\",\"DBEndpointDescription\":\"Cluster Address\"},{\"EndpointName\":\"pe-************\",\"EndpointType\":\"Custom\",\"DBEndpointDescription\":\"pc-***********\"},{\"EndpointName\":\"pe-**************\",\"EndpointType\":\"Custom\",\"DBEndpointDescription\":\"pc-***********\"}]\",\"id\":\"test\",\"sub_rules\":[],\"type\":\"BlackList\",\"enabled\":\"true\",\"users\":{\"applies_to\":[]}}\""
]
},
"DBClusterId": "pc-*****************\n"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。