Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure_extras.healthcare.workspaces

Fields

NameDatatypeDescription
propertiesobjectWorkspaces resource specific properties.
systemDataobjectMetadata pertaining to creation and last modification of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, workspaceNameGets the properties of the specified workspace.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the available workspaces under the specified resource group.
list_by_subscriptionSELECTsubscriptionIdLists all the available workspaces under the specified subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, workspaceNameCreates or updates a workspace resource with the specified parameters.
deleteDELETEresourceGroupName, subscriptionId, workspaceNameDeletes a specified workspace.
updateUPDATEresourceGroupName, subscriptionId, workspaceNamePatch workspace details.

SELECT examples

Lists all the available workspaces under the specified subscription.

SELECT
properties,
systemData
FROM azure_extras.healthcare.workspaces
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.healthcare.workspaces (
resourceGroupName,
subscriptionId,
workspaceName,
properties,
systemData
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}',
'{{ systemData }}'
;

UPDATE example

Updates a workspaces resource.

/*+ update */
UPDATE azure_extras.healthcare.workspaces
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

DELETE example

Deletes the specified workspaces resource.

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