> ## 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).

## Parameters

| Parameter | Description |
| - | - |
| Device ID | The ID of the required device. Can be obtained by using the `List Devices` action. |

## 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
}
```
