getPolicy
- 印刷する
- PDF
getPolicy
- 印刷する
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
概要
Policyの設定内容を照会します。
policyNoが未入力の場合、最も優先順位の低い Policyが照会されます。
リクエスト
Method | Request URI |
---|---|
POST | https://securezonefirewall.apigw.gov-ntruss.com/api/v2/{type}/{zone}/getPolicy |
Type
Value | Description |
---|---|
szfw | Secure Zone Standard |
psfw | Secure Zone Advanced |
Zone
Value | Description |
---|---|
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 | NAVERクラウドプラットフォームから発行された API Keyまたは IAMから発行された AccessKey |
x-ncp-apigw-signature-v2 | Bodyを AccessKeyとマッピングする SecretKeyで暗号化した署名 HMAC暗号化アルゴリズムは HmacSHA256を使用 |
x-ncp-mbr_no | ユーザー番号 |
リクエストパラメータ
パラメータ名 | 要否 | タイプ | 説明 | 備考 |
---|---|---|---|---|
policyName | no | String | ポリシー名 | |
policyNo | no | String | ポリシー番号 |
リクエストボディ
{
"policyName": "string",
"policyNo": 0
}
レスポンス
レスポンスボディ
パラメータ名 | タイプ | 説明 |
---|---|---|
policy.action | String | 許可遮断区分(allow、deny) |
policy.description | String | ポリシーの説明 |
policy.destinationAddressGroupList[].addressGroupName | String | Address Group名 |
policy.destinationAddressGroupList[].addressGroupNo | Integer | Address Group番号 |
policy.destinationAddressGroupList[].addressList[].addressNo | Integer | Address番号 |
policy.destinationAddressGroupList[].addressList[].addressZone | String | AddressZone情報 |
policy.destinationAddressGroupList[].addressList[].dbAddressZone | Boolean | db AddressZoneの有無 |
policy.destinationAddressGroupList[].addressList[].fqdn | String | fqdn |
policy.destinationAddressGroupList[].addressList[].instanceNo | String | インスタンス番号 |
policy.destinationAddressGroupList[].addressList[].ip | String | Ip |
policy.destinationAddressGroupList[].addressList[].maskBit | Integer | MaskBit |
policy.destinationAddressGroupList[].addressList[].memberNo | String | メンバー番号 |
policy.destinationAddressGroupList[].addressList[].name | String | Address名 |
policy.destinationAddressGroupList[].addressList[].port | String | Port |
policy.destinationAddressGroupList[].addressList[].type | String | Address Type情報(ipmask、fqdn) |
policy.destinationAddressGroupList[].addressZone | String | AddressZone情報 |
policy.destinationAddressGroupList[].associatedPoliciesCount | Integer | 未使用 |
policy.destinationAddressGroupList[].description | String | 説明 |
policy.destinationAddressGroupList[].instanceNo | String | インスタンス番号 |
policy.destinationAddressGroupList[].memberNo | String | メンバー番号 |
policy.destinationAddressGroupList[].objectStorage | Boolean | オブジェクトストレージの有無 |
policy.destinationAddressList[].addressNo | Integer | Address番号 |
policy.destinationAddressList[].addressZone | String | AddressZone情報 |
policy.destinationAddressList[].dbAddressZone | Boolean | db AddressZoneの有無 |
policy.destinationAddressList[].fqdn | String | fqdn |
policy.destinationAddressList[].instanceNo | String | インスタンス番号 |
policy.destinationAddressList[].ip | String | Ip |
policy.destinationAddressList[].maskBit | Integer | MaskBit |
policy.destinationAddressList[].memberNo | String | メンバー番号 |
policy.destinationAddressList[].name | String | Address名 |
policy.destinationAddressList[].port | String | Port |
policy.destinationAddressList[].type | String | Address Type情報(ipmask、fqdn) |
policy.destinationAddressZone | String | 宛先 AddressZone情報 |
policy.firewallOrder | Integer | ファイアウォールポリシーの順序 |
policy.firewallPolicyId | Integer | ファイアウォールポリシー ID |
policy.instanceNo | String | インスタンス番号 |
policy.memberNo | String | ユーザー番号 |
policy.policyName | String | ポリシー名 |
policy.policyNo | Integer | ポリシー番号 |
policy.serviceList[].instanceNo | String | インスタンス番号 |
policy.serviceList[].memberNo | String | メンバー番号 |
policy.serviceList[].port | String | ファイアウォールサービスポート番号 |
policy.serviceList[].protocol | String | ファイアウォールサービスプロトコル |
policy.serviceList[].serviceName | String | サービス名 |
policy.serviceList[].serviceNo | Integer | サービス番号 |
policy.sourceAddressGroupList[].addressGroupName | String | Address Group名 |
policy.sourceAddressGroupList[].addressGroupNo | Integer | Address Group番号 |
policy.sourceAddressGroupList[].addressList[].addressNo | Integer | Address番号 |
policy.sourceAddressGroupList[].addressList[].addressZone | String | AddressZone情報 |
policy.sourceAddressGroupList[].addressList[].dbAddressZone | Boolean | db AddressZoneの有無 |
policy.sourceAddressGroupList[].addressList[].fqdn | String | fqdn |
policy.sourceAddressGroupList[].addressList[].instanceNo | String | インスタンス番号 |
policy.sourceAddressGroupList[].addressList[].ip | String | Ip |
policy.sourceAddressGroupList[].addressList[].maskBit | Integer | MaskBit |
policy.sourceAddressGroupList[].addressList[].memberNo | String | メンバー番号 |
policy.sourceAddressGroupList[].addressList[].name | String | Address名 |
policy.sourceAddressGroupList[].addressList[].port | String | Port |
policy.sourceAddressGroupList[].addressList[].type | String | Address Type情報(ipmask、fqdn) |
policy.sourceAddressGroupList[].addressZone | String | AddressZone情報 |
policy.sourceAddressGroupList[].associatedPoliciesCount | Integer | 未使用 |
policy.sourceAddressGroupList[].description | String | 説明 |
policy.sourceAddressGroupList[].instanceNo | String | インスタンス番号 |
policy.sourceAddressGroupList[].memberNo | String | メンバー番号 |
policy.sourceAddressGroupList[].objectStorage | Boolean | オブジェクトストレージの有無 |
policy.sourceAddressList[].addressNo | Integer | Address番号 |
policy.sourceAddressList[].addressZone | String | AddressZone情報 |
policy.sourceAddressList[].dbAddressZone | Boolean | db AddressZoneの有無 |
policy.sourceAddressList[].fqdn | String | fqdn |
policy.sourceAddressList[].instanceNo | String | インスタンス番号 |
policy.sourceAddressList[].ip | String | Ip |
policy.sourceAddressList[].maskBit | Integer | MaskBit |
policy.sourceAddressList[].memberNo | String | メンバー番号 |
policy.sourceAddressList[].name | String | Address名 |
policy.sourceAddressList[].port | String | Port |
policy.sourceAddressList[].type | String | Address Type情報(ipmask、fqdn) |
policy.sourceAddressZone | String | ソース AddressZone情報 |
action | String | リクエストタイプ |
returnCode | Integer | レスポンスコード |
returnMessage | String | レスポンスメッセージ |
レスポンスボディ
{
"action": "string",
"policy": {
"action": "string",
"description": "string",
"destinationAddressGroupList": [
{
"addressGroupName": "string",
"addressGroupNo": 0,
"addressList": [
{
"addressNo": 0,
"addressZone": "string",
"dbAddressZone": true,
"fqdn": "string",
"instanceNo": "string",
"ip": "string",
"maskBit": 0,
"memberNo": "string",
"name": "string",
"port": "string",
"type": "string"
}
],
"addressZone": "string",
"associatedPoliciesCount": 0,
"description": "string",
"instanceNo": "string",
"memberNo": "string",
"objectStorage": true
}
],
"destinationAddressList": [
{
"addressNo": 0,
"addressZone": "string",
"dbAddressZone": true,
"fqdn": "string",
"instanceNo": "string",
"ip": "string",
"maskBit": 0,
"memberNo": "string",
"name": "string",
"port": "string",
"type": "string"
}
],
"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",
"dbAddressZone": true,
"fqdn": "string",
"instanceNo": "string",
"ip": "string",
"maskBit": 0,
"memberNo": "string",
"name": "string",
"port": "string",
"type": "string"
}
],
"addressZone": "string",
"associatedPoliciesCount": 0,
"description": "string",
"instanceNo": "string",
"memberNo": "string",
"objectStorage": true
}
],
"sourceAddressList": [
{
"addressNo": 0,
"addressZone": "string",
"dbAddressZone": true,
"fqdn": "string",
"instanceNo": "string",
"ip": "string",
"maskBit": 0,
"memberNo": "string",
"name": "string",
"port": "string",
"type": "string"
}
],
"sourceAddressZone": "string"
},
"returnCode": 0,
"returnMessage": "string"
}
エラーコード
共通して発生するエラーの詳細は、NAVER Cloud Platform APIをご参照ください
この記事は役に立ちましたか?