getPolicyList
    • PDF

    getPolicyList

    • PDF

    Article Summary

    개요

    Policy 리스트를 조회합니다.

    요청

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

    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사용자 번호

    요청 파라미터

    파라미터명필수 여부타입설명비고
    pagenoInteger페이지 인덱스기본값 0
    countPerPagenoInteger페이지 사이즈기본값 0

    요청 바디

    {
      "countPerPage": 0,
      "page": 0
    }
    

    응답

    응답 바디

    파라미터명타입설명
    actionString요청 유형
    returnCodeInteger응답 코드
    returnMessageString응답 메세지
    totalCountIntegerPolicy 개수
    policyList[].policyNoInteger정책 번호
    policyList[].policyNameString정책명
    policyList[].descriptionString정책 설명
    policyList[].actionString허용 차단 구분(allow, deny)
    policyList[].memberNoString멤버 번호
    policyList[].instanceNoString인스턴스 번호
    policyList[].sourceAddressZoneString출발지 AddressZone 정보
    policyList[].destinationAddressZoneString목적지 AddressZone 정보
    policyList[].firewallPolicyIdInteger방화벽 정책 아이디
    policyList[].firewallOrderInteger방화벽 정책 순서
    policyList[].sourceAddressGroupList[].addressGroupNameStringAddress Group명
    policyList[].sourceAddressGroupList[].addressGroupNoIntegerAddress Group 번호
    policyList[].sourceAddressGroupList[].addressList[].addressNoIntegerAddress 번호
    policyList[].sourceAddressGroupList[].addressList[].addressZoneStringAddressZone 정보
    policyList[].sourceAddressGroupList[].addressList[].dbAddressZoneBooleandb AddressZone 여부
    policyList[].sourceAddressGroupList[].addressList[].fqdnStringfqdn
    policyList[].sourceAddressGroupList[].addressList[].instanceNoString인스턴스 번호
    policyList[].sourceAddressGroupList[].addressList[].ipStringIp
    policyList[].sourceAddressGroupList[].addressList[].maskBitIntegerMaskBit
    policyList[].sourceAddressGroupList[].addressList[].memberNoString멤버 번호
    policyList[].sourceAddressGroupList[].addressList[].nameStringAddress명
    policyList[].sourceAddressGroupList[].addressList[].portStringPort
    policyList[].sourceAddressGroupList[].addressList[].typeStringAddress Type 정보(ipmask, fqdn)
    policyList[].sourceAddressGroupList[].addressZoneStringAddressZone 정보
    policyList[].sourceAddressGroupList[].associatedPoliciesCountInteger미사용
    policyList[].sourceAddressGroupList[].descriptionString설명
    policyList[].sourceAddressGroupList[].instanceNoString인스턴스 번호
    policyList[].sourceAddressGroupList[].memberNoString멤버 번호
    policyList[].sourceAddressGroupList[].objectStorageBoolean오브젝트 스토리지 여부
    policyList[].sourceAddressList[].addressNoIntegerAddress 번호
    policyList[].sourceAddressList[].addressZoneStringAddressZone 정보
    policyList[].sourceAddressList[].dbAddressZoneBooleandb AddressZone 여부
    policyList[].sourceAddressList[].fqdnStringfqdn
    policyList[].sourceAddressList[].instanceNoString인스턴스 번호
    policyList[].sourceAddressList[].ipStringIp
    policyList[].sourceAddressList[].maskBitIntegerMaskBit
    policyList[].sourceAddressList[].memberNoString멤버 번호
    policyList[].sourceAddressList[].nameStringAddress명
    policyList[].sourceAddressList[].portStringPort
    policyList[].sourceAddressList[].typeStringAddress Type 정보(ipmask, fqdn)
    policyList[].destinationAddressGroupList[].addressGroupNameStringAddress Group명
    policyList[].destinationAddressGroupList[].addressGroupNoIntegerAddress Group 번호
    policyList[].destinationAddressGroupList[].addressList[].addressNoIntegerAddress 번호
    policyList[].destinationAddressGroupList[].addressList[].addressZoneStringAddressZone 정보
    policyList[].destinationAddressGroupList[].addressList[].dbAddressZoneBooleandb AddressZone 여부
    policyList[].destinationAddressGroupList[].addressList[].fqdnStringfqdn
    policyList[].destinationAddressGroupList[].addressList[].instanceNoString인스턴스 번호
    policyList[].destinationAddressGroupList[].addressList[].ipStringIp
    policyList[].destinationAddressGroupList[].addressList[].maskBitIntegerMaskBit
    policyList[].destinationAddressGroupList[].addressList[].memberNoString멤버 번호
    policyList[].destinationAddressGroupList[].addressList[].nameStringAddress명
    policyList[].destinationAddressGroupList[].addressList[].portStringPort
    policyList[].destinationAddressGroupList[].addressList[].typeStringAddress Type 정보(ipmask, fqdn)
    policyList[].destinationAddressGroupList[].addressZoneStringAddressZone 정보
    policyList[].destinationAddressGroupList[].associatedPoliciesCountInteger미사용
    policyList[].destinationAddressGroupList[].descriptionString설명
    policyList[].destinationAddressGroupList[].instanceNoString인스턴스 번호
    policyList[].destinationAddressGroupList[].memberNoString멤버 번호
    policyList[].destinationAddressGroupList[].objectStorageBoolean오브젝트 스토리지 여부
    policyList[].destinationAddressList[].addressNoIntegerAddress 번호
    policyList[].destinationAddressList[].addressZoneStringAddressZone 정보
    policyList[].destinationAddressList[].dbAddressZoneBooleandb AddressZone 여부
    policyList[].destinationAddressList[].fqdnStringfqdn
    policyList[].destinationAddressList[].instanceNoString인스턴스 번호
    policyList[].destinationAddressList[].ipStringIp
    policyList[].destinationAddressList[].maskBitIntegerMaskBit
    policyList[].destinationAddressList[].memberNoString멤버 번호
    policyList[].destinationAddressList[].nameStringAddress명
    policyList[].destinationAddressList[].portStringPort
    policyList[].destinationAddressList[].typeStringAddress Type 정보(ipmask, fqdn)
    policyList[].serviceList[].serviceNoInteger서비스 번호
    policyList[].serviceList[].serviceNameString서비스명
    policyList[].serviceList[].protocolString방화벽 서비스 프로토콜
    policyList[].serviceList[].portString방화벽 서비스 포트번호
    policyList[].serviceList[].memberNoString멤버 번호
    policyList[].serviceList[].instanceNoString인스턴스 번호

    응답 바디

    {
      "action": "string",
      "policyList": [
        {
          "action": "string",
          "description": "string",
          "destinationAddressGroupList": [
            {
              "addressGroupName": "string",
              "addressGroupNo": 0,
              "addressList": [
                {
                  "addressNo": 0,
                  "addressZone": "string",
                  "fqdn": "string",
                  "instanceNo": "string",
                  "ip": "string",
                  "maskBit": 0,
                  "memberNo": "string",
                  "name": "string",
                  "port": "string",
                  "type": "ipmask"
                }
              ],
              "addressZone": "string",
              "associatedPoliciesCount": 0,
              "description": "string",
              "instanceNo": "string",
              "memberNo": "string",
              "objectStorage": true
            }
          ],
          "destinationAddressList": [
            {
              "addressNo": 0,
              "addressZone": "string",
              "fqdn": "string",
              "instanceNo": "string",
              "ip": "string",
              "maskBit": 0,
              "memberNo": "string",
              "name": "string",
              "port": "string",
              "type": "ipmask"
            }
          ],
          "destinationAddressZone": "string",
          "firewallOrder": 0,
          "firewallPolicyId": 0,
          "instanceNo": "string",
          "memberNo": "string",
          "policyName": "string",
          "policyNo": 0,
          "serviceList": [
            {
              "instanceNo": "string",
              "memberNo": "string",
              "port": "string",
              "protocol": "string",
              "serviceName": "string",
              "serviceNo": 0
            }
          ],
          "sourceAddressGroupList": [
            {
              "addressGroupName": "string",
              "addressGroupNo": 0,
              "addressList": [
                {
                  "addressNo": 0,
                  "addressZone": "string",
                  "fqdn": "string",
                  "instanceNo": "string",
                  "ip": "string",
                  "maskBit": 0,
                  "memberNo": "string",
                  "name": "string",
                  "port": "string",
                  "type": "ipmask"
                }
              ],
              "addressZone": "string",
              "associatedPoliciesCount": 0,
              "description": "string",
              "instanceNo": "string",
              "memberNo": "string",
              "objectStorage": true
            }
          ],
          "sourceAddressList": [
            {
              "addressNo": 0,
              "addressZone": "string",
              "fqdn": "string",
              "instanceNo": "string",
              "ip": "string",
              "maskBit": 0,
              "memberNo": "string",
              "name": "string",
              "port": "string",
              "type": "ipmask"
            }
          ],
          "sourceAddressZone": "string"
        }
      ],
      "returnCode": 0,
      "returnMessage": "string",
      "totalCount": 0
    }
    

    오류 코드

    공통적으로 발생하는 오류에 대한 상세한 설명은 NAVER Cloud Platform API를 참고해주세요


    이 문서가 도움이 되었습니까?

    What's Next
    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.