Skip to main content

devices

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

Overview

Namedevices
TypeResource
Idazure_extras.storsimple_1200_series.devices

Fields

NameDatatypeDescription
idtextThe identifier.
nametextThe name.
activation_timetextfield from the properties object
allowed_device_operationstextfield from the properties object
culturetextfield from the properties object
detailstextfield from the properties object
deviceNametextfield from the properties object
device_capabilitiestextfield from the properties object
device_configuration_statustextfield from the properties object
device_descriptiontextfield from the properties object
device_software_versiontextfield from the properties object
domain_nametextfield from the properties object
friendly_software_nametextfield from the properties object
managerNametextfield from the properties object
model_descriptiontextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeviceName, managerName, resourceGroupName, subscriptionIdReturns the properties of the specified device name.
list_by_managerSELECTmanagerName, resourceGroupName, subscriptionIdRetrieves all the devices in a manager.
deleteDELETEdeviceName, managerName, resourceGroupName, subscriptionIdDeletes the device.
patchUPDATEdeviceName, managerName, resourceGroupName, subscriptionIdPatches the device.
deactivateEXECdeviceName, managerName, resourceGroupName, subscriptionIdDeactivates the device.
download_updatesEXECdeviceName, managerName, resourceGroupName, subscriptionIdDownloads updates on the device.
failoverEXECdeviceName, managerName, resourceGroupName, subscriptionIdFails over the device to another device.
install_updatesEXECdeviceName, managerName, resourceGroupName, subscriptionIdInstalls the updates on the device.
scan_for_updatesEXECdeviceName, managerName, resourceGroupName, subscriptionIdScans for updates on the device.

SELECT examples

Retrieves all the devices in a manager.

SELECT
id,
name,
activation_time,
allowed_device_operations,
culture,
details,
deviceName,
device_capabilities,
device_configuration_status,
device_description,
device_software_version,
domain_name,
friendly_software_name,
managerName,
model_description,
resourceGroupName,
status,
subscriptionId,
type
FROM azure_extras.storsimple_1200_series.vw_devices
WHERE managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a devices resource.

/*+ update */
UPDATE azure_extras.storsimple_1200_series.devices
SET
deviceDescription = '{{ deviceDescription }}'
WHERE
deviceName = '{{ deviceName }}'
AND managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified devices resource.

/*+ delete */
DELETE FROM azure_extras.storsimple_1200_series.devices
WHERE deviceName = '{{ deviceName }}'
AND managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';