Skip to main content

app_updates

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

Overview

Nameapp_updates
TypeResource
Iddatabricks_workspace.apps.app_updates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
budget_policy_idstring
usage_policy_idstring
compute_sizestringCreate a collection of name/value pairs.<br /><br />Example enumeration:<br /><br />&gt;&gt;&gt; class Color(Enum):<br />... RED = 1<br />... BLUE = 2<br />... GREEN = 3<br /><br />Access them by:<br /><br />- attribute access::<br /><br />&gt;&gt;&gt; Color.RED<br />&lt;Color.RED: 1&gt;<br /><br />- value lookup:<br /><br />&gt;&gt;&gt; Color(1)<br />&lt;Color.RED: 1&gt;<br /><br />- name lookup:<br /><br />&gt;&gt;&gt; Color['RED']<br />&lt;Color.RED: 1&gt;<br /><br />Enumerations can be iterated over, and know how many members they have:<br /><br />&gt;&gt;&gt; len(Color)<br />3<br /><br />&gt;&gt;&gt; list(Color)<br />[&lt;Color.RED: 1&gt;, &lt;Color.BLUE: 2&gt;, &lt;Color.GREEN: 3&gt;]<br /><br />Methods can be added to enumerations, and members can have their own<br />attributes -- see the documentation for details. (LARGE, MEDIUM)
descriptionstring
git_repositoryobjectGit repository configuration specifying the location of the repository.
resourcesarray
statusobject
user_api_scopesarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectapp_name, deployment_nameGets the status of an app update.
createinsertapp_name, deployment_name, update_maskCreates an app update and starts the update process. The update process is asynchronous and the status

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
app_namestring:param update_mask: str The 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.
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

SELECT examples

Gets the status of an app update.

SELECT
budget_policy_id,
usage_policy_id,
compute_size,
description,
git_repository,
resources,
status,
user_api_scopes
FROM databricks_workspace.apps.app_updates
WHERE app_name = '{{ app_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;

INSERT examples

Creates an app update and starts the update process. The update process is asynchronous and the status

INSERT INTO databricks_workspace.apps.app_updates (
update_mask,
app,
app_name,
deployment_name
)
SELECT
'{{ update_mask }}' /* required */,
'{{ app }}',
'{{ app_name }}',
'{{ deployment_name }}'
RETURNING
budget_policy_id,
usage_policy_id,
compute_size,
description,
git_repository,
resources,
status,
user_api_scopes
;