- Introduction
- API Request
- API Response
- Zones
- Flavors
- Images
- Instances
- Block Storages
- Bill
- Authentication
- Usage Example
- Firewall
Create Firewall
POST
https://api-kr.iwinv.kr/v1/firewall
Request
Header Params
X-iwinv-Timestamp
integer
required
Example:
{{timestamp}}
X-iwinv-Credential
string
required
Example:
{{accesskey}}
X-iwinv-Signature
string
required
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 POST '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
🟢202Accepted
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": "APISEND20250222",
"content": "apisend",
"icmp": "Y",
"rules": [
{
"idx": 6965,
"bound": "IN",
"protocol": "TCP",
"port": "1-30",
"ip": "112.168.1.10/32",
"content": "Aport 80",
"title": "Allow HTTP"
},
{
"idx": 6966,
"bound": "OUT",
"protocol": "UDP",
"port": "530",
"ip": "10.0.0.5/16",
"content": "port 53",
"title": "Allow DNS"
}
]
}
],
"count": 1
}