---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/checkMongoClusterNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/checkMongoClusterNameAvailability"
tags: ["MongoClusters"]
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/checkMongoClusterNameAvailability

`POST /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/checkMongoClusterNameAvailability`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/checkMongoClusterNameAvailability`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Check if DocumentDB cluster name is available for use.

## Parameters

- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/SubscriptionIdParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/LocationParameter` (unresolved $ref)

## Request body

- CheckNameAvailabilityRequest (unresolved $ref)

## Response `200`

The request has succeeded.

- CheckNameAvailabilityResponse (unresolved $ref)

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/mongocluster-microsoft-documentdb-mongocluster.md) - [All operations](https://skmtc.dev/azure/apis/mongocluster-microsoft-documentdb-mongocluster/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/mongocluster-microsoft-documentdb-mongocluster/revisions/5105aa3ef94e?raw)
