---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces"
tags: ["Workspaces"]
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces

`GET /subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces`

Gets all the workspaces within a subscription.

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK - Returns an array of workspaces.

- WorkspaceListResult — List of workspaces.
  - `value` Workspace[] — The array of workspaces.
    - `id` string — Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    - `name` string — The name of the resource
    - `type` string — The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
  - `nextLink` string — The URL to use for getting the next set of results.

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.dev/azure/apis/databricksclient.md) · [All operations](https://skmtc.dev/azure/apis/databricksclient/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/databricksclient/revisions/86552fddc75b/schema)
