Scheduled Tasks
class Schedule
Subclass for managing scheduled tasks
python
api = mcsm.schedulemethod list(daemonId: str, uuid: str)
Retrieve list of scheduled tasks for an instance
Parameters
daemonId: Node IDuuid: Instance ID
Returns
list[ScheduleDetail]: List of scheduled tasks
method delete(daemonId: str, uuid: str, task_name: str)
Delete a scheduled task
Parameters
daemonId: Node IDuuid: Instance IDtask_name: Scheduled task name
Returns
bool: Success status
method create(daemonId: str, uuid: str, config: SchedulePostBody)
Create a scheduled task
Parameters
daemonId: Node IDuuid: Instance IDconfig: Scheduled task configuration
Returns
bool: Success status
method update(daemonId: str, uuid: str, config: SchedulePostBody)
Update scheduled task
Parameters
daemonId: Node IDuuid: Instance IDconfig: Scheduled task configuration
Returns
bool: Success status