Moogsoft Docs

deleteMaintenanceWindows

A MoogDb v2 method that deletes maintenance windows that match a filter.

Back to MoogDb V2 API Method Reference.

Request arguments

Method deleteMaintenanceWindows takes the following request arguments:

Name

Type

Required

Description

filter

String

Yes

An SQL-like or JSON filter to match maintenance windows that you want to delete.

See Filter Search Data for more information on creating SQL-like filters and examples.

limit

Number

No

Maximum number of windows to fetch. Default is 100.

Response

Method deleteMaintenanceWindows returns the following response:

Examples

The following examples demonstrate typical use of method deleteMaintenanceWindows:

Request examples

Example request to delete maintenance windows that match a filter:

var success = deleteMaintenanceWindows(filter, limit);

JSON filter where the description is "host375":

{ "column": "description", "op": 10, "value": "host375", "type": "LEAF" }

Advanced SQL filter where the description is "host375":

Description MATCHES "host375"

Response example