accounts
Creates, updates, deletes, gets or lists a accounts
resource.
Overview
Name | accounts |
Type | Resource |
Id | azure.maps.accounts |
Fields
- vw_accounts
- accounts
Name | Datatype | Description |
---|---|---|
accountName | text | field from the properties object |
cors | text | field from the properties object |
disable_local_auth | text | field from the properties object |
encryption | text | field from the properties object |
identity | text | Managed service identity (system assigned and/or user assigned identities) |
kind | text | The Kind of the Maps Account. |
linked_resources | text | field from the properties object |
location | text | The geo-location where the resource lives |
locations | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
sku | text | The resource model definition representing SKU |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Resource tags. |
unique_id | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
identity | object | Managed service identity (system assigned and/or user assigned identities) |
kind | string | The Kind of the Maps Account. |
location | string | The geo-location where the resource lives |
properties | object | Additional Maps account properties |
sku | object | The resource model definition representing SKU |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, resourceGroupName, subscriptionId | Get a Maps Account. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Get all Maps Accounts in a Resource Group |
list_by_subscription | SELECT | subscriptionId | Get all Maps Accounts in a Subscription |
create_or_update | INSERT | accountName, resourceGroupName, subscriptionId, data__sku | Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs. |
delete | DELETE | accountName, resourceGroupName, subscriptionId | Delete a Maps Account. |
update | UPDATE | accountName, resourceGroupName, subscriptionId | Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties. |
regenerate_keys | EXEC | accountName, resourceGroupName, subscriptionId, data__keyType | Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately. |
SELECT
examples
Get all Maps Accounts in a Subscription
- vw_accounts
- accounts
SELECT
accountName,
cors,
disable_local_auth,
encryption,
identity,
kind,
linked_resources,
location,
locations,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
system_data,
tags,
unique_id
FROM azure.maps.vw_accounts
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
identity,
kind,
location,
properties,
sku,
systemData,
tags
FROM azure.maps.accounts
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new accounts
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.maps.accounts (
accountName,
resourceGroupName,
subscriptionId,
data__sku,
sku,
kind,
systemData,
identity,
properties,
tags,
location
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__sku }}',
'{{ sku }}',
'{{ kind }}',
'{{ systemData }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: sku
value:
- name: name
value: string
- name: tier
value: []
- name: size
value: string
- name: family
value: string
- name: capacity
value: integer
- name: kind
value: []
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: []
- name: properties
value:
- name: uniqueId
value: string
- name: disableLocalAuth
value: boolean
- name: provisioningState
value: string
- name: linkedResources
value: []
- name: cors
value:
- name: corsRules
value:
- - name: allowedOrigins
value:
- string
- name: encryption
value:
- name: infrastructureEncryption
value: string
- name: customerManagedKeyEncryption
value:
- name: keyEncryptionKeyIdentity
value:
- name: identityType
value: string
- name: userAssignedIdentityResourceId
value: string
- name: federatedClientId
value: string
- name: delegatedIdentityClientId
value: string
- name: keyEncryptionKeyUrl
value: string
- name: locations
value: []
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a accounts
resource.
/*+ update */
UPDATE azure.maps.accounts
SET
tags = '{{ tags }}',
kind = '{{ kind }}',
sku = '{{ sku }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified accounts
resource.
/*+ delete */
DELETE FROM azure.maps.accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';