skipcheck

TM1 client · Docs · Processes and chores

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 constructorA service that sends its requests through session.
ListAsyncGET SQLDataSources, streamed.
GetAsyncGET SQLDataSources('name').

SqlDataSourceService

constructor
SqlDataSourceService(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