---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability"
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability

`POST /subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability`

Checks that the resource name is valid and is not already in 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

- NameAvailabilityParameters — Data POST-ed to the nameAvailability action
  - `type` string, required — The resource type. Can be "Microsoft.SignalRService/SignalR", "Microsoft.SignalRService/WebPubSub", "Microsoft.SignalRService/SignalR/replicas" or "Microsoft.SignalRService/WebPubSub/replicas"
  - `name` string, required — The resource name to validate. e.g."my-resource-name"

## Response `200`

The request has succeeded.

- NameAvailability — Result of the request to check name availability. It contains a flag and possible reason of failure.
  - `nameAvailable` boolean — Indicates whether the name is available or not.
  - `reason` string — The reason of the availability. Required if name is not available.
  - `message` string — The message of the operation.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/webpubsub-microsoft-signalrservice-signalrservice.md) · [All operations](https://skmtc.net/azure/apis/webpubsub-microsoft-signalrservice-signalrservice/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/webpubsub-microsoft-signalrservice-signalrservice/revisions/70d32afea69e/schema)
