Manages maintenance windows, under which alerts won't be sent. Use this API to define and update stop and start times, devices, or subnets that should be excluded when triggering alerts, or define and update Defender for IoT engines that should be excluded.
For example, during a maintenance window, you might want to stop alert delivery of all alerts, except for malware alerts on critical devices.
The maintenance windows that define with the maintenanceWindow API appear in the on-premises management console's Alert Exclusions window as a read-only exclusion rule, named with the following syntax: Maintenance-{token name}-{ticket ID}.
Important
This API is supported for maintenance purposes only and for a limited time period, and is not meant to be used instead of alert exclusion rules. Use this API for one-time, temporary maintenance operations only.
String. Defines the maintenance ticket ID in the user's systems. Make sure that the ticket ID is not linked to an existing open window.
2987345p98234
Required
ttl
Positive integer. Defines the TTL (time to live), which is the duration of the maintenance window, in minutes. After the defined time period is completed, the maintenance window is over and the system behaves normally again.
180
Required
engines
JSON array of strings. Defines which engine to suppress alerts from during the maintenance window. Possible values:
JSON array of strings. Defines which sensors to suppress alerts from during the maintenance window. You can get these sensor IDs from the appliances (Manage OT sensor appliances) API.
1,35,63
Optional
subnets
JSON array of strings. Defines the subnets to suppress alerts from during the maintenance window. Define each subnet in a CIDR notation.
192.168.0.0/16,138.136.80.0/14,112.138.10.0/8
Optional
Status code
Message
Description
201 (Created)
-
The action was successfully completed.
400 (Bad Request)
No TicketId
API request was missing a ticketId value.
400 (Bad Request)
Illegal TTL
API request included a non-positive or non-numeric TTL value.
400 (Bad Request)
Couldn't parse request.
Issue parsing the body, such as incorrect parameters or invalid values.
400 (Bad Request)
Maintenance window with same parameters already exists.
Appears when an existing maintenance window already exists with the same details.
404 (Not Found)
Unknown sensor ID
One of the sensors listed in the request doesn't exist.
409 (Conflict)
Ticket ID already has an open window.
The ticket ID is linked to another open maintenance window.
Filters the logs from the predefined date and later. The format is YYYY-MM-DD.
2022-08-10
Optional
toDate
Filters the logs up to the predefined date. The format is YYYY-MM-DD.
2022-08-10
Optional
ticketId
Filters the logs related to a specific ticket ID.
9a5fe99c-d914-4bda-9332-307384fe40bf
Optional
tokenName
Filters the logs related to a specific token name.
quarterly-sanity-window
Optional
Error codes:
Code
Message
Description
200
OK
The action was successfully completed.
204:
No Content
There is no data to show.
400
Bad Request
The date format is incorrect.
500
Internal Server Error
Any other unexpected error.
Type: JSON
Array of JSON objects that represent maintenance window operations.
Response structure:
Name
Type
Nullable / Not nullable
List of values
id
Long integer
Not nullable
An internal ID for the current log
dateTime
String
Not nullable
The time that the activity occurred, for example: 2022-04-23T18:25:43.511Z
ticketId
String
Not nullable
The maintenance window ID. For example: 9a5fe99c-d914-4bda-9332-307384fe40bf
tokenName
String
Not nullable
The maintenance window token name. For example: quarterly-sanity-window
engines
Array of strings
Nullable
The engines on which the maintenance window applies, as supplied during maintenance window creation: Protocol Violation, Policy Violation, Malware, Anomaly, or Operational
sensorIds
Array of string
Nullable
The sensors on which the maintenance window applies, as supplied during maintenance window creation.
subnets
Array of string
Nullable
The subnets on which the maintenance window applies, as supplied during maintenance window creation.
ttl
Numeric
Nullable
The maintenance window's Time to Live (TTL), as supplied during maintenance window creation or update.
operationType
String
Not nullable
One of the following values: OPEN, UPDATE, and CLOSE
Allows you to update the maintenance window duration after you start the maintenance process by changing the ttl parameter. The new duration definition overrides the previous one.
This method is useful when you want to set a longer duration than the currently configured duration. For example, if you've originally defined 180 minutes, 90 minutes have passed, and you want to add another 30 minutes, update the ttl to 120 minute to reset the duration count.