Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure_isv.databricks.workspaces

Fields

NameDatatypeDescription
access_connectortextfield from the properties object
authorizationstextfield from the properties object
created_bytextfield from the properties object
created_date_timetextfield from the properties object
default_catalogtextfield from the properties object
default_storage_firewalltextfield from the properties object
disk_encryption_set_idtextfield from the properties object
encryptiontextfield from the properties object
enhanced_security_compliancetextfield from the properties object
is_uc_enabledtextfield from the properties object
locationtextThe geo-location where the resource lives
managed_disk_identitytextfield from the properties object
managed_resource_group_idtextfield from the properties object
parameterstextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
required_nsg_rulestextfield from the properties object
resourceGroupNametextfield from the properties object
skutextSKU for the resource.
storage_account_identitytextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
ui_definition_uritextfield from the properties object
updated_bytextfield from the properties object
workspaceNametextfield from the properties object
workspace_idtextfield from the properties object
workspace_urltextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, workspaceNameGets the workspace.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all the workspaces within a resource group.
list_by_subscriptionSELECTsubscriptionIdGets all the workspaces within a subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, workspaceName, data__propertiesCreates a new workspace.
deleteDELETEresourceGroupName, subscriptionId, workspaceNameDeletes the workspace.
updateUPDATEresourceGroupName, subscriptionId, workspaceNameUpdates a workspace.

SELECT examples

Gets all the workspaces within a subscription.

SELECT
access_connector,
authorizations,
created_by,
created_date_time,
default_catalog,
default_storage_firewall,
disk_encryption_set_id,
encryption,
enhanced_security_compliance,
is_uc_enabled,
location,
managed_disk_identity,
managed_resource_group_id,
parameters,
private_endpoint_connections,
provisioning_state,
public_network_access,
required_nsg_rules,
resourceGroupName,
sku,
storage_account_identity,
subscriptionId,
system_data,
tags,
ui_definition_uri,
updated_by,
workspaceName,
workspace_id,
workspace_url
FROM azure_isv.databricks.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_isv.databricks.workspaces (
resourceGroupName,
subscriptionId,
workspaceName,
data__properties,
properties,
sku,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ sku }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a workspaces resource.

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

DELETE example

Deletes the specified workspaces resource.

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