SqlDataSourceService
using Skipcheck.Tm1.Client.Services; The ODBC data sources on TM1's host, which processes can read from
(DataSource.Type ODBC). They're the host's ODBC configuration, not
TM1's: read only here.
List the data sources:
// The ODBC sources a process could read from, on TM1's host
return tm1.SqlDataSources.ListAsync().Where(source => source.Name is not null).Select(source => source.Name!);
Members
SqlDataSourceService constructor | A service that sends its requests through session. |
ListAsync | GET SQLDataSources, streamed. |
GetAsync | GET SQLDataSources('name'). |
SqlDataSourceService
constructorSqlDataSourceService(Tm1Session session)A service that sends its requests through session.
ListAsync
IAsyncEnumerable<SQLDataSource> ListAsync(ODataQuery? query = null, CancellationToken cancellationToken = default)GET SQLDataSources, streamed.
TM1 REST EntitySet SQLDataSources
GetAsync
Task<SQLDataSource> GetAsync(string name, ODataQuery? query = null, CancellationToken cancellationToken = default)GET SQLDataSources('name').
TM1 REST EntitySet SQLDataSources