Skip to main content

devices

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

Overview

Namedevices
TypeResource
Idazure.data_box_edge.devices

Fields

The following fields are returned by SELECT queries:

The Data Box Edge/Data Box Gateway device.

NameDatatypeDescription
idstringThe path ID that uniquely identifies the object.
namestringThe object name.
etagstringThe etag for the devices.
identityobjectMsi identity of the resource
kindstringThe kind of the device.
locationstringThe 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.
propertiesobjectThe properties of the Data Box Edge/Gateway device.
skuobjectThe SKU type.
systemDataobjectDataBoxEdge Resource
tagsobjectThe list of tags that describe the device. These tags can be used to view and group this device (across resource groups).
typestringThe hierarchical type of the object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeviceName, subscriptionId, resourceGroupNameGets the properties of the Data Box Edge/Data Box Gateway device.
list_by_resource_groupselectsubscriptionId, resourceGroupName$expandGets all the Data Box Edge/Data Box Gateway devices in a resource group.
list_by_subscriptionselectsubscriptionId$expandGets all the Data Box Edge/Data Box Gateway devices in a subscription.
create_or_updateinsertdeviceName, subscriptionId, resourceGroupName, data__locationCreates or updates a Data Box Edge/Data Box Gateway resource.
updateupdatedeviceName, subscriptionId, resourceGroupNameModifies a Data Box Edge/Data Box Gateway resource.
deletedeletedeviceName, subscriptionId, resourceGroupNameDeletes the Data Box Edge/Data Box Gateway device.
download_updatesexecdeviceName, subscriptionId, resourceGroupName
generate_certificateexecdeviceName, subscriptionId, resourceGroupNameGenerates certificate for activation key.
install_updatesexecdeviceName, subscriptionId, resourceGroupName
scan_for_updatesexecdeviceName, subscriptionId, resourceGroupName
upload_certificateexecdeviceName, subscriptionId, resourceGroupName, propertiesUploads registration certificate for the device.

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
deviceNamestringThe device name.
resourceGroupNamestringThe resource group name.
subscriptionIdstringThe subscription ID.
$expandstringSpecify $expand=details to populate additional fields related to the resource or Specify $skipToken=<token> to populate the next page in the list.

SELECT examples

Gets the properties of the Data Box Edge/Data Box Gateway device.

SELECT
id,
name,
etag,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type
FROM azure.data_box_edge.devices
WHERE deviceName = '{{ deviceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
;

INSERT examples

Creates or updates a Data Box Edge/Data Box Gateway resource.

INSERT INTO azure.data_box_edge.devices (
data__location,
data__tags,
data__sku,
data__etag,
data__identity,
data__properties,
deviceName,
subscriptionId,
resourceGroupName
)
SELECT
'{{ location }}' /* required */,
'{{ tags }}',
'{{ sku }}',
'{{ etag }}',
'{{ identity }}',
'{{ properties }}',
'{{ deviceName }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}'
RETURNING
id,
name,
etag,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Modifies a Data Box Edge/Data Box Gateway resource.

UPDATE azure.data_box_edge.devices
SET
data__tags = '{{ tags }}',
data__identity = '{{ identity }}',
data__properties = '{{ properties }}'
WHERE
deviceName = '{{ deviceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
RETURNING
id,
name,
etag,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Deletes the Data Box Edge/Data Box Gateway device.

DELETE FROM azure.data_box_edge.devices
WHERE deviceName = '{{ deviceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
;

Lifecycle Methods

Successfully downloaded the updates on the device.

EXEC azure.data_box_edge.devices.download_updates 
@deviceName='{{ deviceName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required
;