Skip to main content
GET
/
v1
/
vpcs
List all VPCs
curl --request GET \
  --url https://console.gmicloud.ai/api/v1/vpcs \
  --header 'Authorization: Bearer <token>'
[
  {
    "createdAt": "2023-11-07T05:31:56Z",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "idc": "<string>",
    "name": "<string>",
    "orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "subnets": [
      {
        "cidr": "<string>",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>"
      }
    ]
  }
]

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

createdAt
string<date-time>
required
id
string<uuid>
required
idc
string
required
name
string
required
orgId
string<uuid>
required
subnets
object[]
required