Skip to main content

service_principal_secrets

Creates, updates, deletes, gets or lists a service_principal_secrets resource.

Overview

Nameservice_principal_secrets
TypeResource
Iddatabricks_account.oauth.service_principal_secrets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring
create_timestring
secret_hashstring
statusstring
update_timestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectList all secrets associated with the given service principal. This operation only returns information about the secrets themselves and does not include the secret values.
createinsertCreate a secret for the given service principal.
deletedeleteDelete 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.

NameDatatypeDescription

SELECT examples

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 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
;

DELETE examples

Delete a secret from the given service principal.

DELETE FROM databricks_account.oauth.service_principal_secrets;