Create Maintenance Window
Create a maintenance window
Request
URI
POST
https://{api_host}/api/v2/maintenancewindow
COPY
Request Body
Example Body:
{ "reason": "MW Reason", "title": "MW Title", "startTimeInSeconds": 1483228800, "endTimeInSeconds": 1483232400, "relevantCustomerTags": [ "alertId1" ], "relevantHostTags": [ "sourceTag1" ] }
MaintenanceWindow
of type(s)
application/json
Optional
Show optional properties
{
"reason": "string",
"title": "string",
"startTimeInSeconds": 0,
"endTimeInSeconds": 0,
"relevantCustomerTags": [
{}
]
}
{
"id": "string",
"reason": "string",
"createdEpochMillis": 0,
"updatedEpochMillis": 0,
"title": "string",
"customerId": "string",
"creatorId": "string",
"updaterId": "string",
"startTimeInSeconds": 0,
"endTimeInSeconds": 0,
"relevantCustomerTags": [
"string"
],
"relevantHostNames": [
"string"
],
"relevantHostTags": [
"string"
],
"relevantCustomerTagsAnded": false,
"relevantHostTagsAnded": false,
"hostTagGroupHostNamesGroupAnded": false,
"pointTagFilter": "string",
"pointTagFilterAnded": false,
"eventName": "string",
"targets": [
"string"
],
"sortAttr": 0,
"runningState": "string"
}
Responses
200
successful operation
Returns
ResponseContainerMaintenanceWindow
of type(s)
application/json
"ResponseContainerMaintenanceWindow Object"
object
status
Required
status
object
response
Optional
Wavefront maintenance window entity
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"endTimeInSeconds:"integer","reason:"string","relevantCustomerTags":["string"],"startTimeInSeconds:"integer","title:"string"}' https://{api_host}/api/v2/maintenancewindow