Skip to main content

accounts_keys

Creates, updates, deletes, gets or lists an accounts_keys resource.

Overview

Nameaccounts_keys
TypeResource
Idazure.maps.accounts_keys

Fields

The following fields are returned by SELECT queries:

The request was successful.

NameDatatypeDescription
primaryKeystringThe primary key for accessing the Maps REST APIs.
primaryKeyLastUpdatedstringThe last updated date and time of the primary key.
secondaryKeystringThe secondary key for accessing the Maps REST APIs.
secondaryKeyLastUpdatedstringThe last updated date and time of the secondary key.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, accountNameGet the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.

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
accountNamestringThe name of the Maps Account.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.

SELECT
primaryKey,
primaryKeyLastUpdated,
secondaryKey,
secondaryKeyLastUpdated
FROM azure.maps.accounts_keys
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
;