Skip to main content

providers

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

Overview

Nameproviders
TypeResource
Iddatabricks_workspace.sharing.providers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the Provider.
data_provider_global_metastore_idstringThe global UC metastore id of the data provider. This field is only present when the __authentication_type__ is **DATABRICKS**. The identifier is of format __cloud__:__region__:__metastore-uuid__.
metastore_idstringUUID of the provider's UC metastore. This field is only present when the __authentication_type__ is **DATABRICKS**.
authentication_typestringThe delta sharing authentication type. (DATABRICKS, OAUTH_CLIENT_CREDENTIALS, OIDC_FEDERATION, TOKEN)
cloudstringCloud vendor of the provider's UC metastore. This field is only present when the __authentication_type__ is **DATABRICKS**.
commentstringDescription about the provider.
created_atintegerTime at which this Provider was created, in epoch milliseconds.
created_bystringUsername of Provider creator.
ownerstringUsername of Provider owner.
recipient_profileobjectThe recipient profile. This field is only present when the authentication_type is `TOKEN` or `OAUTH_CLIENT_CREDENTIALS`.
recipient_profile_strstringThis field is required when the __authentication_type__ is **TOKEN**, **OAUTH_CLIENT_CREDENTIALS** or not provided.
regionstringCloud region of the provider's UC metastore. This field is only present when the __authentication_type__ is **DATABRICKS**.
updated_atintegerTime at which this Provider was created, in epoch milliseconds.
updated_bystringUsername of user who last modified Provider.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectname, deployment_nameGets a specific authentication provider. The caller must supply the name of the provider, and must
listselectdeployment_namedata_provider_global_metastore_id, max_results, page_tokenGets an array of available authentication providers. The caller must either be a metastore admin, have
createinsertdeployment_name, name, authentication_typeCreates a new authentication provider minimally based on a name and authentication type. The caller
updateupdatename, deployment_nameUpdates the information for an authentication provider, if the caller is a metastore admin or is the
deletedeletename, deployment_nameDeletes an authentication provider, if the caller is a metastore admin or is the owner of the

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
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
namestringName of the provider.
data_provider_global_metastore_idstringIf not provided, all providers will be returned. If no providers exist with this ID, no results will be returned.
max_resultsintegerMaximum number of providers to return. - when set to 0, the page length is set to a server configured value (recommended); - when set to a value greater than 0, the page length is the minimum of this value and a server configured value; - when set to a value less than 0, an invalid parameter error is returned; - If not set, all valid providers are returned (not recommended). - Note: The number of returned providers might be less than the specified max_results size, even zero. The only definitive indication that no further providers can be fetched is when the next_page_token is unset from the response.
page_tokenstringOpaque pagination token to go to next page based on previous query.

SELECT examples

Gets a specific authentication provider. The caller must supply the name of the provider, and must

SELECT
name,
data_provider_global_metastore_id,
metastore_id,
authentication_type,
cloud,
comment,
created_at,
created_by,
owner,
recipient_profile,
recipient_profile_str,
region,
updated_at,
updated_by
FROM databricks_workspace.sharing.providers
WHERE name = '{{ name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;

INSERT examples

Creates a new authentication provider minimally based on a name and authentication type. The caller

INSERT INTO databricks_workspace.sharing.providers (
name,
authentication_type,
comment,
recipient_profile_str,
deployment_name
)
SELECT
'{{ name }}' /* required */,
'{{ authentication_type }}' /* required */,
'{{ comment }}',
'{{ recipient_profile_str }}',
'{{ deployment_name }}'
RETURNING
name,
data_provider_global_metastore_id,
metastore_id,
authentication_type,
cloud,
comment,
created_at,
created_by,
owner,
recipient_profile,
recipient_profile_str,
region,
updated_at,
updated_by
;

UPDATE examples

Updates the information for an authentication provider, if the caller is a metastore admin or is the

UPDATE databricks_workspace.sharing.providers
SET
comment = '{{ comment }}',
new_name = '{{ new_name }}',
owner = '{{ owner }}',
recipient_profile_str = '{{ recipient_profile_str }}'
WHERE
name = '{{ name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
RETURNING
name,
data_provider_global_metastore_id,
metastore_id,
authentication_type,
cloud,
comment,
created_at,
created_by,
owner,
recipient_profile,
recipient_profile_str,
region,
updated_at,
updated_by;

DELETE examples

Deletes an authentication provider, if the caller is a metastore admin or is the owner of the

DELETE FROM databricks_workspace.sharing.providers
WHERE name = '{{ name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
;