Job.get([jobAttr,...], string selectionCriteria)
Use this call to see the specified attributes for the jobs that match the selection
criteria.
Parameters
Parameter | Description |
JobAttr,... | Job attributes you want returned, such as Job.InputFile. |
selectionCriteria | Job attributes you to filter by, such as Job.ID. |
Returns
This call returns the specified attributes for the jobs that match the selection criteria. It also returns a core set of job attributes of Job.State, Type, Job.ID, Job.RowType, and Job.Phase.
Example
from ConnectDefs import * import xmlrpclib myProxy = None try: myProxy = connectLogin("AcmeServer", "aiw", "password") myJobData = myProxy.Job.get(["Job.InputFile"], "Job.ID < 10000002") print myJobData except xmlrpcFault, err: print err.faultString + " (" + str(err.faultCode) + ")" finally: connectLogout(myProxy, "aiw") [{'Job.State': 'Unassigned', 'Type': 'Job', 'Job.ID': '10000000', 'Job. RowType.Job': 'Job', 'Job.InputFile': 'Demo.afp', 'Job.Phase': 'Print'}, {'Job.State': 'Unassigned', 'Type': 'Job', 'Job.ID': '10000001', 'Job. RowType.Job': 'Job', 'Job.InputFile': 'Demo.afp', 'Job.Phase': 'Print'}]