Search documentation
karat

+

K

User Documentation ↗

List federated sources

GET/api/gotham/v1/federatedSources
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Get a list of all federated sources.

Query parameters

preview
boolean
optional

Represents a boolean value that restricts an endpoint to preview mode when set to true.

Response body

GetFederatedSourceResponse
object

A list of federated sources.

Hide children

Hide children

nextPageToken
string
optional

The page token indicates where to start paging. This should be omitted from the first page's request. To fetch the next page, clients should take the value from the nextPageToken field of the previous response and populate the next request's pageToken field with it.

data
list<FederatedSource>
optional
Show children

Show children

FederatedSource
object

Represents a federated source that is available for use in the system.

Show children

Show children

name
string

The name of a federated source.

displayName
string
optional

The display name of the federated source.

namespaces
list<Namespace>
optional

The namespaces of the federated source.

Show children

Show children

Namespace
object

Represents a namespace of a federated source.

Show children

Show children

name
string

A identity/name of a namespace of a federated source.

displayName
string

The properties of a namespace of a federated source.

queryShape
union
optional
Show children

Show children

not
object
optional

Returns objects where the query is not satisfied.

Show children

Show children

value
union
Show children

Show children

not
object
optional

Returns objects where the query is not satisfied.

Show children

Show children

value
union
or
object
optional

Returns objects where at least 1 query is satisfied.

Show children

Show children

value
list<FederatedSearchJsonQuery>
optional
Show children

Show children

FederatedSearchJsonQuery
union
and
object
optional

Returns objects where every query is satisfied.

Show children

Show children

value
list<FederatedSearchJsonQuery>
optional
Show children

Show children

FederatedSearchJsonQuery
union
term
object
optional

Returns objects where the specified field matches the value. The exact kind of matching depends on the data source.

Show children

Show children

field
string
value
any

Represents the value of a property. The following table provides expected representations of scalar data types:

TypeJSON encodingExample
DateISO 8601 extended local date string"2021-05-01"
Decimalstring"2.718281828"
Doublenumber3.14159265
Integernumber238940
Longstring"58319870951433"
Stringstring"Call me Ishmael"
TimestampISO 8601 extended offset date-time string in UTC zone"2021-01-04T05:00:00Z"
or
object
optional

Returns objects where at least 1 query is satisfied.

Show children

Show children

value
list<FederatedSearchJsonQuery>
optional
Show children

Show children

FederatedSearchJsonQuery
union
Show children

Show children

not
object
optional

Returns objects where the query is not satisfied.

Show children

Show children

value
union
or
object
optional

Returns objects where at least 1 query is satisfied.

Show children

Show children

value
list<FederatedSearchJsonQuery>
optional
Show children

Show children

FederatedSearchJsonQuery
union
and
object
optional

Returns objects where every query is satisfied.

Show children

Show children

value
list<FederatedSearchJsonQuery>
optional
Show children

Show children

FederatedSearchJsonQuery
union
term
object
optional

Returns objects where the specified field matches the value. The exact kind of matching depends on the data source.

Show children

Show children

field
string
value
any

Represents the value of a property. The following table provides expected representations of scalar data types:

TypeJSON encodingExample
DateISO 8601 extended local date string"2021-05-01"
Decimalstring"2.718281828"
Doublenumber3.14159265
Integernumber238940
Longstring"58319870951433"
Stringstring"Call me Ishmael"
TimestampISO 8601 extended offset date-time string in UTC zone"2021-01-04T05:00:00Z"
and
object
optional

Returns objects where every query is satisfied.

Show children

Show children

value
list<FederatedSearchJsonQuery>
optional
Show children

Show children

FederatedSearchJsonQuery
union
Show children

Show children

not
object
optional

Returns objects where the query is not satisfied.

Show children

Show children

value
union
or
object
optional

Returns objects where at least 1 query is satisfied.

Show children

Show children

value
list<FederatedSearchJsonQuery>
optional
Show children

Show children

FederatedSearchJsonQuery
union
and
object
optional

Returns objects where every query is satisfied.

Show children

Show children

value
list<FederatedSearchJsonQuery>
optional
Show children

Show children

FederatedSearchJsonQuery
union
term
object
optional

Returns objects where the specified field matches the value. The exact kind of matching depends on the data source.

Show children

Show children

field
string
value
any

Represents the value of a property. The following table provides expected representations of scalar data types:

TypeJSON encodingExample
DateISO 8601 extended local date string"2021-05-01"
Decimalstring"2.718281828"
Doublenumber3.14159265
Integernumber238940
Longstring"58319870951433"
Stringstring"Call me Ishmael"
TimestampISO 8601 extended offset date-time string in UTC zone"2021-01-04T05:00:00Z"
term
object
optional

Returns objects where the specified field matches the value. The exact kind of matching depends on the data source.

Show children

Show children

field
string
value
any

Represents the value of a property. The following table provides expected representations of scalar data types:

TypeJSON encodingExample
DateISO 8601 extended local date string"2021-05-01"
Decimalstring"2.718281828"
Doublenumber3.14159265
Integernumber238940
Longstring"58319870951433"
Stringstring"Call me Ishmael"
TimestampISO 8601 extended offset date-time string in UTC zone"2021-01-04T05:00:00Z"

Examples

Request

Copied!
1 2 3 curl \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/gotham/v1/federatedSources?preview=true"

Response

Copied!
1 2 3 4 5 6 7 8 [ { "name": "My Federated Source" }, { "name": "My Other Federated Source" } ]