session_store_self_permission
Creates, updates, deletes, gets or lists a session_store_self_permission resource.
Overview​
| Name | session_store_self_permission |
| Type | Resource |
| Id | databricks_workspace.agentkit.session_store_self_permission |
Fields​
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
permission | string | The permission level. WRITE includes READ; PERMISSION_LEVEL_UNSPECIFIED means neither is available. (READ, WRITE) |
principal | object | The principal whose permission is reported. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | session_store_id, deployment_name, workspace_domain | Retrieves the current caller's effective session store permission. Returns |
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.
| Name | Datatype | Description |
|---|---|---|
deployment_name | string | The Databricks workspace deployment name: the host prefix of the workspace URL (dbc-abcd0123-a1bc on AWS, adb-1234567890123456.7 on Azure, 1234567890123456.7 on GCP). Set DATABRICKS_DEPLOYMENT_NAME to default it for the session. (default: dbc-abcd0123-a1bc, x-stackQL-envVar: DATABRICKS_DEPLOYMENT_NAME) |
session_store_id | string | The session_store_id segment of the name resource name (session-stores/{session_store_id}). Resource name in the form session-stores/{session_store_id}. |
workspace_domain | string | The Databricks workspace domain suffix for the cloud. Selected by DATABRICKS_CLOUD (aws, azure or gcp; default aws). (default: cloud.databricks.com, x-stackQL-envVarSelector: {"envVar":"DATABRICKS_CLOUD","default":"aws","values":{"aws":"cloud.databricks.com","azure":"azuredatabricks.net","gcp":"gcp.databricks.com"}}) |
SELECT examples​
- get
Retrieves the current caller's effective session store permission. Returns
SELECT
permission,
principal
FROM databricks_workspace.agentkit.session_store_self_permission
WHERE session_store_id = '{{ session_store_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND workspace_domain = '{{ workspace_domain }}' -- required
;