Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.74 KB

File metadata and controls

59 lines (38 loc) · 1.74 KB

FederatedSource

Method HTTP request Release Stage
list GET /gotham/v1/federatedSources Stable

list

:::callout{theme=warning title=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.

Parameters

Name Type Description Notes
preview Optional[PreviewMode] Represents a boolean value that restricts an endpoint to preview mode when set to true. [optional]

Return type

GetFederatedSourceResponse

Example

from gotham import GothamClient
import gotham
from pprint import pprint

client = GothamClient(auth=gotham.UserTokenAuth(...), hostname="example.palantirfoundry.com")

# Optional[PreviewMode] | Represents a boolean value that restricts an endpoint to preview mode when set to true.
preview = True


try:
    api_response = client.federated_sources.FederatedSource.list(preview=preview)
    print("The list response:\n")
    pprint(api_response)
except gotham.PalantirRPCException as e:
    print("HTTP error when calling FederatedSource.list: %s\n" % e)

Authorization

See README

HTTP response details

Status Code Type Description Content Type
200 GetFederatedSourceResponse A list of federated sources. application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]