---
title: "POST /providers/Microsoft.Cdn/checkNameAvailability"
method: POST
path: "/providers/Microsoft.Cdn/checkNameAvailability"
tags: ["CheckNameAvailability"]
---

# POST /providers/Microsoft.Cdn/checkNameAvailability

`POST /providers/Microsoft.Cdn/checkNameAvailability`

Check the availability of a resource name. This is needed for resources where name is globally unique, such as a CDN endpoint.

## Query parameters

- `api-version` string, required

## Request body

- CheckNameAvailabilityInput — Input of CheckNameAvailability API.
  - `name` string, required — The resource name to validate.
  - `type` 'Microsoft.Cdn/Profiles/Endpoints', required — Type of CDN resource used in CheckNameAvailability.

## Response `200`

OK. The request has succeeded.

- CheckNameAvailabilityOutput — Output of check name availability API.
  - `nameAvailable` boolean — Indicates whether the name is available.
  - `reason` string — The reason why the name is not available.
  - `message` string — The detailed error message describing why the name is not available.

## Other responses

- `default` — CDN error response describing why the operation failed.

---

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