---
title: "Lists all VPC subnets in the project and returns their details."
method: GET
path: "/projects/{project_id}/networking/vpc-subnets"
tags: ["VPC Subnets"]
---

# Lists all VPC subnets in the project and returns their details.

`GET /projects/{project_id}/networking/vpc-subnets`

## Path parameters

- `project_id` string, required

## Response `200`

- ListVPCSubnetsResponseV1
  - `items` VPCSubnet[], required
    - `cidr` string, required — Address range of the VPC subnet, in CIDR notation.
    - `id` string, required — ID of the VPC subnet.
    - `location` string, required — Location of the VPC subnet.
    - `name` string, required — Name of the VPC subnet.
    - `nat_gateways` NATGateway[] — NAT gateways attached to the subnet. Empty unless a NAT gateway is enabled for the subnet.
      - `id` string, required — ID of the NAT gateway.
      - `public_ipv4_address` string, required — Public IPv4 address assigned to the NAT gateway.
      - `public_ipv4_id` string, required — ID of the public IPv4 address assigned to the NAT gateway.
    - `vpc_network_id` string, required — ID of the VPC network that the subnet belongs to.

## Other responses

- `401` — Error Authentication Failed
- `403` — Error Permissions
- `500` — Error Internal Server

---

[API](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway.md) · [All operations](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crusoecloud/crusoe-cloud-api-gateway/revisions/a3fd2dedc72b/schema)
