Skip to main content

provider_shares

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

Overview

Nameprovider_shares
TypeResource
Iddatabricks_workspace.sharing.provider_shares

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_sharesselectname, deployment_namemax_results, page_tokenGets an array of a specified provider's shares within the metastore where:

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 in which to list shares.
max_resultsintegerMaximum number of shares 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 shares are returned (not recommended). - Note: The number of returned shares might be less than the specified max_results size, even zero. The only definitive indication that no further shares 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 an array of a specified provider's shares within the metastore where:

SELECT
name
FROM databricks_workspace.sharing.provider_shares
WHERE name = '{{ name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND max_results = '{{ max_results }}'
AND page_token = '{{ page_token }}'
;