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": "8e009163-d526-4351-9266-93d9fd8fa8ef", "instance_id": "bfc7824b-31b6-4a28-a0c4-7df137139215", "instance_name": "instance_1" } ] }
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
1
Region ID
Network ID
"b39792c3-3160-4356-912e-ba396c95cdcf"
OK
Number of objects
x >= 0
Objects
Show child attributes
Was this page helpful?