scheduled_tasks_controller = client.scheduled_tasks
ScheduledTasksController
Get task by id.
def get_task(self,
task_id)
Parameter |
Type |
Tags |
Description |
task_id |
string |
Template, Required |
Task Id. |
TaskInfo
task_id = 'taskId4'
result = scheduled_tasks_controller.get_task(task_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Task not found. |
ProblemDetailsException |
Get tasks.
def get_tasks(self,
is_hidden=None,
is_enabled=None)
Parameter |
Type |
Tags |
Description |
is_hidden |
bool |
Query, Optional |
Optional filter tasks that are hidden, or not. |
is_enabled |
bool |
Query, Optional |
Optional filter tasks that are enabled, or not. |
List of TaskInfo
result = scheduled_tasks_controller.get_tasks()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Start specified task.
def start_task(self,
task_id)
Parameter |
Type |
Tags |
Description |
task_id |
string |
Template, Required |
Task Id. |
void
task_id = 'taskId4'
result = scheduled_tasks_controller.start_task(task_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Task not found. |
ProblemDetailsException |
Stop specified task.
def stop_task(self,
task_id)
Parameter |
Type |
Tags |
Description |
task_id |
string |
Template, Required |
Task Id. |
void
task_id = 'taskId4'
result = scheduled_tasks_controller.stop_task(task_id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Task not found. |
ProblemDetailsException |
Update specified task triggers.
def update_task(self,
task_id,
body)
Parameter |
Type |
Tags |
Description |
task_id |
string |
Template, Required |
Task Id. |
body |
List of TaskTriggerInfo |
Body, Required |
Triggers. |
void
task_id = 'taskId4'
body = []
body.append(TaskTriggerInfo())
body.append(TaskTriggerInfo())
result = scheduled_tasks_controller.update_task(task_id, body)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Task not found. |
ProblemDetailsException |