unitycatalog.external_locations¶
The classes of the external_locations API.
Classes
| Name | Description |
|---|---|
ExternalLocationClient |
The requests on one ExternalLocationInfo. |
ExternalLocationInfo |
An external location: a storage path and the credential that gives access to it. |
ListExternalLocationsResponse |
class unitycatalog.external_locations.ExternalLocationClient¶
The requests on one ExternalLocationInfo.
delete(*, force: bool | None = None) → None¶
Delete an external location.
Parameters
- force (bool | None, optional) – Delete the external location even when tables, volumes or models use its path.
Async: delete_async(…) → Future[None]
get(*, include_browse: bool | None = None) → ExternalLocationInfo¶
Get an external location.
Parameters
- include_browse (bool | None, optional) – Also answer a caller who sees the external location through the
BROWSEprivilege only, with its discovery fields andbrowse_onlyset.
Returns
- ExternalLocationInfo – An external location: a storage path and the credential that gives access to it.
Async: get_async(…) → Future[ExternalLocationInfo]
update(*,url: str | None = None,new_name: str | None = None,comment: str | None = None,credential_name: str | None = None,owner: str | None = None,) → ExternalLocationInfo¶
Change an external location.
Parameters
- url (str | None, optional) – New URL of the storage path.
- new_name (str | None, optional) – New name of the external location.
- comment (str | None, optional) – User-provided free-form text description.
- credential_name (str | None, optional) – Name of the new credential that gives access to the path. It repairs an external location whose credential was deleted with
force. - owner (str | None, optional) – The owner of the external location. Accepted for compatibility with the upstream API; the owner does not change.
Returns
- ExternalLocationInfo – An external location: a storage path and the credential that gives access to it.
Async: update_async(…) → Future[ExternalLocationInfo]
class unitycatalog.external_locations.ExternalLocationInfo¶
An external location: a storage path and the credential that gives access to it.
Attributes
- browse_only (bool | None) – True when the external location has only the discovery fields that the
BROWSEprivilege allows. - comment (str | None) – User-provided free-form text description.
- created_at (int) – Time at which the external location was created, in epoch milliseconds.
- created_by (str | None) – Username of the creator of the external location.
- credential_id (str) – Unique identifier of the credential that gives access to the path.
- credential_name (str | None) – Name of the credential that gives access to the path. Absent when the credential was deleted with
force. - id (str) – Unique identifier of the external location.
- name (str) – Name of the external location.
- owner (str | None) – Username of the owner of the external location.
- updated_at (int) – Time at which the external location was last changed, in epoch milliseconds.
- updated_by (str | None) – Username of the user who last changed the external location.
- url (str) – URL of the storage path, such as
s3://bucket/path.
class unitycatalog.external_locations.ListExternalLocationsResponse¶
Attributes
- external_locations (list[ExternalLocationInfo]) – The external locations.
- next_page_token (str | None) – Opaque token of the next page. Absent on the last page.