Skip to main content

spatial_anchors_accounts

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

Overview

Namespatial_anchors_accounts
TypeResource
Idazure.mixed_reality.spatial_anchors_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
identityobjectIdentity for the resource.
kindobjectThe resource model definition representing SKU
locationstringThe geo-location where the resource lives
planobjectIdentity for the resource.
propertiesobjectProperty bag.
skuobjectThe resource model definition representing SKU
systemDataobjectSystem metadata for this account
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountNameRetrieve a Spatial Anchors Account.
list_by_resource_groupselectsubscriptionId, resourceGroupNameList Resources by Resource Group
list_by_subscriptionselectsubscriptionIdList Spatial Anchors Accounts by Subscription
createinsertsubscriptionId, resourceGroupName, accountNameCreating or Updating a Spatial Anchors Account.
updateupdatesubscriptionId, resourceGroupName, accountNameUpdating a Spatial Anchors Account
deletedeletesubscriptionId, resourceGroupName, accountNameDelete a Spatial Anchors Account.
regenerate_keysexecsubscriptionId, resourceGroupName, accountNameRegenerate specified Key of a Spatial Anchors Account

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
accountNamestringName of an Mixed Reality Account.
resourceGroupNamestringName of an Azure resource group.
subscriptionIdstringThe Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)

SELECT examples

Retrieve a Spatial Anchors Account.

SELECT
identity,
kind,
location,
plan,
properties,
sku,
systemData,
tags
FROM azure.mixed_reality.spatial_anchors_accounts
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
;

INSERT examples

Creating or Updating a Spatial Anchors Account.

INSERT INTO azure.mixed_reality.spatial_anchors_accounts (
data__tags,
data__location,
data__properties,
data__identity,
data__plan,
data__sku,
data__kind,
subscriptionId,
resourceGroupName,
accountName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}',
'{{ plan }}',
'{{ sku }}',
'{{ kind }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}'
RETURNING
identity,
kind,
location,
plan,
properties,
sku,
systemData,
tags
;

UPDATE examples

Updating a Spatial Anchors Account

UPDATE azure.mixed_reality.spatial_anchors_accounts
SET
data__tags = '{{ tags }}',
data__location = '{{ location }}',
data__properties = '{{ properties }}',
data__identity = '{{ identity }}',
data__plan = '{{ plan }}',
data__sku = '{{ sku }}',
data__kind = '{{ kind }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
RETURNING
identity,
kind,
location,
plan,
properties,
sku,
systemData,
tags;

DELETE examples

Delete a Spatial Anchors Account.

DELETE FROM azure.mixed_reality.spatial_anchors_accounts
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
;

Lifecycle Methods

Regenerate specified Key of a Spatial Anchors Account

EXEC azure.mixed_reality.spatial_anchors_accounts.regenerate_keys 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@accountName='{{ accountName }}' --required
@@json=
'{
"serial": {{ serial }}
}'
;