---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts"
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts

`GET /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts`

Lists all the Azure Cosmos DB database accounts available under the subscription.

## Query parameters

- `api-version` string, required

## Parameters

- `../../../../../common-types/resource-management/v1/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Response `200`

The operation completed successfully.

- DatabaseAccountsListResult — The List operation response, that contains the database accounts and their properties.
  - `value` DatabaseAccountGetResults[] — List of database account and their properties.
    - `id` string — The unique resource identifier of the ARM resource.
    - `name` string — The name of the ARM resource.
    - `type` string — The type of Azure resource.
    - `location` string — The location of the resource group to which the resource belongs.
    - `tags` Tags — Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".

## Changes

- **2020-11-05** (2019-08-01) `33b0524b6a01` — 1 warning
  - deleted the `path` request parameter `subscriptionId`

[Change history](https://skmtc.dev/azure/apis/cosmos-db/changes/subscriptions/:subscriptionId/providers/Microsoft.DocumentDB/databaseAccounts/get.md)

---

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