ポリシー情報取得
API情報
| API種別 | メソッド | URI | 対象 | 名称 | 実行 |
|---|---|---|---|---|---|
| 設定 | GET | /:GisServiceCode/firewalls/:IfwServiceCode/policies.json | ファイアウォール | ポリシー情報取得 |
同期 |
- 指定されたファイアウォールのポリシーを取得します
リクエストパラメータ
| パラメータ | 必須 | 意味 | 値 | |
|---|---|---|---|---|
| URL | GisServiceCode | ○ | P2契約のサービスコード | gis######## |
| IfwServiceCode | ○ | ファイアウォールのサービスコード | ifw######## |
レスポンス
| フィールド | タイプ | 意味 | 値 |
|---|---|---|---|
| PolicyList | Object | ポリシー一覧 | オブジェクトの配列 |
| PolicyList.Name | String | ポリシーの名前 | 文字列 |
| PolicyList.SourceAddressObjectId | String | 送信元のアドレスオブジェクトID | 数字 |
| PolicyList.DestinationAddressObjectId | String | 宛先のアドレスオブジェクトID | 数字 |
| PolicyList.ServiceObjectId | String | サービスオブジェクトID | 数字 |
| PolicyList.Action | String | ポリシー動作 | "ACCEPT", "DROP" |
| PolicyList.Enabled | String | 有効・無効 | "Yes", "No" |
制限
- 特になし
サンプル
リクエストボディ
無し
レスポンス (JSON)
{ |
"RequestId": "xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx", |
"PolicyList": [ |
{ |
"Name": "WEB_APPLICATION1", |
"SourceAddressObjectId": "1", |
"DestinationAddressObjectId": "2", |
"ServiceObjectId": "1", |
"Action": "ACCEPT", |
"Enabled": "Yes" |
}, |
{ |
"Name": "WEB_APPLICATION2", |
"SourceAddressObjectId": "1", |
"DestinationAddressObjectId": "3", |
"ServiceObjectId": "2", |
"Action": "ACCEPT", |
"Enabled": "Yes" |
} |
] |
} |