---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.VideoIndexer/checkNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VideoIndexer/checkNameAvailability"
tags: ["NameAvailability"]
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.VideoIndexer/checkNameAvailability

`POST /subscriptions/{subscriptionId}/providers/Microsoft.VideoIndexer/checkNameAvailability`

Checks that the Video Indexer account name is valid and is not already in use.

## Parameters

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

## Request body

- AccountCheckNameAvailabilityParameters — The parameters used to check the availability of the Video Indexer account name.
  - `name` string, required — The VideoIndexer account name.
  - `type` 'Microsoft.VideoIndexer/accounts', required — The type of resource, Microsoft.VideoIndexer/accounts

## Response `200`

OK - Operation to check the Video Indexer account name availability was successful. Ok does not indicate the name is available, the body of the response does.

- CheckNameAvailabilityResult — The CheckNameAvailability operation response.
  - `nameAvailable` boolean — Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken.
  - `reason` 'AlreadyExists' — Gets the reason that a Video Indexer account name could not be used. The Reason element is only returned if NameAvailable is false.
  - `message` string — Gets an error message explaining the Reason value in more detail.

## Other responses

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

---

[API](https://skmtc.net/azure/apis/vi-microsoft-videoindexer.md) · [All operations](https://skmtc.net/azure/apis/vi-microsoft-videoindexer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/vi-microsoft-videoindexer/revisions/7130f4901d56/schema)
