list_datasource_assets¶
- DatasourcesApi.list_datasource_assets(role_id, datasource_id, limit=None, offset=None, sortorder=None, sortby=None, projection_expression=None, filter_expression=None, pagination_mode=None, next_token=None, _request_timeout=None, _request_auth=None, _content_type=None, _headers=None, _host_index=0)¶
List assets in a datasource
Returns a paginated list of assets for amorphic, jdbc, or arcgis datasources.
- Parameters:
role_id (str) – (required)
datasource_id (str) – (required)
limit (str) – Page size. Defaults to 100. 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 on each asset item.
filter_expression (str) – Filter expression applied against AssetName.
pagination_mode (str) – Set to cursor to paginate with nextToken instead of offset.
next_token (str) – Cursor from the previous paginationMode=cursor response.
_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:
- Returns:
Returns the result object.
Request and Response Examples¶
HTTP: GET /datasources/{datasource_id}/assets
Success (HTTP 200)¶
Returns the assets list successfully
Errors¶
HTTP 400
Invalid input
HTTP 500
Something went wrong at backend