Class DataSourcesAPI


  • @Generated
    public class DataSourcesAPI
    extends Object
    This API is provided to assist you in making new query objects. When creating a query object, you may optionally specify a `data_source_id` for the SQL warehouse against which it will run. If you don't already know the `data_source_id` for 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 `grep` to search the response from this API for the name of your SQL warehouse as it appears in Databricks SQL.

    • Constructor Detail

      • DataSourcesAPI

        public DataSourcesAPI​(ApiClient apiClient)
        Regular-use constructor
      • DataSourcesAPI

        public DataSourcesAPI​(DataSourcesService mock)
        Constructor for mocks
    • Method Detail

      • list

        public Iterable<DataSource> list()
        Get a list of SQL warehouses.

        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 `id` to create new queries against it.