Skip to main content
GET
/
network
/
vpcs
/
{vpc_id}
Get VPC by ID
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"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Provide the value as: Token <your-api-token>

Path Parameters

vpc_id
string<uuid>
required

VPC UUID

Query Parameters

team_id
string<uuid>

Team ID. Default team will be used if not provided.

Response

Successful operation

vpc
object