updatePolicy
    • PDF

    updatePolicy

    • PDF

    Article Summary

    개요

    Secure Zone Firewall 의 Policy 정책을 변경합니다.

    요청

    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-key네이버 클라우드 플랫폼에서 발급받은 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.