Skip to main content

locations

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

Overview

Namelocations
TypeResource
Idazure_extras.media.locations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
messagestringSpecifies the detailed reason if the name is not available.
nameAvailablebooleanSpecifies if the name is available. Required.
reasonstringSpecifies the reason if the name is not available.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_name_availabilityselectlocation_name, subscription_idCheck Name Availability. Checks whether the Media Service resource name is available.

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
location_namestringLocation name. Required.
subscription_idstring

SELECT examples

Check Name Availability. Checks whether the Media Service resource name is available.

SELECT
message,
nameAvailable,
reason
FROM azure_extras.media.locations
WHERE location_name = '{{ location_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;