Skip to content

Files

Latest commit

 

History

History
117 lines (80 loc) · 3.14 KB

ScheduleVersion.md

File metadata and controls

117 lines (80 loc) · 3.14 KB

ScheduleVersion

Method HTTP request
get GET /v2/orchestration/scheduleVersions/{scheduleVersionRid}
schedule GET /v2/orchestration/scheduleVersions/{scheduleVersionRid}/schedule

get

Get the ScheduleVersion with the specified rid.

Parameters

Name Type Description Notes
schedule_version_rid ScheduleVersionRid scheduleVersionRid
preview Optional[PreviewMode] preview [optional]

Return type

ScheduleVersion

Example

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)

Authorization

See README

HTTP response details

Status Code Type Description Content Type
200 ScheduleVersion application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

schedule

Parameters

Name Type Description Notes
schedule_version_rid ScheduleVersionRid scheduleVersionRid
preview Optional[PreviewMode] preview [optional]

Return type

Schedule

Example

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)

Authorization

See README

HTTP response details

Status Code Type Description Content Type
200 Schedule application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]