Skip to main content

firmwares

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

Overview

Namefirmwares
TypeResource
Idazure.iot_firmware_defense.firmwares

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
propertiesobjectThe properties of a firmware (title: Firmware properties)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
getselectsubscriptionId, resourceGroupName, workspaceName, firmwareIdGet firmware.
list_by_workspaceselectsubscriptionId, resourceGroupName, workspaceNameLists all of firmwares inside a workspace.
createinsertsubscriptionId, resourceGroupName, workspaceName, firmwareIdThe operation to create a firmware.
updateupdatesubscriptionId, resourceGroupName, workspaceName, firmwareIdThe operation to update firmware.
deletedeletesubscriptionId, resourceGroupName, workspaceName, firmwareIdThe operation to delete a firmware.
generate_download_urlexecsubscriptionId, resourceGroupName, workspaceName, firmwareIdThe operation to a url for file download.
generate_filesystem_download_urlexecsubscriptionId, resourceGroupName, workspaceName, firmwareIdThe operation to a url for tar file download.

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
firmwareIdstringThe id of the firmware.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
workspaceNamestringThe name of the firmware analysis workspace.

SELECT examples

Get firmware.

SELECT
id,
name,
properties,
systemData,
type
FROM azure.iot_firmware_defense.firmwares
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND firmwareId = '{{ firmwareId }}' -- required
;

INSERT examples

The operation to create a firmware.

INSERT INTO azure.iot_firmware_defense.firmwares (
data__properties,
subscriptionId,
resourceGroupName,
workspaceName,
firmwareId
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ workspaceName }}',
'{{ firmwareId }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

The operation to update firmware.

UPDATE azure.iot_firmware_defense.firmwares
SET
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
AND firmwareId = '{{ firmwareId }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

The operation to delete a firmware.

DELETE FROM azure.iot_firmware_defense.firmwares
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
AND firmwareId = '{{ firmwareId }}' --required
;

Lifecycle Methods

The operation to a url for file download.

EXEC azure.iot_firmware_defense.firmwares.generate_download_url 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@workspaceName='{{ workspaceName }}' --required,
@firmwareId='{{ firmwareId }}' --required
;