Skip to main content

roles

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

Overview

Nameroles
TypeResource
Idazure.data_box_edge.roles

Fields

NameDatatypeDescription
idstringThe path ID that uniquely identifies the object.
namestringThe object name.
kindstringRole type.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe hierarchical type of the object.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeviceName, name, resourceGroupName, subscriptionIdGets a specific role by name.
list_by_data_box_edge_deviceSELECTdeviceName, resourceGroupName, subscriptionIdLists all the roles configured in a Data Box Edge/Data Box Gateway device.
create_or_updateINSERTdeviceName, name, resourceGroupName, subscriptionId, data__kindCreate or update a role.
deleteDELETEdeviceName, name, resourceGroupName, subscriptionIdDeletes the role on the device.

SELECT examples

Lists all the roles configured in a Data Box Edge/Data Box Gateway device.

SELECT
id,
name,
kind,
systemData,
type
FROM azure.data_box_edge.roles
WHERE deviceName = '{{ deviceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_box_edge.roles (
deviceName,
name,
resourceGroupName,
subscriptionId,
data__kind,
kind
)
SELECT
'{{ deviceName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ kind }}'
;

DELETE example

Deletes the specified roles resource.

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