Skip to main content

devices

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

Overview

Namedevices
TypeResource
Idazure.data_box_edge.devices

Fields

NameDatatypeDescription
idtextThe path ID that uniquely identifies the object.
nametextThe object name.
descriptiontextfield from the properties object
configured_role_typestextfield from the properties object
culturetextfield from the properties object
data_box_edge_device_statustextfield from the properties object
data_residencytextfield from the properties object
deviceNametextfield from the properties object
device_hcs_versiontextfield from the properties object
device_local_capacitytextfield from the properties object
device_modeltextfield from the properties object
device_software_versiontextfield from the properties object
device_typetextfield from the properties object
edge_profiletextfield from the properties object
etagtextThe etag for the devices.
friendly_nametextfield from the properties object
identitytextMsi identity details of the resource
kindtextThe kind of the device.
kubernetes_workload_profiletextfield from the properties object
locationtextThe location of the device. This is a supported and registered Azure geographical region (for example, West US, East US, or Southeast Asia). The geographical region of a device cannot be changed once it is created, but if an identical geographical region is specified on update, the request will succeed.
model_descriptiontextfield from the properties object
node_counttextfield from the properties object
resourceGroupNametextfield from the properties object
resource_move_detailstextfield from the properties object
serial_numbertextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextThe list of tags that describe the device. These tags can be used to view and group this device (across resource groups).
time_zonetextfield from the properties object
typetextThe hierarchical type of the object.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeviceName, resourceGroupName, subscriptionIdGets the properties of the Data Box Edge/Data Box Gateway device.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all the Data Box Edge/Data Box Gateway devices in a resource group.
list_by_subscriptionSELECTsubscriptionIdGets all the Data Box Edge/Data Box Gateway devices in a subscription.
create_or_updateINSERTdeviceName, resourceGroupName, subscriptionId, data__locationCreates or updates a Data Box Edge/Data Box Gateway resource.
deleteDELETEdeviceName, resourceGroupName, subscriptionIdDeletes the Data Box Edge/Data Box Gateway device.
updateUPDATEdeviceName, resourceGroupName, subscriptionIdModifies a Data Box Edge/Data Box Gateway resource.
download_updatesEXECdeviceName, resourceGroupName, subscriptionId
generate_certificateEXECdeviceName, resourceGroupName, subscriptionIdGenerates certificate for activation key.
install_updatesEXECdeviceName, resourceGroupName, subscriptionId
scan_for_updatesEXECdeviceName, resourceGroupName, subscriptionId
upload_certificateEXECdeviceName, resourceGroupName, subscriptionId, data__propertiesUploads registration certificate for the device.

SELECT examples

Gets all the Data Box Edge/Data Box Gateway devices in a subscription.

SELECT
id,
name,
description,
configured_role_types,
culture,
data_box_edge_device_status,
data_residency,
deviceName,
device_hcs_version,
device_local_capacity,
device_model,
device_software_version,
device_type,
edge_profile,
etag,
friendly_name,
identity,
kind,
kubernetes_workload_profile,
location,
model_description,
node_count,
resourceGroupName,
resource_move_details,
serial_number,
sku,
subscriptionId,
system_data,
tags,
time_zone,
type
FROM azure.data_box_edge.vw_devices
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_box_edge.devices (
deviceName,
resourceGroupName,
subscriptionId,
data__location,
location,
tags,
sku,
etag,
identity,
properties
)
SELECT
'{{ deviceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ location }}',
'{{ tags }}',
'{{ sku }}',
'{{ etag }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a devices resource.

/*+ update */
UPDATE azure.data_box_edge.devices
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
deviceName = '{{ deviceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified devices resource.

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