---
title: "API to check for resource name availability"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/checkNameAvailability"
tags: ["BackupVaults"]
---

# API to check for resource name availability

`POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/checkNameAvailability`

## Path parameters

- `resourceGroupName` string, required
- `subscriptionId` string, required
- `location` string, required

## Query parameters

- `api-version` string, required

## Request body

- CheckNameAvailabilityRequest — CheckNameAvailability Request
  - `name` string — Resource name for which availability needs to be checked
  - `type` string — Describes the Resource type: Microsoft.DataProtection/BackupVaults

## Response `200`

OK

- CheckNameAvailabilityResult — CheckNameAvailability Result
  - `message` string — Gets or sets the message.
  - `nameAvailable` boolean — Gets or sets a value indicating whether [name available].
  - `reason` string — Gets or sets the reason.

## Other responses

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

---

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