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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
configuredRoleTypesarrayType of compute roles configured.
culturestringThe Data Box Edge/Gateway device culture.
dataBoxEdgeDeviceStatusstringThe status of the Data Box Edge/Gateway device. Known values are: "ReadyToSetup", "Online", "Offline", "NeedsAttention", "Disconnected", "PartiallyDisconnected", and "Maintenance". (ReadyToSetup, Online, Offline, NeedsAttention, Disconnected, PartiallyDisconnected, Maintenance)
dataResidencyobjectThe details of data-residency related properties for this resource.
descriptionstringThe Description of the Data Box Edge/Gateway device.
deviceHcsVersionstringThe device software version number of the device (eg: 1.2.18105.6).
deviceLocalCapacityintegerThe Data Box Edge/Gateway device local capacity in MB.
deviceModelstringThe Data Box Edge/Gateway device model.
deviceSoftwareVersionstringThe Data Box Edge/Gateway device software version.
deviceTypestringThe type of the Data Box Edge/Gateway device. "DataBoxEdgeDevice" (DataBoxEdgeDevice)
edgeProfileobjectThe details of Edge Profile for this resource.
etagstringThe etag for the devices.
friendlyNamestringThe Data Box Edge/Gateway device name.
identityobjectMsi identity of the resource.
kindstringThe kind of the device. Known values are: "AzureDataBoxGateway", "AzureStackEdge", "AzureStackHub", and "AzureModularDataCentre". (AzureDataBoxGateway, AzureStackEdge, AzureStackHub, AzureModularDataCentre)
kubernetesWorkloadProfilestringKubernetes Workload Profile.
locationstringThe geo-location where the resource lives. Required.
modelDescriptionstringThe description of the Data Box Edge/Gateway device model.
nodeCountintegerThe number of nodes in the cluster.
resourceMoveDetailsobjectThe details of the move operation on this resource.
serialNumberstringThe Serial Number of Data Box Edge/Gateway device.
skuobjectThe SKU type.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
timeZonestringThe Data Box Edge/Gateway device timezone.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdevice_name, resource_group_name, subscription_idGets the properties of the Data Box Edge/Data Box Gateway device.
list_by_resource_groupselectresource_group_name, subscription_id$expandGets all the Data Box Edge/Data Box Gateway devices in a resource group.
list_by_subscriptionselectsubscription_id$expandGets all the Data Box Edge/Data Box Gateway devices in a subscription.
create_or_updateinsertdevice_name, resource_group_name, subscription_id, locationCreates or updates a Data Box Edge/Data Box Gateway resource.
updateupdatedevice_name, resource_group_name, subscription_idModifies a Data Box Edge/Data Box Gateway resource.
create_or_updatereplacedevice_name, resource_group_name, subscription_id, locationCreates or updates a Data Box Edge/Data Box Gateway resource.
deletedeletedevice_name, resource_group_name, subscription_idDeletes the Data Box Edge/Data Box Gateway device.
get_network_settingsexecdevice_name, resource_group_name, subscription_idGets the network settings of the specified Data Box Edge/Data Box Gateway device.
get_extended_informationexecdevice_name, resource_group_name, subscription_idGets additional information for the specified Azure Stack Edge/Data Box Gateway device.
get_update_summaryexecdevice_name, resource_group_name, subscription_idGets information about the availability of updates based on the last scan of the device. It also gets information about any ongoing download or install jobs on the device. Gets information about the availability of updates based on the last scan of the device. It also gets information about any ongoing download or install jobs on the device.
download_updatesexecdevice_name, resource_group_name, subscription_idDownloads the updates on a Data Box Edge/Data Box Gateway device. Downloads the updates on a Data Box Edge/Data Box Gateway device.
generate_certificateexecdevice_name, resource_group_name, subscription_idGenerates certificate for activation key.
install_updatesexecdevice_name, resource_group_name, subscription_idInstalls the updates on the Data Box Edge/Data Box Gateway device. Installs the updates on the Data Box Edge/Data Box Gateway device.
scan_for_updatesexecdevice_name, resource_group_name, subscription_idScans for updates on a Data Box Edge/Data Box Gateway device.
create_or_update_security_settingsexecdevice_name, resource_group_name, subscription_id, propertiesUpdates the security settings on a Data Box Edge/Data Box Gateway device.
update_extended_informationexecdevice_name, resource_group_name, subscription_idGets additional information for the specified Data Box Edge/Data Box Gateway device.
upload_certificateexecdevice_name, resource_group_name, subscription_id, 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
device_namestringThe device name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$expandstringSpecify $expand=details to populate additional fields related to the resource or Specify $skipToken= to populate the next page in the list. Default value is None.

SELECT examples

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

SELECT
id,
name,
configuredRoleTypes,
culture,
dataBoxEdgeDeviceStatus,
dataResidency,
description,
deviceHcsVersion,
deviceLocalCapacity,
deviceModel,
deviceSoftwareVersion,
deviceType,
edgeProfile,
etag,
friendlyName,
identity,
kind,
kubernetesWorkloadProfile,
location,
modelDescription,
nodeCount,
resourceMoveDetails,
serialNumber,
sku,
systemData,
tags,
timeZone,
type
FROM azure.data_box_edge.devices
WHERE device_name = '{{ device_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

INSERT INTO azure.data_box_edge.devices (
tags,
location,
properties,
sku,
etag,
identity,
device_name,
resource_group_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ sku }}',
'{{ etag }}',
'{{ identity }}',
'{{ device_name }}',
'{{ resource_group_name }}',
'{{ subscription_id }}'
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
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
device_name = '{{ device_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type;

REPLACE examples

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

REPLACE azure.data_box_edge.devices
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
sku = '{{ sku }}',
etag = '{{ etag }}',
identity = '{{ identity }}'
WHERE
device_name = '{{ device_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --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 device_name = '{{ device_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Gets the network settings of the specified Data Box Edge/Data Box Gateway device.

EXEC azure.data_box_edge.devices.get_network_settings 
@device_name='{{ device_name }}' --required,
@resource_group_name='{{ resource_group_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;