Skip to main content

app_spaces

Creates, updates, deletes, gets or lists an app_spaces resource.

Overview

Nameapp_spaces
TypeResource
Iddatabricks_workspace.apps.app_spaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the app space.
namestring
effective_usage_policy_idstringThe effective usage policy ID used by apps in the space.
group_idstringThe ID of the group attached to the app space. ASPs minted for apps in this space are added as members of this group at create time, so the group's resource permissions flow through to every app in the space.
service_principal_client_idstringThe service principal client ID for the app space.
service_principal_idintegerThe service principal ID for the app space.
usage_policy_idstringThe usage policy ID for managing cost at the space level.
service_principal_namestringThe service principal name for the app space.
create_timestring (date-time)The creation time of the app space. Formatted timestamp in ISO 6801.
creatorstringThe email of the user that created the app space.
descriptionstringThe description of the app space.
effective_user_api_scopesarrayThe effective api scopes granted to the user access token.
resourcesarrayResources for the app space. Resources configured at the space level are available to all apps in the space.
statusobjectThe status of the app space.
telemetry_export_destinationsarrayTelemetry export destinations for all apps in this space. When configured, all apps in the space export OTEL telemetry (logs, metrics, traces) to the specified Unity Catalog tables.
update_timestring (date-time)The update time of the app space. Formatted timestamp in ISO 6801.
updaterstringThe email of the user that last updated the app space.
user_api_scopesarrayOAuth scopes for apps in the space.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectname, deployment_nameRetrieves information for the app space with the supplied name.
listselectdeployment_namepage_size, page_tokenLists all app spaces in the workspace.
createinsertdeployment_name, spaceCreates a new app space.
updateupdatename, update_mask, deployment_name, spaceUpdates an app space. The update process is asynchronous and the status of the update can be checked
deletedeletename, deployment_nameDeletes an app space.

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
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
namestringThe name of the app space.
update_maskobjectThe field mask must be a single string, with multiple fields separated by commas (no spaces). The field path is relative to the resource object, using a dot (.) to navigate sub-fields (e.g., author.given_name). Specification of elements in sequence or map fields is not allowed, as only the entire collection field can be specified. Field names must exactly match the resource field names. A field mask of * indicates full replacement. It’s recommended to always explicitly list the fields being updated and avoid using * wildcards, as it can lead to unintended results if the API changes in the future.
page_sizeintegerUpper bound for items returned.
page_tokenstringPagination token to go to the next page of app spaces. Requests first page if absent.

SELECT examples

Retrieves information for the app space with the supplied name.

SELECT
id,
name,
effective_usage_policy_id,
group_id,
service_principal_client_id,
service_principal_id,
usage_policy_id,
service_principal_name,
create_time,
creator,
description,
effective_user_api_scopes,
resources,
status,
telemetry_export_destinations,
update_time,
updater,
user_api_scopes
FROM databricks_workspace.apps.app_spaces
WHERE name = '{{ name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;

INSERT examples

Creates a new app space.

INSERT INTO databricks_workspace.apps.app_spaces (
space,
deployment_name
)
SELECT
'{{ space }}' /* required */,
'{{ deployment_name }}'
;

UPDATE examples

Updates an app space. The update process is asynchronous and the status of the update can be checked

UPDATE databricks_workspace.apps.app_spaces
SET
space = '{{ space }}'
WHERE
name = '{{ name }}' --required
AND update_mask = '{{ update_mask }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND space = '{{ space }}' --required;

DELETE examples

Deletes an app space.

DELETE FROM databricks_workspace.apps.app_spaces
WHERE name = '{{ name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
;