Method | HTTP request |
---|---|
get | GET /v2/orchestration/schedules/{scheduleRid} |
pause | POST /v2/orchestration/schedules/{scheduleRid}/pause |
run | POST /v2/orchestration/schedules/{scheduleRid}/run |
unpause | POST /v2/orchestration/schedules/{scheduleRid}/unpause |
Get the Schedule with the specified rid.
Name | Type | Description | Notes |
---|---|---|---|
schedule_rid | ScheduleRid | scheduleRid | |
preview | Optional[PreviewMode] | preview | [optional] |
Schedule
from foundry.v2 import FoundryClient
from foundry import PalantirRPCException
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ScheduleRid | scheduleRid
schedule_rid = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.orchestration.Schedule.get(
schedule_rid,
preview=preview,
)
print("The get response:\n")
pprint(api_response)
except PalantirRPCException as e:
print("HTTP error when calling Schedule.get: %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]
Name | Type | Description | Notes |
---|---|---|---|
schedule_rid | ScheduleRid | scheduleRid | |
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"
)
# ScheduleRid | scheduleRid
schedule_rid = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.orchestration.Schedule.pause(
schedule_rid,
preview=preview,
)
print("The pause response:\n")
pprint(api_response)
except PalantirRPCException as e:
print("HTTP error when calling Schedule.pause: %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]
Name | Type | Description | Notes |
---|---|---|---|
schedule_rid | ScheduleRid | scheduleRid | |
preview | Optional[PreviewMode] | preview | [optional] |
ScheduleRun
from foundry.v2 import FoundryClient
from foundry import PalantirRPCException
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# ScheduleRid | scheduleRid
schedule_rid = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.orchestration.Schedule.run(
schedule_rid,
preview=preview,
)
print("The run response:\n")
pprint(api_response)
except PalantirRPCException as e:
print("HTTP error when calling Schedule.run: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | ScheduleRun | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Name | Type | Description | Notes |
---|---|---|---|
schedule_rid | ScheduleRid | scheduleRid | |
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"
)
# ScheduleRid | scheduleRid
schedule_rid = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.orchestration.Schedule.unpause(
schedule_rid,
preview=preview,
)
print("The unpause response:\n")
pprint(api_response)
except PalantirRPCException as e:
print("HTTP error when calling Schedule.unpause: %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]