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

# GET /api/v1/providers/aws/{dc}/subnets

`GET /api/v1/providers/aws/{dc}/subnets`

## 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/aws/:dc/subnets/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists available AWS subnets

## Path parameters

- `dc` string, required

## Headers

- `AccessKeyID` string
- `SecretAccessKey` string
- `Credential` string
- `vpc` string

## Response `200`

AWSSubnetList

- AWSSubnet[]
  - `availability_zone` string
  - `availability_zone_id` string
  - `available_ip_address_count` integer
  - `default` boolean
  - `id` string
  - `ipv4cidr` string
  - `ipv6cidr` string
  - `isDefaultSubnet` boolean
  - `name` string
  - `state` string
  - `tags` AWSTag[]
    - `key` string
    - `value` 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)
