---
title: "VPC"
description: "Create and manipulate VPCs."
url: https://community.exoscale.com/reference/api/networking/vpc/vpc/
section: reference
last_updated: 2026-10-29
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# VPC

Create and manipulate VPCs

[Read more](https://community.exoscale.com/product/networking/vpc)

## <span data-label="POST" class="pill-POST"></span>create-vpc

Create a VPC

```
POST /vpc
```

### Request body

Content-Type: `application/json`

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | **yes** | VPC name, up to 255 characters. Must be unique within its zone<br/><br/>Min length: `1`. Max length: `255`. |
| `description` | string | no | Max length: `4096`. |
| `dhcp-options` | [VPC DHCP options](https://community.exoscale.com/reference/api/_schemas/vpc-dhcp-options/index.md) | no |  |
| `labels` | object | no |  |

<details>
<summary>Example</summary>

```json
{
  "description": "string",
  "dhcp-options": {
    "dns-servers": [
      "192.0.2.10"
    ],
    "domain-search": [
      "string"
    ],
    "ntp-servers": [
      "192.0.2.10"
    ]
  },
  "labels": {},
  "name": "string"
}
```
</details>


### Responses

Status: `200` - 200

Content-Type: `application/json`

| Property | Type | Description |
| --- | --- | --- |
| `id` | string | Operation ID<br/><br/>Must be a valid UUID. |
| `message` | string | Operation message |
| `reason` | string | Operation failure reason<br/><br/>Allowed values: `incorrect`, `unknown`, `unavailable`, `forbidden`, `busy`, `fault`, `partial`, `not-found`, `interrupted`, `unsupported`, `conflict`. |
| `reference` | [Reference](https://community.exoscale.com/reference/api/_schemas/operation/index.md#reference) | Related resource reference |
| `state` | string | Operation status<br/><br/>Allowed values: `failure`, `pending`, `success`, `timeout`. |

<details>
<summary>Example output</summary>

```json
{
  "id": "a1b2c3d4-e5f6-4a5b-8c9d-0123456789ab",
  "message": "string",
  "reason": "incorrect",
  "reference": {
    "command": "string",
    "id": "a1b2c3d4-e5f6-4a5b-8c9d-0123456789ab",
    "link": "string"
  },
  "state": "failure"
}
```
</details>


SDK reference for `create-vpc`: [golang](https://pkg.go.dev/github.com/exoscale/egoscale/v3#Client.CreateVpc) | [Python](https://exoscale.github.io/python-exoscale/v2.html#exoscale.api.v2.Client.create_vpc) | [Java](https://exoscale.github.io/exoscale-sdk-java/com/exoscale/sdk/api/ExoscaleApi.html#createVpc(com.exoscale.sdk.model.CreateVpcRequest))

[CLI](https://community.exoscale.com/tools/command-line-interface/index.md): `exo api create-vpc`

## <span data-label="GET" class="pill-GET"></span>get-vpc

Retrieve VPC details

```
GET /vpc/{id}
```

### Path parameters

| Name | In | Description |
| --- | --- | --- |
| `id` | `path` | Must be a valid UUID. |

### Responses

Status: `200` - 200

Content-Type: `application/json`

| Property | Type | Description |
| --- | --- | --- |
| `created-at` | string | ISO 8601 date-time. |
| `default` | boolean | Indicates if this is the organization's default VPC |
| `description` | string | Max length: `4096`. |
| `dhcp-options` | [VPC DHCP options](https://community.exoscale.com/reference/api/_schemas/vpc-dhcp-options/index.md) |  |
| `id` | string | Must be a valid UUID. |
| `labels` | object |  |
| `name` | string | Min length: `1`. Max length: `255`. |

<details>
<summary>Example output</summary>

```json
{
  "created-at": "2026-01-01T00:00:00Z",
  "default": true,
  "description": "string",
  "dhcp-options": {
    "dns-servers": [
      "192.0.2.10"
    ],
    "domain-search": [
      "string"
    ],
    "ntp-servers": [
      "192.0.2.10"
    ]
  },
  "id": "a1b2c3d4-e5f6-4a5b-8c9d-0123456789ab",
  "labels": {},
  "name": "string"
}
```
</details>


SDK reference for `get-vpc`: [golang](https://pkg.go.dev/github.com/exoscale/egoscale/v3#Client.GetVpc) | [Python](https://exoscale.github.io/python-exoscale/v2.html#exoscale.api.v2.Client.get_vpc) | [Java](https://exoscale.github.io/exoscale-sdk-java/com/exoscale/sdk/api/ExoscaleApi.html#getVpc(java.util.UUID))

[CLI](https://community.exoscale.com/tools/command-line-interface/index.md): `exo api get-vpc`

## <span data-label="PUT" class="pill-PUT"></span>update-vpc

Update a VPC

```
PUT /vpc/{id}
```

### Path parameters

| Name | In | Description |
| --- | --- | --- |
| `id` | `path` | Must be a valid UUID. |

### Request body

Content-Type: `application/json`

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `description` | string | no | Max length: `4096`. |
| `dhcp-options` | [VPC DHCP options](https://community.exoscale.com/reference/api/_schemas/vpc-dhcp-options/index.md) | no | DHCP options (only allowed if VPC has no instances attached) |
| `labels` | object | no |  |
| `name` | string | no | Min length: `1`. Max length: `255`. |

<details>
<summary>Example</summary>

```json
{
  "description": "string",
  "dhcp-options": {
    "dns-servers": [
      "192.0.2.10"
    ],
    "domain-search": [
      "string"
    ],
    "ntp-servers": [
      "192.0.2.10"
    ]
  },
  "labels": {},
  "name": "string"
}
```
</details>


### Responses

Status: `200` - 200

Content-Type: `application/json`

| Property | Type | Description |
| --- | --- | --- |
| `created-at` | string | ISO 8601 date-time. |
| `default` | boolean | Indicates if this is the organization's default VPC |
| `description` | string | Max length: `4096`. |
| `dhcp-options` | [VPC DHCP options](https://community.exoscale.com/reference/api/_schemas/vpc-dhcp-options/index.md) |  |
| `id` | string | Must be a valid UUID. |
| `labels` | object |  |
| `name` | string | Min length: `1`. Max length: `255`. |

<details>
<summary>Example output</summary>

```json
{
  "created-at": "2026-01-01T00:00:00Z",
  "default": true,
  "description": "string",
  "dhcp-options": {
    "dns-servers": [
      "192.0.2.10"
    ],
    "domain-search": [
      "string"
    ],
    "ntp-servers": [
      "192.0.2.10"
    ]
  },
  "id": "a1b2c3d4-e5f6-4a5b-8c9d-0123456789ab",
  "labels": {},
  "name": "string"
}
```
</details>


SDK reference for `update-vpc`: [golang](https://pkg.go.dev/github.com/exoscale/egoscale/v3#Client.UpdateVpc) | [Python](https://exoscale.github.io/python-exoscale/v2.html#exoscale.api.v2.Client.update_vpc) | [Java](https://exoscale.github.io/exoscale-sdk-java/com/exoscale/sdk/api/ExoscaleApi.html#updateVpc(java.util.UUID,com.exoscale.sdk.model.UpdateVpcRequest))

[CLI](https://community.exoscale.com/tools/command-line-interface/index.md): `exo api update-vpc`

## <span data-label="DELETE" class="pill-DELETE"></span>delete-vpc

Delete a VPC

```
DELETE /vpc/{id}
```

### Path parameters

| Name | In | Description |
| --- | --- | --- |
| `id` | `path` | Must be a valid UUID. |

### Responses

Status: `204` - 204


SDK reference for `delete-vpc`: [golang](https://pkg.go.dev/github.com/exoscale/egoscale/v3#Client.DeleteVpc) | [Python](https://exoscale.github.io/python-exoscale/v2.html#exoscale.api.v2.Client.delete_vpc) | [Java](https://exoscale.github.io/exoscale-sdk-java/com/exoscale/sdk/api/ExoscaleApi.html#deleteVpc(java.util.UUID))

[CLI](https://community.exoscale.com/tools/command-line-interface/index.md): `exo api delete-vpc`


---

## Other Operations

## <span data-label="GET" class="pill-GET"></span>list-vpcs

List VPCs

```
GET /vpc
```

### Responses

Status: `200` - 200

Content-Type: `application/json`

| Property | Type | Description |
| --- | --- | --- |
| `vpcs` | array of [VPC](https://community.exoscale.com/reference/api/_schemas/list-vpc-entry/index.md) |  |

<details>
<summary>Example output</summary>

```json
{
  "vpcs": [
    {
      "created-at": "2026-01-01T00:00:00Z",
      "default": true,
      "description": "string",
      "dhcp-options": {
        "dns-servers": [
          "192.0.2.10"
        ],
        "domain-search": [
          "string"
        ],
        "ntp-servers": [
          "192.0.2.10"
        ]
      },
      "id": "a1b2c3d4-e5f6-4a5b-8c9d-0123456789ab",
      "labels": {},
      "name": "string"
    }
  ]
}
```
</details>


SDK reference for `list-vpcs`: [golang](https://pkg.go.dev/github.com/exoscale/egoscale/v3#Client.ListVpcs) | [Python](https://exoscale.github.io/python-exoscale/v2.html#exoscale.api.v2.Client.list_vpcs) | [Java](https://exoscale.github.io/exoscale-sdk-java/com/exoscale/sdk/api/ExoscaleApi.html#listVpcs())

[CLI](https://community.exoscale.com/tools/command-line-interface/index.md): `exo api list-vpcs`


