Skip to main content
GET
/
v1
/
firewalls
List firewalls
curl --request GET \
  --url https://console.gmicloud.ai/api/v1/firewalls \
  --header 'Authorization: Bearer <token>'
[
  {
    "inboundRules": [
      {
        "portRange": {
          "max": 32768,
          "min": 32768
        },
        "protocol": "tcp",
        "remoteIpPrefix": "237.84.2.178/24",
        "description": "<string>"
      }
    ],
    "name": "<string>",
    "idc": "<string>",
    "description": "<string>",
    "assoInstances": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "active"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

idc
string
Maximum string length: 50

Response

successful

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