Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure_extras.health_data_services.workspaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
etagstringAn etag associated with the resource, used for optimistic concurrency when editing it.
locationstringThe common properties for any location based resource, tracked or proxy.
privateEndpointConnectionsarrayThe list of private endpoint connections that are set up for this resource.
provisioningStatestringThe provisioning state. Known values are: "Deleting", "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", "Deprovisioned", "Moving", "Suspended", "Warned", and "SystemMaintenance". (Deleting, Succeeded, Creating, Accepted, Verifying, Updating, Failed, Canceled, Deprovisioned, Moving, Suspended, Warned, SystemMaintenance)
publicNetworkAccessstringControl permission for data plane traffic coming from public networks while private endpoint is enabled. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectThe common properties of tracked resources in the service.
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
getselectresource_group_name, workspace_name, subscription_idGets the properties of the specified workspace.
list_by_resource_groupselectresource_group_name, subscription_idLists all the available workspaces under the specified resource group.
list_by_subscriptionselectsubscription_idLists all the available workspaces under the specified subscription.
create_or_updateinsertresource_group_name, workspace_name, subscription_idCreates or updates a workspace resource with the specified parameters.
updateupdateresource_group_name, workspace_name, subscription_idPatch workspace details.
create_or_updatereplaceresource_group_name, workspace_name, subscription_idCreates or updates a workspace resource with the specified parameters.
deletedeleteresource_group_name, workspace_name, subscription_idDeletes a specified workspace.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of workspace resource. Required.

SELECT examples

Gets the properties of the specified workspace.

SELECT
id,
name,
etag,
location,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
systemData,
tags,
type
FROM azure_extras.health_data_services.workspaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a workspace resource with the specified parameters.

INSERT INTO azure_extras.health_data_services.workspaces (
properties,
tags,
location,
etag,
resource_group_name,
workspace_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ etag }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Patch workspace details.

UPDATE azure_extras.health_data_services.workspaces
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a workspace resource with the specified parameters.

REPLACE azure_extras.health_data_services.workspaces
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}',
etag = '{{ etag }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a specified workspace.

DELETE FROM azure_extras.health_data_services.workspaces
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;