Skip to main content

firmwares

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

Overview

Namefirmwares
TypeResource
Idazure.iot_firmware_defense.firmwares

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
descriptiontextfield from the properties object
file_nametextfield from the properties object
file_sizetextfield from the properties object
firmwareIdtextfield from the properties object
modeltextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
status_messagestextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
vendortextfield from the properties object
versiontextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTfirmwareId, resourceGroupName, subscriptionId, workspaceNameGet firmware.
list_by_workspaceSELECTresourceGroupName, subscriptionId, workspaceNameLists all of firmwares inside a workspace.
createINSERTfirmwareId, resourceGroupName, subscriptionId, workspaceNameThe operation to create a firmware.
deleteDELETEfirmwareId, resourceGroupName, subscriptionId, workspaceNameThe operation to delete a firmware.
updateUPDATEfirmwareId, resourceGroupName, subscriptionId, workspaceNameThe operation to update firmware.
generate_download_urlEXECfirmwareId, resourceGroupName, subscriptionId, workspaceNameThe operation to a url for file download.
generate_filesystem_download_urlEXECfirmwareId, resourceGroupName, subscriptionId, workspaceNameThe operation to a url for tar file download.

SELECT examples

Lists all of firmwares inside a workspace.

SELECT
id,
name,
description,
file_name,
file_size,
firmwareId,
model,
provisioning_state,
resourceGroupName,
status,
status_messages,
subscriptionId,
system_data,
type,
vendor,
version,
workspaceName
FROM azure.iot_firmware_defense.vw_firmwares
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.iot_firmware_defense.firmwares (
firmwareId,
resourceGroupName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ firmwareId }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;

UPDATE example

Updates a firmwares resource.

/*+ update */
UPDATE azure.iot_firmware_defense.firmwares
SET
properties = '{{ properties }}'
WHERE
firmwareId = '{{ firmwareId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

DELETE example

Deletes the specified firmwares resource.

/*+ delete */
DELETE FROM azure.iot_firmware_defense.firmwares
WHERE firmwareId = '{{ firmwareId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';