Skip to main content

check_endpoint_name_availabilities

Creates, updates, deletes, gets or lists a check_endpoint_name_availabilities resource.

Overview

Namecheck_endpoint_name_availabilities
TypeResource
Idazure.cdn.check_endpoint_name_availabilities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
availableHostnamestringReturns the available hostname generated based on the AutoGeneratedDomainNameLabelScope when the name is available, otherwise it returns empty string.
messagestringThe detailed error message describing why the name is not available.
nameAvailablebooleanIndicates whether the name is available.
reasonstringThe reason why the name is not available.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_endpoint_name_availabilityselectresource_group_name, subscription_idCheck the availability of a resource name. This is needed for resources where name is globally unique, such as a afdx endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

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

SELECT
availableHostname,
message,
nameAvailable,
reason
FROM azure.cdn.check_endpoint_name_availabilities
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;