title | description | author | localization_priority | ms.prod | doc_type |
---|---|---|---|---|---|
printer: getCapabilities |
Get a list of capabilities for the printer. |
braedenp-msft |
Normal |
universal-print |
apiPageType |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Get a list of capabilities for the printer.
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
To use the Universal Print service, the user or app's tenant must have an active Universal Print subscription, in addition to the permissions listed in the following table. The logged-in user must be a Print Administrator.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Printer.Read.All, Printer.ReadWrite.All, Printer.FullControl.All |
Delegated (personal Microsoft account) | Not Supported. |
Application | Not Supported. |
POST /print/printers/{id}/getCapabilities
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
If successful, this method returns a 200 OK
response code and a printerCapabilities object in the response body.
The following example shows how to call this API.
The following is an example of the request.
POST https://graph.microsoft.com/beta/print/printers/{id}/getCapabilities
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following is an example of the response.
Note: The response object shown here might be shortened for readability. All the properties will be returned from an actual call.
HTTP/1.1 200 OK
Content-type: application/json
Content-length: 1159
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#microsoft.graph.printerCapabilities",
"isColorPrintingSupported": true,
"supportsFitPdfToPage": false,
"supportedDocumentMimeTypes": [
"application/oxps"
],
"supportedFinishings": [
"none"
],
"supportedMediaColors": [],
"supportedMediaTypes": [],
"supportedMediaSizes": [
"North America Letter",
"North America Ledger",
"North America Legal",
"North America Invoice",
"North America Executive",
"A3",
"A4",
"A5",
"JIS B4",
"JIS B5"
],
"supportedOrientations": [
"portrait",
"landscape"
],
"supportedOutputBins": [
"tray-1"
],
"supportedDuplexConfigurations": [
"oneSided"
],
"supportedPresentationDirections": [],
"supportedColorConfigurations": [
"color"
],
"supportedPrintQualities": [
"medium"
],
"supportedPagesPerSheet": null,
"supportedCopiesPerJob": {
"minimum": 1,
"maximum": 1
}
}