locations
Creates, updates, deletes, gets or lists a locations resource.
Overview
| Name | locations |
| Type | Resource |
| Id | azure_extras.media.locations |
Fields
The following fields are returned by SELECT queries:
- check_name_availability
| Name | Datatype | Description |
|---|---|---|
message | string | Specifies the detailed reason if the name is not available. |
nameAvailable | boolean | Specifies if the name is available. Required. |
reason | string | Specifies the reason if the name is not available. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
check_name_availability | select | location_name, subscription_id | Check 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.
| Name | Datatype | Description |
|---|---|---|
location_name | string | Location name. Required. |
subscription_id | string |
SELECT examples
- check_name_availability
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
;