v3

latestSwagger 2.0raw.githubusercontent.com2022-03-21342269.5 KB
Namespaces

Check the specified namespace name availability.

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

Path parameters

subscriptionIdstring required

Subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Query parameters

api-versionstring required

Client API version.

Request body

namestring required

The namespace name to check for availability. The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number.

Response

Check availability returned successfully.

messagestring

The detailed info regarding the reason associated with the namespace.

nameAvailableboolean

Value indicating namespace is available. Returns true if the namespace is available; otherwise, false.

reason'None' | 'InvalidName' | 'SubscriptionIsDisabled' | 'NameInUse' | 'NameInLockdown' | 'TooManyNamespaceInCurrentSubscription'

Specifies the reason for the unavailability of the service.