updatePolicy
- 印刷する
- PDF
updatePolicy
- 印刷する
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
概要
Secure Zone Firewallのポリシーを変更します。
リクエスト
Method | Request URI |
---|---|
POST | https://securezonefirewall.apigw.ntruss.com/api/v2/{type}/{zone}/updatePolicy |
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 | NAVERクラウドプラットフォームから発行された API Keyまたは IAMから発行された AccessKey |
x-ncp-apigw-signature-v2 | Bodyを AccessKeyとマッピングする SecretKeyで暗号化した署名 HMAC暗号化アルゴリズムは HmacSHA256を使用 |
x-ncp-mbr_no | ユーザー番号 |
リクエストパラメータ
パラメータ名 | 要否 | タイプ | 説明 | 備考 |
---|---|---|---|---|
newPolicyName | no | String | 変更するポリシー名 | ない場合は既存のポリシー名をそのまま使用 |
action | Yes | String | 許可遮断区分(allow、deny) | |
description | No | String | ポリシーの説明 | |
destinationAddressGroupList[].addressGroupName | Yes | String | Address Group名 | |
destinationAddressGroupList[].addressGroupNo | Yes | Integer | Address Group番号 | |
destinationAddressGroupList[].addressList[].addressNo | Yes | Integer | Address番号 | |
destinationAddressGroupList[].addressList[].addressZone | Yes | String | AddressZone情報 | |
destinationAddressGroupList[].addressList[].fqdn | No | String | fqdn | |
destinationAddressGroupList[].addressList[].instanceNo | No | String | インスタンス番号 | |
destinationAddressGroupList[].addressList[].ip | Yes | String | Ip | |
destinationAddressGroupList[].addressList[].maskBit | No | Integer | MaskBit | |
destinationAddressGroupList[].addressList[].memberNo | No | String | メンバー番号 | |
destinationAddressGroupList[].addressList[].name | Yes | String | Address名 | |
destinationAddressGroupList[].addressList[].port | No | String | Port | |
destinationAddressGroupList[].addressList[].type | No | String | Address Type情報(ipmask、fqdn) | デフォルト値 False |
destinationAddressGroupList[].addressZone | Yes | String | AddressZone情報 | |
destinationAddressGroupList[].description | No | String | 説明 | |
destinationAddressGroupList[].instanceNo | Yes | String | インスタンス番号 | |
destinationAddressGroupList[].memberNo | Yes | String | メンバー番号 | |
destinationAddressGroupList[].objectStorage | No | Boolean | オブジェクトストレージの有無 | デフォルト値 False |
destinationAddressList[].addressNo | No | Integer | Address番号 | |
destinationAddressList[].addressZone | Yes | String | AddressZone情報 | |
destinationAddressList[].fqdn | No | String | fqdn | 条件付き必須、typeが fqdnの場合、値が存在しない時にエラー発生 |
destinationAddressList[].instanceNo | No | String | インスタンス番号 | |
destinationAddressList[].ip | Yes | String | Ip | |
destinationAddressList[].maskBit | No | Integer | MaskBit | |
destinationAddressList[].memberNo | No | String | メンバー番号 | |
destinationAddressList[].name | Yes | String | Address名 | |
destinationAddressList[].port | No | String | Port | |
destinationAddressList[].type | No | String | Address Type情報(ipmask、fqdn) | デフォルト値 ipmask |
destinationAddressZone | No | String | 存在しない場合、AddressGroupや Addressのようなサブ情報で自動設定 | |
instanceNo | Yes | String | インスタンス番号 | |
memberNo | Yes | String | ユーザー番号 | |
policyName | Yes | String | ポリシー名 | |
port | No | String | ファイアウォールサービスポート番号 | |
protocol | Yes | String | ファイアウォールサービスプロトコル | |
sourceAddressGroupList[].addressGroupName | Yes | String | Address Group名 | |
sourceAddressGroupList[].addressGroupNo | Yes | Integer | Address Group番号 | |
sourceAddressGroupList[].addressList[].addressNo | Yes | Integer | Address番号 | |
sourceAddressGroupList[].addressList[].addressZone | Yes | String | AddressZone情報 | |
sourceAddressGroupList[].addressList[].fqdn | No | String | fqdn | |
sourceAddressGroupList[].addressList[].instanceNo | No | String | インスタンス番号 | |
sourceAddressGroupList[].addressList[].ip | Yes | String | Ip | |
sourceAddressGroupList[].addressList[].maskBit | No | Integer | MaskBit | |
sourceAddressGroupList[].addressList[].memberNo | No | String | メンバー番号 | |
sourceAddressGroupList[].addressList[].name | Yes | String | Address名 | |
sourceAddressGroupList[].addressList[].port | No | String | Port | |
sourceAddressGroupList[].addressList[].type | No | String | Address Type情報(ipmask、fqdn) | デフォルト値 ipmask |
sourceAddressGroupList[].addressZone | Yes | String | AddressZone情報 | |
sourceAddressGroupList[].description | No | String | 説明 | |
sourceAddressGroupList[].instanceNo | Yes | String | インスタンス番号 | |
sourceAddressGroupList[].memberNo | Yes | String | メンバー番号 | |
sourceAddressGroupList[].objectStorage | No | Boolean | オブジェクトストレージの有無 | デフォルト値 False |
sourceAddressList[].addressNo | No | Integer | Address番号 | |
sourceAddressList[].addressZone | Yes | String | AddressZone情報 | |
sourceAddressList[].fqdn | No | String | fqdn | 条件付き必須、typeが fqdnの場合、値が存在しない時にエラー発生 |
sourceAddressList[].instanceNo | No | String | インスタンス番号 | |
sourceAddressList[].ip | Yes | String | Ip | |
sourceAddressList[].maskBit | No | Integer | MaskBit | |
sourceAddressList[].memberNo | No | String | メンバー番号 | |
sourceAddressList[].name | Yes | String | Address名 | |
sourceAddressList[].port | No | String | Port | |
sourceAddressList[].type | No | String | Address Type情報(ipmask、fqdn) | デフォルト値 ipmask |
sourceAddressZone | No | String | 存在しない場合、AddressGroupや Addressのようなサブ情報で自動設定 | |
policyNo | Yes | String |
リクエストボディ
{
"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"
}
レスポンス
レスポンスボディ
パラメータ名 | タイプ | 説明 |
---|---|---|
action | String | リクエストタイプ |
returnCode | Integer | レスポンスコード |
returnMessage | String | レスポンスメッセージ |
レスポンスボディ
{
"action": "string",
"returnCode": 0,
"returnMessage": "string"
}
エラーコード
共通して発生するエラーの詳細は、NAVER Cloud Platform APIをご参照ください
この記事は役に立ちましたか?