curl --request GET \
--url https://api.cloud.onidel.com/network/vpcs/{vpc_id} \
--header 'Authorization: <api-key>'{
"vpc": {
"id": "f5a3e2d8-9876-4abc-1234-543210fedcba",
"name": "Production VPC",
"description": "VPC for production environment",
"date_created": "2024-01-15T10:30:00Z",
"status": "active",
"location": "sydney",
"v4_subnet": "10.0.0.0",
"v4_subnet_mask": "24",
"owner_team": {
"id": "c1d45377-b2a9-4407-ab8d-6909c34dfaac",
"name": "IT Development"
},
"teams": [
{
"id": "c1d45377-b2a9-4407-ab8d-6909c34dfaac",
"name": "IT Development"
}
],
"attached_vms_count": 5,
"attached_vms": [
{
"id": "a1b2c3d4-5678-9abc-def0-123456789abc",
"name": "web-server-01",
"power_status": "running",
"owner_team": {
"id": "c1d45377-b2a9-4407-ab8d-6909c34dfaac",
"name": "IT Development"
},
"mac": "52:54:00:12:34:56",
"vpc_id": "f5a3e2d8-9876-4abc-1234-543210fedcba",
"vpc_name": "Production VPC",
"address": "10.0.0.10"
}
]
}
}Retrieve a specific VPC by its UUID
curl --request GET \
--url https://api.cloud.onidel.com/network/vpcs/{vpc_id} \
--header 'Authorization: <api-key>'{
"vpc": {
"id": "f5a3e2d8-9876-4abc-1234-543210fedcba",
"name": "Production VPC",
"description": "VPC for production environment",
"date_created": "2024-01-15T10:30:00Z",
"status": "active",
"location": "sydney",
"v4_subnet": "10.0.0.0",
"v4_subnet_mask": "24",
"owner_team": {
"id": "c1d45377-b2a9-4407-ab8d-6909c34dfaac",
"name": "IT Development"
},
"teams": [
{
"id": "c1d45377-b2a9-4407-ab8d-6909c34dfaac",
"name": "IT Development"
}
],
"attached_vms_count": 5,
"attached_vms": [
{
"id": "a1b2c3d4-5678-9abc-def0-123456789abc",
"name": "web-server-01",
"power_status": "running",
"owner_team": {
"id": "c1d45377-b2a9-4407-ab8d-6909c34dfaac",
"name": "IT Development"
},
"mac": "52:54:00:12:34:56",
"vpc_id": "f5a3e2d8-9876-4abc-1234-543210fedcba",
"vpc_name": "Production VPC",
"address": "10.0.0.10"
}
]
}
}Provide the value as: Token <your-api-token>
VPC UUID
Team ID. Default team will be used if not provided.
Successful operation
Show child attributes
"f5a3e2d8-9876-4abc-1234-543210fedcba"
"Production VPC"
"VPC for production environment"
"2024-01-15T10:30:00Z"
active, building, deleting "active"
"sydney"
"10.0.0.0"
"24"
5
Show child attributes
"a1b2c3d4-5678-9abc-def0-123456789abc"
"web-server-01"
"running"
"52:54:00:12:34:56"
"f5a3e2d8-9876-4abc-1234-543210fedcba"
"Production VPC"
"10.0.0.10"