POST
/
v1
/
firewalls
create firewall
curl --request POST \
  --url https://console.gmicloud.com/api/v1/firewalls \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "inboundRules": [
    {
      "description": "<string>",
      "portRange": {
        "max": 32768,
        "min": 32768
      },
      "protocol": "tcp",
      "remoteIpPrefix": "237.84.2.178/24"
    }
  ],
  "name": "<string>",
  "idc": "<string>"
}'
{
"description": "<string>",
"inboundRules": [
{
"description": "<string>",
"portRange": {
"max": 32768,
"min": 32768
},
"protocol": "tcp",
"remoteIpPrefix": "237.84.2.178/24"
}
],
"name": "<string>",
"idc": "<string>",
"assoInstances": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "active"
}

Body

application/json
inboundRules
object[]
required
name
string
required
Maximum length: 255
idc
string
required
description
string
Maximum length: 255

Response

successful

inboundRules
object[]
required
name
string
required
Maximum length: 255
idc
string
required
assoInstances
string<uuid>[]
id
string<uuid>
status
enum<string>
Available options:
active,
building,
error
description
string
Maximum length: 255