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 | NAVERクラウドプラットフォームから発行された 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をご参照ください
この記事は役に立ちましたか?