Method | HTTP request |
---|---|
delete | DELETE /v2/thirdPartyApplications/{thirdPartyApplicationRid}/website/versions/{versionVersion} |
get | GET /v2/thirdPartyApplications/{thirdPartyApplicationRid}/website/versions/{versionVersion} |
list | GET /v2/thirdPartyApplications/{thirdPartyApplicationRid}/website/versions |
page | GET /v2/thirdPartyApplications/{thirdPartyApplicationRid}/website/versions |
upload | POST /v2/thirdPartyApplications/{thirdPartyApplicationRid}/website/versions/upload |
Delete the Version with the specified version.
Name | Type | Description | Notes |
---|---|---|---|
third_party_application_rid | ThirdPartyApplicationRid | thirdPartyApplicationRid | |
version_version | VersionVersion | versionVersion |
None
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 | versionVersion
version_version = "1.2.0"
try:
api_response = (
foundry_client.third_party_applications.ThirdPartyApplication.Website.Version.delete(
third_party_application_rid,
version_version,
)
)
print("The delete response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Version.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]
Get the Version with the specified version.
Name | Type | Description | Notes |
---|---|---|---|
third_party_application_rid | ThirdPartyApplicationRid | thirdPartyApplicationRid | |
version_version | VersionVersion | versionVersion |
Version
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 | versionVersion
version_version = "1.2.0"
try:
api_response = (
foundry_client.third_party_applications.ThirdPartyApplication.Website.Version.get(
third_party_application_rid,
version_version,
)
)
print("The get response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Version.get: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | Version | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Lists all Versions.
This is a paged endpoint. Each page may be smaller or larger than the requested page size. However, it is guaranteed that if there are more results available, the nextPageToken
field will be populated. To get the next page, make the same request again, but set the value of the pageToken
query parameter to be value of the nextPageToken
value of the previous response. If there is no nextPageToken
field in the response, you are on the last page.
Name | Type | Description | Notes |
---|---|---|---|
third_party_application_rid | ThirdPartyApplicationRid | thirdPartyApplicationRid | |
page_size | Optional[PageSize] | pageSize | [optional] |
page_token | Optional[PageToken] | pageToken | [optional] |
ResourceIterator[Version]
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"
)
# Optional[PageSize] | pageSize
page_size = None
# Optional[PageToken] | pageToken
page_token = None
try:
for (
version
) in foundry_client.third_party_applications.ThirdPartyApplication.Website.Version.list(
third_party_application_rid,
page_size=page_size,
page_token=page_token,
):
pprint(version)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Version.list: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | ListVersionsResponse | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Lists all Versions.
This is a paged endpoint. Each page may be smaller or larger than the requested page size. However, it is guaranteed that if there are more results available, the nextPageToken
field will be populated. To get the next page, make the same request again, but set the value of the pageToken
query parameter to be value of the nextPageToken
value of the previous response. If there is no nextPageToken
field in the response, you are on the last page.
Name | Type | Description | Notes |
---|---|---|---|
third_party_application_rid | ThirdPartyApplicationRid | thirdPartyApplicationRid | |
page_size | Optional[PageSize] | pageSize | [optional] |
page_token | Optional[PageToken] | pageToken | [optional] |
ListVersionsResponse
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"
)
# Optional[PageSize] | pageSize
page_size = None
# Optional[PageToken] | pageToken
page_token = None
try:
api_response = (
foundry_client.third_party_applications.ThirdPartyApplication.Website.Version.page(
third_party_application_rid,
page_size=page_size,
page_token=page_token,
)
)
print("The page response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Version.page: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | ListVersionsResponse | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Upload a new version of the Website.
Name | Type | Description | Notes |
---|---|---|---|
third_party_application_rid | ThirdPartyApplicationRid | thirdPartyApplicationRid | |
body | bytes | The zip file that contains the contents of your application. For more information, refer to the documentation user documentation. | |
version | VersionVersion | version |
Version
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"
)
# bytes | The zip file that contains the contents of your application. For more information, refer to the [documentation](/docs/foundry/ontology-sdk/deploy-osdk-application-on-foundry/) user documentation.
body = None
# VersionVersion | version
version = None
try:
api_response = (
foundry_client.third_party_applications.ThirdPartyApplication.Website.Version.upload(
third_party_application_rid,
body,
version=version,
)
)
print("The upload response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Version.upload: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | Version | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Upload a snapshot version of the Website. Snapshot versions are automatically deleted after two days.
Name | Type | Description | Notes |
---|---|---|---|
third_party_application_rid | ThirdPartyApplicationRid | thirdPartyApplicationRid | |
body | bytes | The zip file that contains the contents of your application. For more information, refer to the documentation user documentation. | |
version | VersionVersion | version | |
preview | Optional[PreviewMode] | preview | [optional] |
snapshot_identifier | Optional[str] | snapshotIdentifier | [optional] |
Version
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"
)
# bytes | The zip file that contains the contents of your application. For more information, refer to the [documentation](/docs/foundry/ontology-sdk/deploy-osdk-application-on-foundry/) user documentation.
body = None
# VersionVersion | version
version = None
# Optional[PreviewMode] | preview
preview = None
# Optional[str] | snapshotIdentifier
snapshot_identifier = (
"[email protected]@ri.pull-request.main.pull-request.a@hash"
)
try:
api_response = foundry_client.third_party_applications.ThirdPartyApplication.Website.Version.upload_snapshot(
third_party_application_rid,
body,
version=version,
preview=preview,
snapshot_identifier=snapshot_identifier,
)
print("The upload_snapshot response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Version.upload_snapshot: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | Version | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]