updatePolicy
    • PDF

    updatePolicy

    • PDF

    Article Summary

    概要

    Secure Zone Firewallのポリシーを変更します。

    リクエスト

    MethodRequest URI
    POSThttps://securezonefirewall.apigw.ntruss.com/api/v2/{type}/{zone}/updatePolicy

    Type

    Value説明
    szfwSecure Zone Standard
    psfwSecure Zone Advanced

    Zone

    Value説明
    kr1KR-1 Zone
    kr2KR-2 Zone

    リクエストヘッダ

    ヘッダ名説明
    x-ncp-apigw-timestamp1970年1月1日 00:00:00 協定世界時(UTC)からの経過時間をミリ秒(Millisecond)で表したもの
    API Gatewayサーバとの時間差が5分以上の場合は、無効なリクエストとみなす
    x-ncp-iam-access-keyNAVERクラウドプラットフォームから発行された API Keyまたは IAMから発行された AccessKey
    x-ncp-apigw-signature-v2Bodyを AccessKeyとマッピングする SecretKeyで暗号化した署名
    HMAC暗号化アルゴリズムは HmacSHA256を使用
    x-ncp-mbr_noユーザー番号

    リクエストパラメータ

    パラメータ名要否タイプ説明備考
    newPolicyNamenoString変更するポリシー名ない場合は既存のポリシー名をそのまま使用
    actionYesString許可遮断区分(allow、deny)
    descriptionNoStringポリシーの説明
    destinationAddressGroupList[].addressGroupNameYesStringAddress Group名
    destinationAddressGroupList[].addressGroupNoYesIntegerAddress Group番号
    destinationAddressGroupList[].addressList[].addressNoYesIntegerAddress番号
    destinationAddressGroupList[].addressList[].addressZoneYesStringAddressZone情報
    destinationAddressGroupList[].addressList[].fqdnNoStringfqdn
    destinationAddressGroupList[].addressList[].instanceNoNoStringインスタンス番号
    destinationAddressGroupList[].addressList[].ipYesStringIp
    destinationAddressGroupList[].addressList[].maskBitNoIntegerMaskBit
    destinationAddressGroupList[].addressList[].memberNoNoStringメンバー番号
    destinationAddressGroupList[].addressList[].nameYesStringAddress名
    destinationAddressGroupList[].addressList[].portNoStringPort
    destinationAddressGroupList[].addressList[].typeNoStringAddress Type情報(ipmask、fqdn)デフォルト値 False
    destinationAddressGroupList[].addressZoneYesStringAddressZone情報
    destinationAddressGroupList[].descriptionNoString説明
    destinationAddressGroupList[].instanceNoYesStringインスタンス番号
    destinationAddressGroupList[].memberNoYesStringメンバー番号
    destinationAddressGroupList[].objectStorageNoBooleanオブジェクトストレージの有無デフォルト値 False
    destinationAddressList[].addressNoNoIntegerAddress番号
    destinationAddressList[].addressZoneYesStringAddressZone情報
    destinationAddressList[].fqdnNoStringfqdn条件付き必須、typeが fqdnの場合、値が存在しない時にエラー発生
    destinationAddressList[].instanceNoNoStringインスタンス番号
    destinationAddressList[].ipYesStringIp
    destinationAddressList[].maskBitNoIntegerMaskBit
    destinationAddressList[].memberNoNoStringメンバー番号
    destinationAddressList[].nameYesStringAddress名
    destinationAddressList[].portNoStringPort
    destinationAddressList[].typeNoStringAddress Type情報(ipmask、fqdn)デフォルト値 ipmask
    destinationAddressZoneNoString存在しない場合、AddressGroupや Addressのようなサブ情報で自動設定
    instanceNoYesStringインスタンス番号
    memberNoYesStringユーザー番号
    policyNameYesStringポリシー名
    portNoStringファイアウォールサービスポート番号
    protocolYesStringファイアウォールサービスプロトコル
    sourceAddressGroupList[].addressGroupNameYesStringAddress Group名
    sourceAddressGroupList[].addressGroupNoYesIntegerAddress Group番号
    sourceAddressGroupList[].addressList[].addressNoYesIntegerAddress番号
    sourceAddressGroupList[].addressList[].addressZoneYesStringAddressZone情報
    sourceAddressGroupList[].addressList[].fqdnNoStringfqdn
    sourceAddressGroupList[].addressList[].instanceNoNoStringインスタンス番号
    sourceAddressGroupList[].addressList[].ipYesStringIp
    sourceAddressGroupList[].addressList[].maskBitNoIntegerMaskBit
    sourceAddressGroupList[].addressList[].memberNoNoStringメンバー番号
    sourceAddressGroupList[].addressList[].nameYesStringAddress名
    sourceAddressGroupList[].addressList[].portNoStringPort
    sourceAddressGroupList[].addressList[].typeNoStringAddress Type情報(ipmask、fqdn)デフォルト値 ipmask
    sourceAddressGroupList[].addressZoneYesStringAddressZone情報
    sourceAddressGroupList[].descriptionNoString説明
    sourceAddressGroupList[].instanceNoYesStringインスタンス番号
    sourceAddressGroupList[].memberNoYesStringメンバー番号
    sourceAddressGroupList[].objectStorageNoBooleanオブジェクトストレージの有無デフォルト値 False
    sourceAddressList[].addressNoNoIntegerAddress番号
    sourceAddressList[].addressZoneYesStringAddressZone情報
    sourceAddressList[].fqdnNoStringfqdn条件付き必須、typeが fqdnの場合、値が存在しない時にエラー発生
    sourceAddressList[].instanceNoNoStringインスタンス番号
    sourceAddressList[].ipYesStringIp
    sourceAddressList[].maskBitNoIntegerMaskBit
    sourceAddressList[].memberNoNoStringメンバー番号
    sourceAddressList[].nameYesStringAddress名
    sourceAddressList[].portNoStringPort
    sourceAddressList[].typeNoStringAddress Type情報(ipmask、fqdn)デフォルト値 ipmask
    sourceAddressZoneNoString存在しない場合、AddressGroupや Addressのようなサブ情報で自動設定
    policyNoYesString

    リクエストボディ

    {
      "memberNo": "string",
      "instanceNo": "string",
      "newPolicyName": "string",
      "action": "string",
      "description": "string",
      "destinationAddressGroupList": [
        {
          "memberNo": "string",
          "instanceNo": "string",
          "addressGroupNo": 0,
          "addressGroupName": "string",
          "addressList": [
            {
              "memberNo": "string",
              "instanceNo": "string",
              "addressNo": 0,
              "addressZone": "string",
              "fqdn": "string",
              "ip": "string",
              "maskBit": 0,
              "name": "string",
              "port": "string",
              "type": "ipmask"
            }
          ],
          "addressZone": "string",
          "description": "string",
          "objectStorage": true
        }
      ],
      "destinationAddressList": [
        {
          "memberNo": "string",
          "instanceNo": "string",
          "addressNo": 0,
          "addressZone": "string",
          "fqdn": "string",
          "ip": "string",
          "maskBit": 0,
          "name": "string",
          "port": "string",
          "type": "ipmask"
        }
      ],
      "destinationAddressZone": "string",
      "policyName": "string",
      "port": "string",
      "protocol": "string",
      "sourceAddressGroupList": [
        {
          "memberNo": "string",
          "instanceNo": "string",
          "addressGroupNo": 0,
          "addressGroupName": "string",
          "addressList": [
            {
              "memberNo": "string",
              "instanceNo": "string",
              "addressNo": 0,
              "addressZone": "string",
              "fqdn": "string",
              "ip": "string",
              "maskBit": 0,
              "name": "string",
              "port": "string",
              "type": "ipmask"
            }
          ],
          "addressZone": "string",
          "description": "string",
          "objectStorage": true
        }
      ],
      "sourceAddressList": [
        {
          "memberNo": "string",
          "instanceNo": "string",
          "addressNo": 0,
          "addressZone": "string",
          "fqdn": "string",
          "ip": "string",
          "maskBit": 0,
          "name": "string",
          "port": "string",
          "type": "ipmask"
        }
      ],
      "sourceAddressZone": "string"
    }
    

    レスポンス

    レスポンスボディ

    パラメータ名タイプ説明
    actionStringリクエストタイプ
    returnCodeIntegerレスポンスコード
    returnMessageStringレスポンスメッセージ

    レスポンスボディ

    {
      "action": "string",
      "returnCode": 0,
      "returnMessage": "string"
    }
    

    エラーコード

    共通して発生するエラーの詳細は、NAVER Cloud Platform APIをご参照ください


    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.