Skip to main content
GET
/
cloud
/
v1
/
networks
/
{project_id}
/
{region_id}
/
{network_id}
/
ports
List instance ports by network
curl --request GET \
  --url https://api.gcore.com/cloud/v1/networks/{project_id}/{region_id}/{network_id}/ports \
  --header 'Authorization: <api-key>'
{
  "count": 1,
  "results": [
    {
      "id": "<string>",
      "instance_id": "<string>",
      "instance_name": "<string>"
    }
  ]
}

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

network_id
string<uuid4>
required

Network ID

Response

200 - application/json

OK

count
integer
required

Number of objects

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

Objects