Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure.iot_firmware_defense.workspaces

Fields

NameDatatypeDescription
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, workspaceNameGet firmware analysis workspace.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all of the firmware analysis workspaces in the specified resource group.
list_by_subscriptionSELECTsubscriptionIdLists all of the firmware analysis workspaces in the specified subscription.
createINSERTresourceGroupName, subscriptionId, workspaceNameThe operation to create or update a firmware analysis workspace.
deleteDELETEresourceGroupName, subscriptionId, workspaceNameThe operation to delete a firmware analysis workspace.
updateUPDATEresourceGroupName, subscriptionId, workspaceNameThe operation to update a firmware analysis workspaces.
generate_upload_urlEXECresourceGroupName, subscriptionId, workspaceNameThe operation to get a url for file upload.

SELECT examples

Lists all of the firmware analysis workspaces in the specified subscription.

SELECT
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
workspaceName
FROM azure.iot_firmware_defense.vw_workspaces
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a workspaces resource.

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

DELETE example

Deletes the specified workspaces resource.

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