printJob resource type

Namespace: microsoft.graph

Important

Microsoft is offering usage of the cloud printing APIs to manage Universal Print at no charge and there are no foreseeable plans to charge for the use of these APIs.

Represents a print job that has been queued for a printer.

Methods

Method Return Type Description
Get printJob Read properties and relationships of printJob object.
Create printJob Create a new print job object.
Update printJob Update a print job object.
Start None Start the print job.
Cancel None Cancel the print job.
Abort None Abort the print job.
Redirect (to another printer) printJob A print job that is queued for the destination printer.

Properties

Property Type Description
id String The printer's GUID. Read-only.
createdDateTime DateTimeOffset The DateTimeOffset when the job was created. Read-only.
status printJobStatus The status of the print job. Read-only.
configuration printJobConfiguration A group of settings that a printer should use to print a job.
isFetchable Edm.Boolean If true, document can be fetched by printer.
redirectedFrom Edm.String Contains the source job URL, if the job has been redirected from another printer.
redirectedTo Edm.String Contains the destination job URL, if the job has been redirected to another printer.
createdBy userIdentity Read-only. Nullable.

Relationships

Relationship Type Description
documents printDocument collection Read-only.
tasks printTask collection A list of printTasks that were triggered by this print job.

JSON representation

The following is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.printJob",
  "id": "String (identifier)",
  "createdDateTime": "String (timestamp)",
  "status": {
    "@odata.type": "microsoft.graph.printJobStatus"
  },
  "createdBy": {
    "@odata.type": "microsoft.graph.userIdentity"
  },
  "configuration": {
    "@odata.type": "microsoft.graph.printJobConfiguration"
  },
  "redirectedTo": "String",
  "redirectedFrom": "String",
  "isFetchable": "Boolean"
}