Method | HTTP request |
---|---|
create | POST /v2/connectivity/connections/{connectionRid}/tableImports |
delete | DELETE /v2/connectivity/connections/{connectionRid}/tableImports/{tableImportRid} |
execute | POST /v2/connectivity/connections/{connectionRid}/tableImports/{tableImportRid}/execute |
get | GET /v2/connectivity/connections/{connectionRid}/tableImports/{tableImportRid} |
list | GET /v2/connectivity/connections/{connectionRid}/tableImports |
page | GET /v2/connectivity/connections/{connectionRid}/tableImports |
Creates a new TableImport.
Name | Type | Description | Notes |
---|---|---|---|
connection_rid | ConnectionRid | connectionRid | |
config | CreateTableImportRequestTableImportConfigDict | ||
dataset_rid | DatasetRid | The RID of the output dataset. | |
display_name | TableImportDisplayName | ||
import_mode | TableImportMode | ||
allow_schema_changes | Optional[TableImportAllowSchemaChanges] | Allow the TableImport to succeed if the schema of imported rows does not match the existing dataset's schema. Defaults to false for new table imports. | [optional] |
branch_name | Optional[BranchName] | The branch name in the output dataset that will contain the imported data. Defaults to master for most enrollments. |
[optional] |
preview | Optional[PreviewMode] | preview | [optional] |
TableImport
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ConnectionRid | connectionRid
connection_rid = None
# CreateTableImportRequestTableImportConfigDict |
config = None
# DatasetRid | The RID of the output dataset.
dataset_rid = "ri.foundry.main.dataset.c26f11c8-cdb3-4f44-9f5d-9816ea1c82da"
# TableImportDisplayName |
display_name = "My table import"
# TableImportMode |
import_mode = "SNAPSHOT"
# Optional[TableImportAllowSchemaChanges] | Allow the TableImport to succeed if the schema of imported rows does not match the existing dataset's schema. Defaults to false for new table imports.
allow_schema_changes = True
# Optional[BranchName] | The branch name in the output dataset that will contain the imported data. Defaults to `master` for most enrollments.
branch_name = "master"
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.connectivity.Connection.TableImport.create(
connection_rid,
config=config,
dataset_rid=dataset_rid,
display_name=display_name,
import_mode=import_mode,
allow_schema_changes=allow_schema_changes,
branch_name=branch_name,
preview=preview,
)
print("The create response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling TableImport.create: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | TableImport | The created TableImport | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Delete the TableImport with the specified RID. Deleting the table import does not delete the destination dataset but the dataset will no longer be updated by this import.
Name | Type | Description | Notes |
---|---|---|---|
connection_rid | ConnectionRid | connectionRid | |
table_import_rid | TableImportRid | tableImportRid | |
preview | Optional[PreviewMode] | preview | [optional] |
None
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ConnectionRid | connectionRid
connection_rid = None
# TableImportRid | tableImportRid
table_import_rid = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.connectivity.Connection.TableImport.delete(
connection_rid,
table_import_rid,
preview=preview,
)
print("The delete response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling TableImport.delete: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
204 | None | None |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Executes the TableImport, which runs asynchronously as a Foundry Build. The returned BuildRid can be used to check the status via the Orchestration API.
Name | Type | Description | Notes |
---|---|---|---|
connection_rid | ConnectionRid | connectionRid | |
table_import_rid | TableImportRid | tableImportRid | |
preview | Optional[PreviewMode] | preview | [optional] |
BuildRid
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ConnectionRid | connectionRid
connection_rid = None
# TableImportRid | tableImportRid
table_import_rid = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.connectivity.Connection.TableImport.execute(
connection_rid,
table_import_rid,
preview=preview,
)
print("The execute response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling TableImport.execute: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | BuildRid | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Get the TableImport with the specified rid.
Name | Type | Description | Notes |
---|---|---|---|
connection_rid | ConnectionRid | connectionRid | |
table_import_rid | TableImportRid | tableImportRid | |
preview | Optional[PreviewMode] | preview | [optional] |
TableImport
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ConnectionRid | connectionRid
connection_rid = None
# TableImportRid | tableImportRid
table_import_rid = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.connectivity.Connection.TableImport.get(
connection_rid,
table_import_rid,
preview=preview,
)
print("The get response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling TableImport.get: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | TableImport | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Lists all table imports defined for this connection. Only table imports that the user has permissions to view will be returned.
Name | Type | Description | Notes |
---|---|---|---|
connection_rid | ConnectionRid | connectionRid | |
page_size | Optional[PageSize] | pageSize | [optional] |
page_token | Optional[PageToken] | pageToken | [optional] |
preview | Optional[PreviewMode] | preview | [optional] |
ResourceIterator[TableImport]
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ConnectionRid | connectionRid
connection_rid = None
# Optional[PageSize] | pageSize
page_size = None
# Optional[PageToken] | pageToken
page_token = None
# Optional[PreviewMode] | preview
preview = None
try:
for table_import in foundry_client.connectivity.Connection.TableImport.list(
connection_rid,
page_size=page_size,
page_token=page_token,
preview=preview,
):
pprint(table_import)
except foundry.PalantirRPCException as e:
print("HTTP error when calling TableImport.list: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | ListTableImportsResponse | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Lists all table imports defined for this connection. Only table imports that the user has permissions to view will be returned.
Name | Type | Description | Notes |
---|---|---|---|
connection_rid | ConnectionRid | connectionRid | |
page_size | Optional[PageSize] | pageSize | [optional] |
page_token | Optional[PageToken] | pageToken | [optional] |
preview | Optional[PreviewMode] | preview | [optional] |
ListTableImportsResponse
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ConnectionRid | connectionRid
connection_rid = None
# Optional[PageSize] | pageSize
page_size = None
# Optional[PageToken] | pageToken
page_token = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.connectivity.Connection.TableImport.page(
connection_rid,
page_size=page_size,
page_token=page_token,
preview=preview,
)
print("The page response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling TableImport.page: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | ListTableImportsResponse | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]