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 | |
preview | Optional[PreviewMode] | preview | [optional] |
None
from foundry.v2 import FoundryClient
from foundry import PalantirRPCException
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"
# Optional[PreviewMode] | preview
preview = None
try:
api_response = (
foundry_client.third_party_applications.ThirdPartyApplication.Website.Version.delete(
third_party_application_rid,
version_version,
preview=preview,
)
)
print("The delete response:\n")
pprint(api_response)
except 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 | |
preview | Optional[PreviewMode] | preview | [optional] |
Version
from foundry.v2 import FoundryClient
from foundry import PalantirRPCException
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"
# Optional[PreviewMode] | preview
preview = None
try:
api_response = (
foundry_client.third_party_applications.ThirdPartyApplication.Website.Version.get(
third_party_application_rid,
version_version,
preview=preview,
)
)
print("The get response:\n")
pprint(api_response)
except 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] |
preview | Optional[PreviewMode] | preview | [optional] |
ResourceIterator[Version]
from foundry.v2 import FoundryClient
from foundry import PalantirRPCException
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[PreviewMode] | preview
preview = None
try:
for (
version
) in foundry_client.third_party_applications.ThirdPartyApplication.Website.Version.list(
third_party_application_rid,
page_size=page_size,
preview=preview,
):
pprint(version)
except 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] |
preview | Optional[PreviewMode] | preview | [optional] |
ListVersionsResponse
from foundry.v2 import FoundryClient
from foundry import PalantirRPCException
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
# Optional[PreviewMode] | preview
preview = 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,
preview=preview,
)
)
print("The page response:\n")
pprint(api_response)
except 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 | |
preview | Optional[PreviewMode] | preview | [optional] |
Version
from foundry.v2 import FoundryClient
from foundry import PalantirRPCException
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
try:
api_response = (
foundry_client.third_party_applications.ThirdPartyApplication.Website.Version.upload(
third_party_application_rid,
body,
version=version,
preview=preview,
)
)
print("The upload response:\n")
pprint(api_response)
except 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]