---
title: "GET /api/v2/providers/vsphere/datastores"
method: GET
path: "/api/v2/providers/vsphere/datastores"
tags: ["vsphere"]
---

# GET /api/v2/providers/vsphere/datastores

`GET /api/v2/providers/vsphere/datastores`

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

Lists datastores from vsphere datacenter

## Headers

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

## Response `200`

VSphereDatastoreList

- VSphereDatastoreList[]
  - `datastores` 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)
