Method | HTTP request |
---|---|
get | GET /v2/orchestration/scheduleVersions/{scheduleVersionRid} |
schedule | GET /v2/orchestration/scheduleVersions/{scheduleVersionRid}/schedule |
Get the ScheduleVersion with the specified rid.
Name | Type | Description | Notes |
---|---|---|---|
schedule_version_rid | ScheduleVersionRid | scheduleVersionRid | |
preview | Optional[PreviewMode] | preview | [optional] |
ScheduleVersion
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ScheduleVersionRid | scheduleVersionRid
schedule_version_rid = "ri.scheduler.main.schedule-version.4d1eb55f-6c13-411c-a911-5d84e08d8017"
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.orchestration.ScheduleVersion.get(
schedule_version_rid,
preview=preview,
)
print("The get response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling ScheduleVersion.get: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | ScheduleVersion | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Name | Type | Description | Notes |
---|---|---|---|
schedule_version_rid | ScheduleVersionRid | scheduleVersionRid | |
preview | Optional[PreviewMode] | preview | [optional] |
Schedule
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ScheduleVersionRid | scheduleVersionRid
schedule_version_rid = "ri.scheduler.main.schedule-version.4d1eb55f-6c13-411c-a911-5d84e08d8017"
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.orchestration.ScheduleVersion.schedule(
schedule_version_rid,
preview=preview,
)
print("The schedule response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling ScheduleVersion.schedule: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | Schedule | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]