The freezerclient.v1.managers.jobs Module

class freezerclient.v1.managers.jobs.JobManager(client, verify=True)[source]

Bases: object

abort_job(job_id)[source]

Request to abort a job

Parameters:job_id – the id of the job to start
Returns:the response obj: {
result: string ‘success’ or ‘already stopped’

}

create(doc, job_id='')[source]
delete(job_id)[source]
get(job_id)[source]
headers
list(limit=10, offset=0, search={}, client_id=None)[source]
list_all(limit=10, offset=0, search=None)[source]
start_job(job_id)[source]

Request to start a job

Parameters:job_id – the id of the job to start
Returns:the response obj: {
result: string ‘success’ or ‘already started’

}

stop_job(job_id)[source]

Request to stop a job

Parameters:job_id – the id of the job to start
Returns:the response obj: {
result: string ‘success’ or ‘already stopped’

}

update(job_id, update_doc)[source]