latestSwagger 2.02026-07-1380175333.7 KB

32d4ccbab0a7

Registries

Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length.

post/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/checkNameAvailability

Parameters

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

Request body

namestring required

The name of the container registry.

type'Microsoft.ContainerRegistry/registries' required

The resource type for Container Registry.

resourceGroupNamestring

The resource group name of the container registry.

autoGeneratedDomainNameLabelScope'Unsecure' | 'TenantReuse' | 'SubscriptionReuse' | 'ResourceGroupReuse' | 'NoReuse'

The auto generated domain name label of the container registry. This value defaults to "Unsecure".

Response

The request has succeeded.

availableLoginServerNamestring

The complete login server name with domain name label (DNL) hash, if available

nameAvailableboolean

The value that indicates whether the name is available.

reasonstring

If any, the reason that the name is not available.

messagestring

If any, the error message that provides more detail for the reason that the name is not available.