addPolicy
- 인쇄
- PDF
addPolicy
- 인쇄
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
개요
- addPolicy API 는 "Secure Zone Firewall"의 Policy 메뉴에서 제공하는 기능으로 정책 신규 설정을 할 수 있는 API입니다.
요청
Method | Request URI |
---|---|
POST | https://securezonefirewall.apigw.ntruss.com/api/v2/{type}/{zone}/addPolicy |
Type
Value | 설명 |
---|---|
szfw | Secure Zone Standard |
psfw | Secure Zone Advanced |
Zone
Value | 설명 |
---|---|
kr1 | KR-1 Zone |
kr2 | KR-2 Zone |
요청 헤더
헤더명 | 설명 |
---|---|
x-ncp-apigw-timestamp | 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 나타낸 것 API Gateway 서버와 시간 차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주 |
x-ncp-iam-access-key | 네이버 클라우드 플랫폼에서 발급받은 API Key 또는 IAM에서 발급받은 AccessKey |
x-ncp-apigw-signature-v2 | Body를 AccessKey와 맵핑되는 SecretKey로 암호화한 서명 HMAC 암호화 알고리즘은 HmacSHA256 사용 |
x-ncp-mbr_no | 사용자 번호 |
요청 파라미터
파라미터명 | 필수 여부 | 타입 | 설명 | 비고 |
---|---|---|---|---|
addressGroup.addressGroupNo | no | Integer | Address Group 번호 | |
addressGroup.addressGroupName | yes | String | Address Group 명 | |
addressGroup.description | no | String | Address Group 설명정보 | |
addressGroup.memberNo | no | String | 사용자 번호 | |
addressGroup.instanceNo | no | String | 인스턴스 번호 | |
addressGroup.addressList[].addressNo | no | Integer | Address 번호 | |
addressGroup.addressList[].memberNo | no | String | 사용자 번호 | |
addressGroup.addressList[].instanceNo | no | String | 인스턴스 번호 | |
addressGroup.addressList[].name | yes | String | Address 명 | |
addressGroup.addressList[].ip | yes | String | ip | |
addressGroup.addressList[].maskBit | no | Integer | maskbit | |
addressGroup.addressList[].fqdn | no | String | fqdn | 조건부 필수, type이 fqdn일 경우 값 미존재시 오류 발생 |
addressGroup.addressList[].port | no | String | port | |
addressGroup.addressList[].type | no | String | Address type 정보(ipmask, fqdn) | |
addressGroup.addressList[].addressZone | yes | String | AddressZone 정보 | |
addressGroup.addressZone | no | String | AddressGroup Zone정보 | 미존재시 addressList의 첫번째 Address의 AddressZone정보 사용 |
addressGroup.objectStorage | no | boolean | 오브젝트 스토리지 여부 | 기본값 false |
요청 바디
{
"action": "string",
"description": "string",
"destinationAddressGroupList": [
{
"addressGroupName": "string",
"addressGroupNo": 0,
"addressList": [
{
"addressNo": 0,
"addressZone": "string",
"fqdn": "string",
"ip": "string",
"maskBit": 0,
"name": "string",
"port": "string",
"type": "string"
}
],
"addressZone": "string",
"description": "string",
"objectStorage": true
}
],
"destinationAddressList": [
{
"addressNo": 0,
"addressZone": "string",
"fqdn": "string",
"ip": "string",
"maskBit": 0,
"name": "string",
"port": "string",
"type": "string"
}
],
"destinationAddressZone": "string",
"policyName": "string",
"port": "string",
"protocol": "string",
"sourceAddressGroupList": [
{
"addressGroupName": "string",
"addressGroupNo": 0,
"addressList": [
{
"addressNo": 0,
"addressZone": "string",
"fqdn": "string",
"ip": "string",
"maskBit": 0,
"name": "string",
"port": "string",
"type": "string"
}
],
"addressZone": "string",
"description": "string",
"objectStorage": true
}
],
"sourceAddressList": [
{
"addressNo": 0,
"addressZone": "string",
"fqdn": "string",
"ip": "string",
"maskBit": 0,
"name": "string",
"port": "string",
"type": "string"
}
],
"sourceAddressZone": "string",
"sourceAddressZoneFromAddress": "string",
"sourceAddressZoneFromAddressGroup": "string",
"sourceMemberZone": "string"
}
응답
응답 바디
파라미터명 | 타입 | 설명 |
---|---|---|
action | String | 요청 유형 |
returnCode | Integer | 응답 코드 |
returnMessage | String | 응답 메세지 |
응답 바디
{
"action": "string",
"returnCode": 0,
"returnMessage": "string"
}
오류 코드
공통적으로 발생하는 오류에 대한 상세한 설명은 NAVER Cloud Platform API를 참고해주세요
이 문서가 도움이 되었습니까?