service_principal_secrets
Creates, updates, deletes, gets or lists a service_principal_secrets resource.
Overview
| Name | service_principal_secrets |
| Type | Resource |
| Id | databricks_account.oauth.service_principal_secrets |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
id | string | |
create_time | string | |
secret_hash | string | |
status | string | |
update_time | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | List all secrets associated with the given service principal. This operation only returns information about the secrets themselves and does not include the secret values. | ||
create | insert | Create a secret for the given service principal. | ||
delete | delete | Delete a secret from the given service principal. |
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 |
|---|
SELECT examples
- list
List all secrets associated with the given service principal. This operation only returns information about the secrets themselves and does not include the secret values.
SELECT
id,
create_time,
secret_hash,
status,
update_time
FROM databricks_account.oauth.service_principal_secrets;
INSERT examples
- create
- Manifest
Create a secret for the given service principal.
INSERT INTO databricks_account.oauth.service_principal_secrets (
)
SELECT
RETURNING
id,
create_time,
secret,
secret_hash,
status,
update_time
;
# Description fields are for documentation purposes
- name: service_principal_secrets
props:
DELETE examples
- delete
Delete a secret from the given service principal.
DELETE FROM databricks_account.oauth.service_principal_secrets;