cURL
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>" } ] }
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef
apikey
apikey 1234$abcdef
Project ID
Region ID
Network ID
OK
Number of objects
x >= 0
Objects
Show child attributes
Port ID
Instance ID
Instance name
Was this page helpful?