---
title: "Get a VPC."
method: GET
path: "/v1/vpc/{id}"
tags: ["VPC"]
---

# Get a VPC.

`GET /v1/vpc/{id}`

## Request

- Base URL: `https://api.scalix.world`
- URL: `https://api.scalix.world/v1/vpc/{id}`
- Auth: HTTP bearer

Returns a single VPC by id.

## Path parameters

- `id` string, required

## Response `200`

The VPC

- VpcJson: A VPC. Mirrors `scalix_vpc::Vpc`.
  - `id` string, required
  - `tenant_id` string, required
  - `name` string, required
  - `cidr` string, required
  - `private_key` string, required
  - `public_key` string, required
  - `listen_port` integer, required
  - `endpoint` string, nullable
  - `status` string, required: One of `provisioning`, `active`, `degraded`, `deleting`.
  - `created_at` string, required

## Other responses

- `401`: Missing or invalid credentials
- `403`: Token lacks the vpc:read scope
- `404`: VPC not found
- `500`: Internal error

---

[API](https://skmtc.dev/scalix/apis/scalix-cloud-api.md) · [All operations](https://skmtc.dev/scalix/apis/scalix-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalix/apis/scalix-cloud-api/revisions/2c04ca0a90bb?raw)
