Skip to main content
GET
/
cloud
/
v1
/
availablenetworks
/
{project_id}
/
{region_id}
List networks with subnets details
curl --request GET \
  --url https://api.gcore.com/cloud/v1/availablenetworks/{project_id}/{region_id} \
  --header 'Authorization: <api-key>'
{
  "count": 1,
  "results": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "creator_task_id": "fd50fdd1-0482-4c9b-b847-fc9924665af6",
      "default": true,
      "external": true,
      "id": "<string>",
      "mtu": 123,
      "name": "<string>",
      "port_security_enabled": true,
      "project_id": 1337,
      "region": "<string>",
      "region_id": 123,
      "segmentation_id": 9,
      "shared": true,
      "subnets": [
        {
          "cidr": "<string>",
          "created_at": "2023-11-07T05:31:56Z",
          "enable_dhcp": true,
          "ip_version": 4,
          "name": "<string>",
          "network_id": "<string>",
          "project_id": 123,
          "region": "<string>",
          "region_id": 123,
          "tags": [
            {
              "key": "<string>",
              "read_only": true,
              "value": "<string>"
            }
          ],
          "updated_at": "2023-11-07T05:31:56Z",
          "available_ips": 250,
          "creator_task_id": "5cc890da-d031-4a23-ac31-625edfa22812",
          "dns_nameservers": [
            "8.8.8.8",
            "8.8.4.4"
          ],
          "gateway_ip": "192.168.13.1",
          "has_router": false,
          "host_routes": [],
          "id": "b39792c3-3160-4356-912e-ba396c95cdcf",
          "task_id": null,
          "total_ips": 253
        }
      ],
      "tags": [
        {
          "key": "<string>",
          "read_only": true,
          "value": "<string>"
        }
      ],
      "task_id": null,
      "type": "<string>",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

Query Parameters

limit
integer
default:1000

Optional. Limit the number of returned items

Required range: x <= 1000
name
string

Filter networks by name

Maximum string length: 61
network_id
string<uuid4>

Optional. Can be used to only show subnets of the specific network

network_type
enum<string>

Optional. Filter network by network type (vlan or vxlan)

Available options:
vlan,
vxlan
offset
integer
default:0

Optional. Offset value is used to exclude the first set of records from the result

Required range: x >= 0
order_by
enum<string>

Ordering networks list result by name, created_at fields of the network and directions (created_at.desc).

Available options:
created_at.asc,
created_at.desc,
name.asc,
name.desc
shared
boolean

Optional. Can be used to only show networks with shared state

tag_key
string[]

Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2

Tag key. The maximum size for a key is 255 characters.

Required string length: 1 - 255
tag_key_value
string

Optional. Filter by tag key-value pairs.

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
results
NetworkSubnetworkSerializer · object[]
required

Objects