---
title: "List Private Networks"
method: GET
path: "/private-network"
tags: ["private-network"]
---

# List Private Networks

`GET /private-network`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/private-network`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/private-network/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

200

- object
  - `private-networks` PrivateNetwork[]
    - `description` string: Private Network description
    - `labels` Labels
    - `name` string: Private Network name
    - `start-ip` string, ipv4: Private Network start IP address
    - `leases` PrivateNetworkLease[]: Private Network leased IP addresses
      - `ip` string, ipv4: Private Network IP address
      - `instance-id` string, uuid: Attached instance ID
    - `id` string, uuid: Private Network ID
    - `vni` integer: Private Network VXLAN ID
    - `netmask` string, ipv4: Private Network netmask
    - `options` PrivateNetworkOptions: Private Network DHCP Options
      - `routers` string[]: Routers
      - `dns-servers` string[]: DNS Servers
      - `ntp-servers` string[]: NTP Servers
      - `domain-search` string[]: Domain search list, limited to 255 octets
    - `end-ip` string, ipv4: Private Network end IP address

## Changes

- **2024-09-18** `eae1143f1c63`: 2 info
  - added the optional property `private-networks/items/options` to the response with the `200` status
  - added the optional property `private-networks/items/vni` to the response with the `200` status
- **2023-06-06** `cf7b08181585`: 1 breaking
  - the `private-networks/items/description` response property's minLength was decreased from `1` to `0` for the response status `200`

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/private-network/get.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
