list_datasources

DatasourcesApi.list_datasources(role_id, action=None, limit=None, offset=None, sortorder=None, sortby=None, projection_expression=None, filter_expression=None, request_type=None, _request_timeout=None, _request_auth=None, _content_type=None, _headers=None, _host_index=0)

Get all datasources user access to

Returns a list of datasources of which the user is owner, editor or has viewer access. Use action=get-ca-upload-url to get a CA certificate upload presigned URL response. Use request_type=versions to get available datasource versions, or request_type=ingestion_types to get supported ingestion types per datasource type.

Parameters:
  • role_id (str) – (required)

  • action (str) – Optional action. Use get-ca-upload-url to return a CA upload presigned URL and DatasourceId.

  • limit (str) – Page size. Defaults to 500. Maximum allowed is 1000.

  • offset (str) – 1-based page offset. Defaults to first page when omitted.

  • sortorder (str) – Sort order. Defaults to desc.

  • sortby (str) – Attribute to sort by. Defaults to LastModifiedTime.

  • projection_expression (str) – Comma-separated list of attributes to include in each datasource item.

  • filter_expression (str) – Filter expression applied against DatasourceName.

  • request_type (str) – Use versions or ingestion_types for alternate responses. When omitted, returns the paginated datasources list.

  • _request_timeout (int, tuple(int, int), optional) – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

  • _content_type (str, Optional) – force content-type for the request.

  • _headers (dict, optional) – set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.

  • _host_index (int, optional) – set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.

Return type:

ListDatasources200Response

Returns:

Returns the result object.

Request and Response Examples

HTTP: GET /datasources

Success (HTTP 200)

Successful API response

Errors

HTTP 400

Invalid input

HTTP 500

Something went wrong at backend