Skip to main content

apps_settings

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

Overview

Nameapps_settings
TypeResource
Iddatabricks_workspace.apps.apps_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
creatorstring
descriptionstringThe description of the template.
git_providerstringThe Git provider of the template.
git_repostringThe Git repository URL that the template resides in.
manifestobjectThe manifest of the template. It defines fields and default values when installing the template.
pathstringThe path to the template within the Git repository.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectname, deployment_nameGets the custom template with the specified name.
listselectdeployment_namepage_size, page_tokenLists all custom templates in the workspace.
createinsertdeployment_name, templateCreates a custom template.
replacereplacename, deployment_name, templateUpdates the custom template with the specified name. Note that the template name cannot be updated.
deletedeletename, deployment_nameDeletes the custom template with the specified name.

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 custom template.
page_sizeintegerUpper bound for items returned.
page_tokenstringPagination token to go to the next page of custom templates. Requests first page if absent.

SELECT examples

Gets the custom template with the specified name.

SELECT
name,
creator,
description,
git_provider,
git_repo,
manifest,
path
FROM databricks_workspace.apps.apps_settings
WHERE name = '{{ name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;

INSERT examples

Creates a custom template.

INSERT INTO databricks_workspace.apps.apps_settings (
template,
deployment_name
)
SELECT
'{{ template }}' /* required */,
'{{ deployment_name }}'
RETURNING
name,
creator,
description,
git_provider,
git_repo,
manifest,
path
;

REPLACE examples

Updates the custom template with the specified name. Note that the template name cannot be updated.

REPLACE databricks_workspace.apps.apps_settings
SET
template = '{{ template }}'
WHERE
name = '{{ name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND template = '{{ template }}' --required
RETURNING
name,
creator,
description,
git_provider,
git_repo,
manifest,
path;

DELETE examples

Deletes the custom template with the specified name.

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