Connection
ConnectionInfo object
- namestring
Name of the connection.
- connection_typestring
The type of connection.
- ownerstring
Username of current owner of the connection.
- read_onlyboolean
If the connection is read only.
- commentstring
User-provided free-form text description.
- environment_settingsobjectPublic Preview
[Create,Update:OPT] Connection environment settings as EnvironmentSettings object.
Show child attributesHide child attributes
- java_dependenciesarray of stringPublic Preview
- environment_versionstringPublic Preview
- full_namestring
Full name of connection.
- urlstring
URL of the remote data source, extracted from options.
- credential_typestring
The type of credential.
- connection_idstring
Unique identifier of the Connection.
- metastore_idstring
Unique identifier of parent metastore.
- created_atint64
Time at which this connection was created, in epoch milliseconds.
- created_bystring
Username of connection creator.
- updated_atint64
Time at which this connection was updated, in epoch milliseconds.
- updated_bystring
Username of user who last modified connection.
- securable_typestring
- provisioning_infoobject
Show child attributesHide child attributes
- statestring
The provisioning state of the resource.
- optionsobject
A map of key-value properties attached to the securable.
- propertiesobject
A map of key-value properties attached to the securable.
Get GA
GET
Gets a connection from it's name.
API scopes: unity-catalog
Parameters
- name_argstringpath
Name of the connection.
Response
Returns the ConnectionInfo object.
List GA
GET
List all connections.
NOTE: we recommend using max_results=0 to use the paginated version of this API. Unpaginated calls will be deprecated soon.
PAGINATION BEHAVIOR: When using pagination (max_results >= 0), a page may contain zero results while still providing a next_page_token. Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
API scopes: unity-catalog
Parameters
- max_resultsint32query
Maximum number of connections to return.
- If not set, all connections are returned (not 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 0, the page length is set to a server configured value (recommended);
- when set to a value less than 0, an invalid parameter error is returned;
- page_tokenstringquery
Opaque pagination token to go to next page based on previous query.
- parentstringBetaquery
Optional. Parent schema filter for listing schema-level connections, in format "schemas/{catalog}.{schema}".
Response
Returns a list of ConnectionInfo objects.
Create GA
POST
Creates a new connection
Creates a new connection to an external data source. It allows users to specify connection details and configurations for interaction with the external server.
API scopes: unity-catalog
Creates a new connection
Creates a new connection to an external data source. It allows users to specify connection details and configurations for interaction with the external server.
Supported data sources for connections are listed here.
Creates a new connection
Creates a new connection to an external data source. It allows users to specify connection details and configurations for interaction with the external server.
Supported data sources for connections are listed here.
Creates a new connection
Creates a new connection to an external data source. It allows users to specify connection details and configurations for interaction with the external server.
Supported data sources for connections are listed here.
Request body
- parentstringBeta
Parent schema for schema-level connections, in format "schemas/{catalog}.{schema}". Absent for metastore-level (L1) connections.
- namestring
Name of the connection.
- connection_typestring
The type of connection.
- ownerstring
Username of current owner of the connection.
- read_onlyboolean
If the connection is read only.
- commentstring
User-provided free-form text description.
- environment_settingsobjectPublic Preview
[Create,Update:OPT] Connection environment settings as EnvironmentSettings object.
Show child attributesHide child attributes
- java_dependenciesarray of stringPublic Preview
- environment_versionstringPublic Preview
- full_namestring
Full name of connection.
- urlstring
URL of the remote data source, extracted from options.
- credential_typestring
The type of credential.
- connection_idstring
Unique identifier of the Connection.
- metastore_idstring
Unique identifier of parent metastore.
- created_atint64
Time at which this connection was created, in epoch milliseconds.
- created_bystring
Username of connection creator.
- updated_atint64
Time at which this connection was updated, in epoch milliseconds.
- updated_bystring
Username of user who last modified connection.
- securable_typestring
- provisioning_infoobject
Show child attributesHide child attributes
- statestring
The provisioning state of the resource.
- optionsobject
A map of key-value properties attached to the securable.
- propertiesobject
A map of key-value properties attached to the securable.
Response
Returns the ConnectionInfo object.
Update GA
PATCH
Updates the connection that matches the supplied name.
API scopes: unity-catalog
Parameters
- name_argstringpath
Name of the connection.
Request body
- new_namestring
New name for the connection.
- namestring
Name of the connection.
- connection_typestring
The type of connection.
- ownerstring
Username of current owner of the connection.
- read_onlyboolean
If the connection is read only.
- commentstring
User-provided free-form text description.
- environment_settingsobjectPublic Preview
[Create,Update:OPT] Connection environment settings as EnvironmentSettings object.
Show child attributesHide child attributes
- java_dependenciesarray of stringPublic Preview
- environment_versionstringPublic Preview
- full_namestring
Full name of connection.
- urlstring
URL of the remote data source, extracted from options.
- credential_typestring
The type of credential.
- connection_idstring
Unique identifier of the Connection.
- metastore_idstring
Unique identifier of parent metastore.
- created_atint64
Time at which this connection was created, in epoch milliseconds.
- created_bystring
Username of connection creator.
- updated_atint64
Time at which this connection was updated, in epoch milliseconds.
- updated_bystring
Username of user who last modified connection.
- securable_typestring
- provisioning_infoobject
Show child attributesHide child attributes
- statestring
The provisioning state of the resource.
- optionsobject
A map of key-value properties attached to the securable.
- propertiesobject
A map of key-value properties attached to the securable.
Response
Returns the ConnectionInfo object.
Delete GA
DELETE
Deletes the connection that matches the supplied name.
API scopes: unity-catalog
Parameters
- name_argstringpath
The name of the connection to be deleted.