Skip to main content

providers

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

Overview

Nameproviders
TypeResource
Iddatabricks_workspace.deltasharing.providers

Fields

The following fields are returned by SELECT queries:

The provider was successfully retrieved.

NameDatatypeDescription
namestring
data_provider_global_metastore_idstring
metastore_idstring
authentication_typestring
cloudstring
commentstring
created_atinteger
created_bystring
ownerstring
recipient_profileobject
recipient_profile_strstring
regionstring
updated_atinteger
updated_bystring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeployment_nameGets a specific authentication provider. The caller must supply the name of the provider, and must either be a metastore admin or the owner of the provider.
listselectdeployment_nameGets an array of available authentication providers. The caller must either be a metastore admin or the owner of the providers. Providers not owned by the caller are not included in the response. There is no guarantee of a specific ordering of the elements in the array.
createinsertdeployment_nameCreates a new authentication provider minimally based on a name and authentication type. The caller must be an admin on the metastore.
updateupdatedeployment_nameUpdates the information for an authentication provider, if the caller is a metastore admin or is the owner of the provider. If the update changes the provider name, the caller must be both a metastore admin and the owner of the provider.
deletedeletedeployment_nameDeletes an authentication provider, if the caller is a metastore admin or is the owner of the provider.

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)

SELECT examples

Gets a specific authentication provider. The caller must supply the name of the provider, and must either be a metastore admin or the owner of the provider.

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.deltasharing.providers
WHERE deployment_name = '{{ deployment_name }}' -- required;

INSERT examples

Creates a new authentication provider minimally based on a name and authentication type. The caller must be an admin on the metastore.

INSERT INTO databricks_workspace.deltasharing.providers (
data__name,
data__authentication_type,
data__comment,
data__recipient_profile_str,
deployment_name
)
SELECT
'{{ name }}',
'{{ authentication_type }}',
'{{ 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 owner of the provider. If the update changes the provider name, the caller must be both a metastore admin and the owner of the provider.

UPDATE databricks_workspace.deltasharing.providers
SET
data__recipient_profile_str = '{{ recipient_profile_str }}',
data__comment = '{{ comment }}',
data__owner = '{{ owner }}',
data__new_name = '{{ new_name }}'
WHERE
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 provider.

DELETE FROM databricks_workspace.deltasharing.providers
WHERE deployment_name = '{{ deployment_name }}' --required;