---
title: "GET /api/v1/providers/vsphere/networks"
method: GET
path: "/api/v1/providers/vsphere/networks"
tags: ["vsphere"]
---

# GET /api/v1/providers/vsphere/networks

`GET /api/v1/providers/vsphere/networks`

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

Lists networks from vsphere datacenter

## Headers

- `Username` string
- `Password` string
- `DatacenterName` string
- `Credential` string

## Response `200`

VSphereNetwork

- VSphereNetwork[]
  - `absolutePath` string: AbsolutePath is the absolute path inside vCenter
  - `name` string: Name is the name of the network
  - `relativePath` string: RelativePath is the relative path inside the datacenter
  - `type` string: Type defines the type of network

## 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)
