printTaskDefinition 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 an abstract definition for a task that can be triggered when various events occur within Universal Print.

For details about how to use this resource to add pull printing support to Universal Print, see Extending Universal Print to support pull printing.

This resource supports:

Methods

Method Return Type Description
List printTaskDefinition collection Get a complete list of printTaskDefinitions created within Universal Print.
Create printTaskDefinition Create a new printTaskDefinition.
Update printTaskDefinition Update a printTaskDefinition.
Delete None Delete a printTaskDefinition.
List tasks printTask Get a list of tasks that have been created based on this definition. The list includes currently running tasks and recently completed tasks.
Get task printTask Gets a task that has been created based on this definition.
Update task printTask Update a task that has been created based on this definition. Applications that register task triggers are responsible for updating task status when processing is finished, unless the related printJob has been redirected to another printer. Failure to report completion will result in the related print job being blocked from printing and eventually deleted.

Properties

Property Type Description
id String The printTaskDefinition's identifier. Read-only.
displayName String The name of the printTaskDefinition.
createdBy appIdentity The application that created the printTaskDefinition. Read-only.

Relationships

Relationship Type Description
tasks printTask collection A list of tasks that have been created based on this definition. The list includes currently running tasks and recently completed tasks. Read-only.

JSON representation

The following is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.printTaskDefinition",
  "id": "String (identifier)",
  "displayName": "String",
  "createdBy": {
    "@odata.type": "microsoft.graph.appIdentity"
  }
}