Skip to main content

users

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

Overview

Nameusers
TypeResource
Idazure.data_box_edge.users

Fields

NameDatatypeDescription
idtextThe path ID that uniquely identifies the object.
nametextThe object name.
deviceNametextfield from the properties object
encrypted_passwordtextfield from the properties object
resourceGroupNametextfield from the properties object
share_access_rightstextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe hierarchical type of the object.
user_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeviceName, name, resourceGroupName, subscriptionIdGets the properties of the specified user.
list_by_data_box_edge_deviceSELECTdeviceName, resourceGroupName, subscriptionIdGets all the users registered on a Data Box Edge/Data Box Gateway device.
create_or_updateINSERTdeviceName, name, resourceGroupName, subscriptionId, data__propertiesCreates a new user or updates an existing user's information on a Data Box Edge/Data Box Gateway device.
deleteDELETEdeviceName, name, resourceGroupName, subscriptionIdDeletes the user on a databox edge/gateway device.

SELECT examples

Gets all the users registered on a Data Box Edge/Data Box Gateway device.

SELECT
id,
name,
deviceName,
encrypted_password,
resourceGroupName,
share_access_rights,
subscriptionId,
system_data,
type,
user_type
FROM azure.data_box_edge.vw_users
WHERE deviceName = '{{ deviceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new users resource.

/*+ create */
INSERT INTO azure.data_box_edge.users (
deviceName,
name,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ deviceName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified users resource.

/*+ delete */
DELETE FROM azure.data_box_edge.users
WHERE deviceName = '{{ deviceName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';