---
title: "GET /api/v1/providers/gcp/{dc}/subnetworks"
method: GET
path: "/api/v1/providers/gcp/{dc}/subnetworks"
tags: ["gcp"]
---

# GET /api/v1/providers/gcp/{dc}/subnetworks

`GET /api/v1/providers/gcp/{dc}/subnetworks`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/docs/api/v1/providers/gcp/:dc/subnetworks/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists subnetworks from GCP

## Path parameters

- `dc` string, required

## Headers

- `ServiceAccount` string
- `Credential` string
- `Network` string

## Response `200`

GCPSubnetworkList

- GCPSubnetwork[]
  - `gatewayAddress` string
  - `id` integer
  - `ipCidrRange` string
  - `kind` string
  - `name` string
  - `network` string
  - `path` string
  - `privateIpGoogleAccess` boolean
  - `region` string
  - `selfLink` string

## Other responses

- `default`: errorResponse

---

[API](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api.md) - [All operations](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/revisions/815b9bf19db5?raw)
