iwinv IaaS(Infrastructure as a Service) API
HomeMain PageConsoleDocsError CodeFieldsAPI TEST
HomeMain PageConsoleDocsError CodeFieldsAPI TEST
  1. Firewall
  • Introduction
  • API Request
  • API Response
  • Zones
    • Zone List
      GET
  • Flavors
    • Flavor List
      GET
    • Flavor Detail
      GET
  • Images
    • Image List
      GET
    • Image Detail
      GET
  • Instances
    • Instance List
      GET
    • Instance Detail
      GET
    • Create Instance
      POST
    • Edit Instance Info
      PUT
    • Delete Instance
      DELETE
    • Start(ON) Instance
      POST
    • Shutdown(OFF) Instance
      POST
    • Reboot Instance
      POST
    • Rebuild(Image) Instance
      POST
    • Resize(Flavor) Instance
      POST
    • Remote Console
      GET
    • User Script List
      GET
  • Block Storages
    • Block Storage Types
    • Block Storage List
    • Block Storage Detail
    • Create Block Storage
    • Delete Block Storage
    • Attach Block Storage
    • Detach Block Storage
  • Bill
    • Live Bill
    • Billing and Payment List
    • Billing and Payment Detail
  • Authentication
    • SSH Key List
  • Usage Example
    • Zone List
  • Firewall
    • Firewall List
      GET
    • Firewall Detail
      GET
    • Create Firewall
      POST
    • Edit Firewall
      PUT
    • Delete Firewall
      DELETE
    • Attach Firewall
      POST
    • Detach Firewall
      POST
  1. Firewall

Edit Firewall

PUT
https://api-kr.iwinv.kr/v1/firewall/{firewall_id}
방화벽 수정시 기존룰은 모두 제거되고 다시 생성한 룰 만 남게 됩니다.

Request

Path Params
firewall_id
string 
required
Header Params
X-iwinv-Timestamp
integer 
required
Refer to [API Request]
Example:
{{timestamp}}
X-iwinv-Credential
string 
required
Refer to [API Request]
Example:
{{accesskey}}
X-iwinv-Signature
string 
required
Refer to [API Request]
Example:
{{signature}}
Body Params application/json
object {0}
Example
{
  "title": "Firewall01",
  "content": "firewall",
  "icmp": Y,
  "rules": [
    {
      "bound": "IN",
      "protocol": "TCP",
      "port": "80",
      "ip": "192.168.1.10/24",
      "content": "Allow inbound HTTP traffic on port 80",
      "title": "Allow HTTP"
    },
    {
      "bound": "OUT",
      "protocol": "UDP",
      "port": "53",
      "ip": "10.0.0.5/16",
      "content": "Allow outbound DNS traffic on port 53",
      "title": "Allow DNS"
    }
  ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api-kr.iwinv.kr/v1/firewall/' \
--header 'X-iwinv-Timestamp: {{timestamp}}' \
--header 'X-iwinv-Credential: {{accesskey}}' \
--header 'X-iwinv-Signature: {{signature}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "title": "Firewall01",
  "content": "firewall",
  "icmp": Y,
  "rules": [
    {
      "bound": "IN",
      "protocol": "TCP",
      "port": "80",
      "ip": "192.168.1.10/24",
      "content": "Allow inbound HTTP traffic on port 80",
      "title": "Allow HTTP"
    },
    {
      "bound": "OUT",
      "protocol": "UDP",
      "port": "53",
      "ip": "10.0.0.5/16",
      "content": "Allow outbound DNS traffic on port 53",
      "title": "Allow DNS"
    }
  ]
}'

Responses

🟢200OK
application/json
Body
code
string 
required
error_code
string 
required
message
string 
required
result
array [object {5}] 
required
firewall_id
string 
optional
title
string 
optional
content
string 
optional
icmp
string 
optional
rules
array [object {7}] 
optional
count
integer 
required
Example
{
  "code": "0x00",
  "error_code": "SUCCESS",
  "message": "",
  "result": [
    {
      "firewall_id": "621",
      "title": "20250115",
      "content": "20250115",
      "icmp": "Y",
      "rules": [
        {
          "idx": 6967,
          "bound": "IN",
          "protocol": "TCP",
          "port": "80",
          "ip": "1.1.1.10/24",
          "content": "Allow inbound HTTP traffic on port 80",
          "title": "Allow HTTP"
        },
        {
          "idx": 6968,
          "bound": "OUT",
          "protocol": "UDP",
          "port": "40",
          "ip": "1.0.0.5/16",
          "content": "Allow outbound DNS traffic on port 53",
          "title": "Allow DNS"
        },
        {
          "idx": 6969,
          "bound": "OUT",
          "protocol": "UDP",
          "port": "50",
          "ip": "1.0.0.6/16",
          "content": "Allow outbound DNS traffic on port 53",
          "title": "Allow DNS"
        }
      ]
    }
  ],
  "count": 1
}
Previous
Create Firewall
Next
Delete Firewall
Built with