> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Device Maintenance Windows

Get all maintenance windows for a given device by its ID.

<Note>
  External Documentation

  To learn more, visit the [N-able N-Central documentation](https://developer.n-able.com/n-central/reference/getmaintenancewindowsbydeviceid).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                                        |
  | --------- | ---------------------------------------------------------------------------------- |
  | Device ID | The ID of the required device. Can be obtained by using the `List Devices` action. |
</div>

## Example Output

```json theme={"dark"}
{
	"data": [
		{
			"scheduleID": 123456789,
			"userName": "admin",
			"lastUpdated": "2021-09-01T00:00:00Z",
			"applicableAction": [
				{
					"type": "Patch",
					"actions": [
						{
							"Key": "reboot",
							"Value": null
						}
					]
				}
			],
			"name": "Test Maintenance Window",
			"type": "action",
			"cron": "0 0 0 ? 2 1,4 *",
			"duration": 60,
			"enabled": "true",
			"maxDowntime": "0",
			"rebootMethod": "",
			"rebootDelay": 0,
			"downTimeOnAction": false,
			"userMessageEnabled": false,
			"userMessage": null,
			"messageSenderEnabled": false,
			"messageSender": null,
			"preserveStateEnabled": false,
			"ruleID": 123456789,
			"ruleName": "Test Rule"
		}
	],
	"totalItems": 0
}
```

## Workflow Library Example

[Get Device Maintenance Windows with N Able N Central and Send Results Via Email](https://library.blinkops.com/workflows/get-device-maintenance-windows-with-n-able-n-central-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-device-maintenance-windows-with-n-able-n-central-and-send-results-via-email/canvas" />
</div>
