---
title: "[BETA] List Subnets"
method: GET
path: "/vpc/{vpc-id}/subnet"
tags: ["vpc-subnet"]
---

# \[BETA\] List Subnets

`GET /vpc/{vpc-id}/subnet`

## Request

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

## Path parameters

- `vpc-id` string, uuid, required

## Response `200`

200

- object
  - `subnets` ListSubnetEntry[]
    - `id` string, uuid: Subnet ID
    - `name` string: Subnet name
    - `description` string: Subnet description
    - `created-at` string, date-time: Subnet creation date
    - `addressfamily` 'inet4' | 'dual': Subnet address family
    - `address-space` 'private': Subnet address space
    - `ipv4-block` string: Subnet ipv4 CIDR
    - `labels` Labels

## Changes

- **2026-11-06** `63da6f74c845`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/vpc/:vpc-id/subnet/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)
