scopes
Operations on a scopes
resource.
Overview
Name | scopes |
Type | Resource |
Id | databricks_workspace.secrets.scopes |
Fields
Name | Datatype |
---|---|
name | string |
backend_type | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
listscopes | SELECT | deployment_name | Lists all secret scopes available in the workspace. |
createscope | INSERT | deployment_name | The scope name must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters. |
deletescope | DELETE | deployment_name | Deletes a secret scope. |
SELECT
examples
SELECT
name,
backend_type
FROM databricks_workspace.secrets.scopes
WHERE deployment_name = '{{ deployment_name }}';
INSERT
example
Use the following StackQL query and manifest file to create a new scopes
resource.
- scopes
- Manifest
/*+ create */
INSERT INTO databricks_workspace.secrets.scopes (
deployment_name,
data__scope,
data__initial_manage_principal,
data__scope_backend_type
)
SELECT
'{{ deployment_name }}',
'{{ scope }}',
'{{ initial_manage_principal }}',
'{{ scope_backend_type }}'
;
- name: your_resource_model_name
props:
- name: scope
value: string
- name: initial_manage_principal
value: string
- name: scope_backend_type
value: DATABRICKS
DELETE
example
Deletes a scopes
resource.
/*+ delete */
DELETE FROM databricks_workspace.secrets.scopes
WHERE deployment_name = '{{ deployment_name }}';