Skip to main content

postgres_credentials

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

Overview

Namepostgres_credentials
TypeResource
Iddatabricks_workspace.postgres.postgres_credentials

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
generateexecdeployment_name, endpointGenerate OAuth credentials for a Postgres database.

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)

Lifecycle Methods

Generate OAuth credentials for a Postgres database.

EXEC databricks_workspace.postgres.postgres_credentials.generate 
@deployment_name='{{ deployment_name }}' --required
@@json=
'{
"endpoint": "{{ endpoint }}",
"claims": "{{ claims }}"
}'
;