locations
Creates, updates, deletes, gets or lists a locations
resource.
Overview
Name | locations |
Type | Resource |
Id | azure_stack.subscriptions_admin.locations |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Location identifier. |
name | string | Location name. |
displayName | string | Display name of the location. |
latitude | string | Latitude of the location. |
longitude | string | Longitude of the location. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | location, subscriptionId | Get the specified location. |
list | SELECT | subscriptionId | Get a list of all AzureStack location. |
create_or_update | INSERT | location, subscriptionId | Updates the specified location. |
SELECT
examples
Get a list of all AzureStack location.
SELECT
id,
name,
displayName,
latitude,
longitude
FROM azure_stack.subscriptions_admin.locations
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new locations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.subscriptions_admin.locations (
location,
subscriptionId,
displayName,
id,
latitude,
longitude,
name
)
SELECT
'{{ location }}',
'{{ subscriptionId }}',
'{{ displayName }}',
'{{ id }}',
'{{ latitude }}',
'{{ longitude }}',
'{{ name }}'
;
- name: your_resource_model_name
props:
- name: displayName
value: string
- name: id
value: string
- name: latitude
value: string
- name: longitude
value: string
- name: name
value: string