ポリシー一括設定

API情報

API種別 メソッド URI 対象 名称 実行
設定 PUT /:GisServiceCode/firewalls/:IfwServiceCode/policies.json ファイアウォール

ポリシー一括設定

同期

リクエストパラメータ

  パラメータ 必須 意味
URL GisServiceCode P2契約のサービスコード gis########
  IfwServiceCode ファイアウォールのサービスコード ifw########
ボディ PolicyList ポリシーの一覧 オブジェクトの配列
  PolicyList.Name ポリシーの名前

文字列

  • 文字数
    • 1文字以上50文字以下
  • 使用可能文字
    • 半角英字(大文字・小文字)
    • 半角数字
    • 半角記号: _
  PolicyList.SourceAddressObjectId 送信元のアドレスオブジェクトID 数字
  PolicyList.DestinationAddressObjectId 宛先のアドレスオブジェクトID 数字
  PolicyList.ServiceObjectId サービスオブジェクトID 数字
  PolicyList.Action ポリシー動作 "ACCEPT", "DROP"
  PolicyList.Enabled 有効・無効 "Yes", "No"

レスポンス

フィールド タイプ 意味
Current Object 設定後のポリシー オブジェクト
Current.PolicyList Object 設定後のポリシー一覧 オブジェクトの配列
Current.PolicyList.Name String 設定後のポリシーの名前 文字列
Current.PolicyList.SourceAddressObjectId String 設定後の送信元のアドレスオブジェクトID 数字
Current.PolicyList.DestinationAddressObjectId String 設定後の宛先のアドレスオブジェクトID 数字
Current.PolicyList.ServiceObjectId String 設定後のサービスオブジェクトID 数字
Current.PolicyList.Action String 設定後のポリシー動作 "ACCEPT", "DROP"
Current.PolicyList.Enabled String 設定後の有効・無効 "Yes", "No"
Previous Object 設定前のポリシー オブジェクト
Previous.PolicyList Object 設定前のポリシー一覧 オブジェクトの配列
Previous.PolicyList.Name String 設定前のポリシーの名前 文字列
Previous.PolicyList.SourceAddressObjectId String 設定前の送信元のアドレスオブジェクトID 数字
Previous.PolicyList.DestinationAddressObjectId String 設定前の宛先のアドレスオブジェクトID 数字
Previous.PolicyList.ServiceObjectId String 設定前のサービスオブジェクトID 数字
Previous.PolicyList.Action String 設定前のポリシー動作 "ACCEPT", "DROP"
Previous.PolicyList.Enabled String 設定前の有効・無効 "Yes", "No"

エラーコード

制限

サンプル

リクエストボディ

{
    "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"
        }
    ]
}

レスポンス (JSON)

Json
{
    "RequestId": "xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx",
    "Current": {
        "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"
            }
        ]
    },
    "Previous": {
        "PolicyList": [ 
            {
                "Name": "WEB_APPLICATION1",
                "SourceAddressObjectId": "1",
                "DestinationAddressObjectId": "2",
                "ServiceObjectId": "1",
                "Action": "ACCEPT",
                "Enabled": "Yes"
            }
        ]
    }
}