Skip to main content

devices

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

Overview

Namedevices
TypeResource
Idazure_extras.storsimple_8000_series.devices

Fields

The following fields are returned by SELECT queries:

The device.

NameDatatypeDescription
idstringThe path ID that uniquely identifies the object.
namestringThe name of the object.
kindstringThe Kind of the object. Currently only Series8000 is supported
propertiesobjectThe properties of the StorSimple device.
typestringThe hierarchical type of the object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeviceName, subscriptionId, resourceGroupName, managerName$expandReturns the properties of the specified device.
list_by_managerselectsubscriptionId, resourceGroupName, managerName$expandReturns the list of devices for the specified manager.
updateupdatedeviceName, subscriptionId, resourceGroupName, managerName, data__propertiesPatches the device.
deletedeletedeviceName, subscriptionId, resourceGroupName, managerNameDeletes the device.
configureexecsubscriptionId, resourceGroupName, managerName, propertiesComplete minimal setup before using the device.
authorize_for_service_encryption_key_rolloverexecdeviceName, subscriptionId, resourceGroupName, managerNameAuthorizes the specified device for service data encryption key rollover.
deactivateexecdeviceName, subscriptionId, resourceGroupName, managerNameDeactivates the device.
install_updatesexecdeviceName, subscriptionId, resourceGroupName, managerNameDownloads and installs the updates on the device.
scan_for_updatesexecdeviceName, subscriptionId, resourceGroupName, managerNameScans for updates on the device.
failoverexecsourceDeviceName, subscriptionId, resourceGroupName, managerNameFailovers a set of volume containers from a specified source device to a target 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
managerNamestringThe manager name
resourceGroupNamestringThe resource group name
sourceDeviceNamestringThe source device name on which failover is performed.
subscriptionIdstringThe subscription id
$expandstringSpecify $expand=details to populate additional fields related to the device or $expand=rolloverdetails to populate additional fields related to the service data encryption key rollover on device

SELECT examples

Returns the properties of the specified device.

SELECT
id,
name,
kind,
properties,
type
FROM azure_extras.storsimple_8000_series.devices
WHERE deviceName = '{{ deviceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND managerName = '{{ managerName }}' -- required
AND $expand = '{{ $expand }}'
;

UPDATE examples

Patches the device.

UPDATE azure_extras.storsimple_8000_series.devices
SET
data__properties = '{{ properties }}'
WHERE
deviceName = '{{ deviceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND managerName = '{{ managerName }}' --required
AND data__properties = '{{ properties }}' --required
RETURNING
id,
name,
kind,
properties,
type;

DELETE examples

Deletes the device.

DELETE FROM azure_extras.storsimple_8000_series.devices
WHERE deviceName = '{{ deviceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND managerName = '{{ managerName }}' --required
;

Lifecycle Methods

Complete minimal setup before using the device.

EXEC azure_extras.storsimple_8000_series.devices.configure 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@managerName='{{ managerName }}' --required
@@json=
'{
"kind": "{{ kind }}",
"properties": "{{ properties }}"
}'
;