Method | HTTP request |
---|---|
deploy | POST /v2/thirdPartyApplications/{thirdPartyApplicationRid}/website/deploy |
get | GET /v2/thirdPartyApplications/{thirdPartyApplicationRid}/website |
undeploy | POST /v2/thirdPartyApplications/{thirdPartyApplicationRid}/website/undeploy |
Deploy a version of the Website.
Name | Type | Description | Notes |
---|---|---|---|
third_party_application_rid | ThirdPartyApplicationRid | thirdPartyApplicationRid | |
version | VersionVersion |
Website
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ThirdPartyApplicationRid | thirdPartyApplicationRid
third_party_application_rid = (
"ri.third-party-applications.main.application.292db3b2-b653-4de6-971c-7e97a7b881d6"
)
# VersionVersion |
version = "1.2.0"
try:
api_response = foundry_client.third_party_applications.ThirdPartyApplication.Website.deploy(
third_party_application_rid,
version=version,
)
print("The deploy response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Website.deploy: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | Website | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Get the Website.
Name | Type | Description | Notes |
---|---|---|---|
third_party_application_rid | ThirdPartyApplicationRid | thirdPartyApplicationRid |
Website
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ThirdPartyApplicationRid | thirdPartyApplicationRid
third_party_application_rid = (
"ri.third-party-applications.main.application.292db3b2-b653-4de6-971c-7e97a7b881d6"
)
try:
api_response = foundry_client.third_party_applications.ThirdPartyApplication.Website.get(
third_party_application_rid,
)
print("The get response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Website.get: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | Website | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Remove the currently deployed version of the Website.
Name | Type | Description | Notes |
---|---|---|---|
third_party_application_rid | ThirdPartyApplicationRid | thirdPartyApplicationRid |
Website
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ThirdPartyApplicationRid | thirdPartyApplicationRid
third_party_application_rid = (
"ri.third-party-applications.main.application.292db3b2-b653-4de6-971c-7e97a7b881d6"
)
try:
api_response = foundry_client.third_party_applications.ThirdPartyApplication.Website.undeploy(
third_party_application_rid,
)
print("The undeploy response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Website.undeploy: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | Website | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]