w.data_sources: Data Sources (deprecated)¶
- class databricks.sdk.service.sql.DataSourcesAPI¶
This API is provided to assist you in making new query objects. When creating a query object, you may optionally specify a
data_source_idfor the SQL warehouse against which it will run. If you don’t already know thedata_source_idfor your desired SQL warehouse, this API will help you find it.This API does not support searches. It returns the full list of SQL warehouses in your workspace. We advise you to use any text editor, REST client, or
grepto search the response from this API for the name of your SQL warehouse as it appears in Databricks SQL.Warning: This API is deprecated. Please see the latest version of the Databricks SQL API. Learn more
- list() Iterator[DataSource]¶
Usage:
from databricks.sdk import WorkspaceClient w = WorkspaceClient() srcs = w.data_sources.list()
Retrieves a full list of SQL warehouses available in this workspace. All fields that appear in this API response are enumerated for clarity. However, you need only a SQL warehouse’s
idto create new queries against it.Warning: This API is deprecated. Please use :method:warehouses/list instead. Learn more
- Returns:
Iterator over
DataSource