Classic 환경에서 이용 가능합니다.
방화벽 정책 목록을 조회합니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
메서드 | URI |
---|---|
POST | /{type}/{zone}/getPolicyList |
요청 헤더
Secure Zone API에서 공통으로 사용하는 헤더에 대한 자세한 내용은 Secure Zone 요청 헤더를 참조해 주십시오.
요청 경로 파라미터
파라미터에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
type |
String | Required | Secure Zone에서 제공하는 방화벽 유형
|
zone |
String | Required | Secure Zone을 구성한 존
|
요청 바디
요청 바디에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
page |
Integer | Optional | 페이지 인덱스
|
countPerPage |
Integer | Optional | 페이지당 항목 수
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request POST 'https://securezonefirewall.apigw.gov-ntruss.com/api/v2/szfw/kr2/getPolicyList'
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'x-ncp-mbr_no: {User number}' \
--header 'Content-Type: application/json' \
--data '{
"countPerPage": 0,
"page": 0
}'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
action |
String | - | 요청 유형 |
returnCode |
Integer | - | 응답 코드 |
returnMessage |
String | - | 응답 메시지 |
totalCount |
Integer | - | 총 정책 개수 |
policyList[] |
Array | - | 조회하는 정책 목록 |
policyList[].policyNo |
Integer | - | 정책에 부여된 고유 번호 |
policyList[].policyName |
String | - | 정책 이름 |
policyList[].description |
String | - | 정책에 대한 설명 |
policyList[].action |
String | - | 허용 여부
|
policyList[].memberNo |
String | - | 사용자의 네이버 클라우드 플랫폼 회원 번호 |
policyList[].instanceNo |
String | - | 인스턴스 생성 시 부여된 계약 번호 |
policyList[].sourceAddressList[] |
Array | - | 출발지 Address의 정보 |
policyList[].sourceAddressList[].addressNo |
Integer | - | Address에 부여된 고유 번호 |
policyList[].sourceAddressList[].memberNo |
String | - | 사용자의 네이버 클라우드 플랫폼 회원 번호 |
policyList[].sourceAddressList[].instanceNo |
String | - | 인스턴스 생성 시 부여된 계약 번호 |
policyList[].sourceAddressList[].name |
String | - | Address의 이름 |
policyList[].sourceAddressList[].ip |
String | - | IP 주소 |
policyList[].sourceAddressList[].port |
String | - | 포트 번호
|
policyList[].sourceAddressList[].type |
String | - | Address 유형 정보
|
policyList[].sourceAddressList[].addressZone |
String | - | Address가 속한 존에 대한 정보
|
policyList[].sourceAddressList[].fqdn |
String | - | 전체 도메인 이름 (FQDN) |
policyList[].sourceAddressList[].dbAddressZone |
Boolean | - | DB Address Zone 여부 |
policyList[].sourceAddressList[].maskBit |
Integer | - | 서브넷 마스크 비트 값
|
policyList[].sourceAddressGroupList[] |
Array | - | 출발지 Address Group의 정보 |
policyList[].sourceAddressGroupList[].addressGroupNo |
Integer | - | Address Group에 부여된 고유 번호 |
policyList[].sourceAddressGroupList[].addressGroupName |
String | - | Address Group의 이름 |
policyList[].sourceAddressGroupList[].description |
String | - | Address Group에 대한 설명 |
policyList[].sourceAddressGroupList[].memberNo |
String | - | 사용자의 네이버 클라우드 플랫폼 회원 번호 |
policyList[].sourceAddressGroupList[].instanceNo |
String | - | 인스턴스 생성 시 부여된 계약 번호 |
policyList[].sourceAddressGroupList[].addressList[].addressNo |
Integer | - | Address에 부여된 고유 번호 |
policyList[].sourceAddressGroupList[].addressList[].memberNo |
String | - | 사용자의 네이버 클라우드 플랫폼 회원 번호 |
policyList[].sourceAddressGroupList[].addressList[].instanceNo |
String | - | 인스턴스 생성 시 부여된 계약 번호 |
policyList[].sourceAddressGroupList[].addressList[].name |
String | - | Address의 이름 |
policyList[].sourceAddressGroupList[].addressList[].ip |
String | - | IP 주소 |
policyList[].sourceAddressGroupList[].addressList[].port |
String | - | 포트 번호
|
policyList[].sourceAddressGroupList[].addressList[].type |
String | - | Address 유형 정보
|
policyList[].sourceAddressGroupList[].addressList[].addressZone |
String | - | Address가 속한 존에 대한 정보
|
policyList[].sourceAddressGroupList[].addressList[].fqdn |
String | - | 전체 도메인 이름 (FQDN) |
policyList[].sourceAddressGroupList[].addressList[].dbAddressZone |
Boolean | - | DB Address Zone 여부 |
policyList[].sourceAddressGroupList[].addressList[].maskBit |
Integer | - | 서브넷 마스크 비트 값
|
policyList[].sourceAddressGroupList[].addressZone |
String | - | 출발지 Address Group이 속한 존에 대한 정보
|
policyList[].sourceAddressGroupList[].associatedPoliciesCount |
Integer | - | 미사용 |
policyList[].sourceAddressGroupList[].objectStorage |
Boolean | - | Object Storage 사용 여부
|
policyList[].destinationAddressList[] |
Array | - | 목적지 Address의 정보 |
policyList[].destinationAddressList[].addressNo |
Integer | - | Address에 부여된 고유 번호 |
policyList[].destinationAddressList[].memberNo |
String | - | 사용자의 네이버 클라우드 플랫폼 회원 번호 |
policyList[].destinationAddressList[].instanceNo |
String | - | 인스턴스 생성 시 부여된 계약 번호 |
policyList[].destinationAddressList[].name |
String | - | Address의 이름 |
policyList[].destinationAddressList[].ip |
String | - | IP 주소 |
policyList[].destinationAddressList[].port |
String | - | 포트 번호
|
policyList[].destinationAddressList[].type |
String | - | Address 유형 정보
|
policyList[].destinationAddressList[].addressZone |
String | - | Address가 속한 존에 대한 정보
|
policyList[].destinationAddressList[].fqdn |
String | - | 전체 도메인 이름 (FQDN) |
policyList[].destinationAddressList[].dbAddressZone |
Boolean | - | DB Address Zone 여부 |
policyList[].destinationAddressList[].maskBit |
Integer | - | 서브넷 마스크 비트 값
|
policyList[].destinationAddressGroupList[] |
Array | - | 목적지 Address Group의 정보 |
policyList[].destinationAddressGroupList[].addressGroupNo |
Integer | - | Address Group에 부여된 고유 번호 |
policyList[].destinationAddressGroupList[].addressGroupName |
String | - | Address Group의 이름 |
policyList[].destinationAddressGroupList[].description |
String | - | Address Group에 대한 설명 |
policyList[].destinationAddressGroupList[].memberNo |
String | - | 사용자의 네이버 클라우드 플랫폼 회원 번호 |
policyList[].destinationAddressGroupList[].instanceNo |
String | - | 인스턴스 생성 시 부여된 계약 번호 |
policyList[].destinationAddressGroupList[].addressList[].addressNo |
Integer | - | Address에 부여된 고유 번호 |
policyList[].destinationAddressGroupList[].addressList[].memberNo |
String | - | 사용자의 네이버 클라우드 플랫폼 회원 번호 |
policyList[].destinationAddressGroupList[].addressList[].instanceNo |
String | - | 인스턴스 생성 시 부여된 계약 번호 |
policyList[].destinationAddressGroupList[].addressList[].name |
String | - | Address의 이름 |
policyList[].destinationAddressGroupList[].addressList[].ip |
String | - | IP 주소 |
policyList[].destinationAddressGroupList[].addressList[].port |
String | - | 포트 번호
|
policyList[].destinationAddressGroupList[].addressList[].type |
String | - | Address 유형 정보
|
policyList[].destinationAddressGroupList[].addressList[].addressZone |
String | - | Address가 속한 존에 대한 정보
|
policyList[].destinationAddressGroupList[].addressList[].fqdn |
String | - | 전체 도메인 이름 (FQDN) |
policyList[].destinationAddressGroupList[].addressList[].dbAddressZone |
Boolean | - | DB Address Zone 여부 |
policyList[].destinationAddressGroupList[].addressList[].maskBit |
Integer | - | 서브넷 마스크 비트 값
|
policyList[].destinationAddressGroupList[].addressZone |
String | - | 목적지 Address Group이 속한 존에 대한 정보
|
policyList[].destinationAddressGroupList[].associatedPoliciesCount |
Integer | - | 미사용 |
policyList[].destinationAddressGroupList[].objectStorage |
Boolean | - | Object Storage 사용 여부
|
policyList[].sourceAddressZone |
String | - | 정책의 출발지 Address의 존 정보
|
policyList[].destinationAddressZone |
String | - | 정책의 목적지 Address의 존 정보
|
policyList[].serviceList[] |
Array | - | 조회하는 정책의 서비스 정보 |
policyList[].serviceList[].serviceNo |
Integer | - | 방화벽 서비스 번호 |
policyList[].serviceList[].serviceName |
String | - | 방화벽 서비스 이름 |
policyList[].serviceList[].protocol |
String | - | 방화벽 서비스의 프로토콜 |
policyList[].serviceList[].port |
String | - | 방화벽 서비스의 포트 번호 |
policyList[].serviceList[].memberNo |
String | - | 사용자의 네이버 클라우드 플랫폼 회원 번호 |
policyList[].serviceList[].instanceNo |
String | - | 인스턴스 생성 시 부여된 계약 번호 |
policyList[].firewallPolicyId |
Integer | - | 방화벽 정책에 부여된 ID |
policyList[].firewallOrder |
Integer | - | 방화벽 정책 순서 |
응답 상태 코드
네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 자세한 내용은 Ncloud API 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"action": "getPolicyList",
"returnCode": 0,
"returnMessage": "success",
"totalCount": 1,
"policyList": [
{
"policyNo": 11787,
"policyName": "pol1",
"description": "policy1",
"action": "allow",
"memberNo": "27***85",
"instanceNo": "25****11",
"sourceAddressList": [
{
"addressNo": 3643,
"memberNo": "27***85",
"instanceNo": "25****11",
"name": "sv-securezone",
"ip": "***.***.***.***",
"type": "ipmask",
"addressZone": "sz"
}
],
"sourceAddressGroupList": [],
"destinationAddressList": [],
"destinationAddressGroupList": [
{
"addressGroupNo": 5432,
"addressGroupName": "Object Storage",
"description": "object storage address group",
"memberNo": "27***85",
"instanceNo": "25****11",
"addressList": [],
"addressZone": "vm",
"associatedPoliciesCount": 0,
"objectStorage": true
}
],
"sourceAddressZone": "sz",
"destinationAddressZone": "os",
"serviceList": [
{
"serviceNo": 1371,
"serviceName": "TCP_443",
"protocol": "TCP",
"port": "443",
"memberNo": "27***85",
"instanceNo": "25****11"
}
],
"firewallPolicyId": 1,
"firewallOrder": 1
}
]
}