Skip to main content

locations

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

Overview

Namelocations
TypeResource
Idazure_stack.subscriptions_admin.locations

Fields

NameDatatypeDescription
idstringLocation identifier.
namestringLocation name.
displayNamestringDisplay name of the location.
latitudestringLatitude of the location.
longitudestringLongitude of the location.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocation, subscriptionIdGet the specified location.
listSELECTsubscriptionIdGet a list of all AzureStack location.
create_or_updateINSERTlocation, subscriptionIdUpdates 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.

/*+ create */
INSERT INTO azure_stack.subscriptions_admin.locations (
location,
subscriptionId,
displayName,
id,
latitude,
longitude,
name
)
SELECT
'{{ location }}',
'{{ subscriptionId }}',
'{{ displayName }}',
'{{ id }}',
'{{ latitude }}',
'{{ longitude }}',
'{{ name }}'
;