URL
POST https://{api-url}/api/v2/tenants/{tenantId}/scheduleMaintenances
Sample URLs
https://{api-url}/api/v2/tenants/client_93/scheduleMaintenances
Parameters
Field | Data Type | Description |
---|---|---|
name | String | Schedule name. |
description | String | Schedule description. |
devices/deviceGroups/locations | String | Details of resources which should be added to schedule maintenance window. No more than 100 resources can be added to a schedule maintenance window. |
schedule
|
| Schedule details:
|
runRBA | Boolean | (Optional) Set runRBA=true to run RBA scripts; otherwise, set to false. |
installPatch | Boolean | (Optional) Set installPatch=true to install patch; otherwise, set to false. |
endBy | String | (Optional) Maintenance ending schedule.
|
installPatch | Boolean | (Optional) Set installPatch=true to install patch. |
runEscalationAction | Boolean | (Optional) Provide runEscalationAction: true to escalate maintenance alerts after schedule maintenance is completed. If no value is provided, the default value is true. |
alertConditions
| String | (Optional) For specific alerts to be triggered as maintenance alerts, configure the below alert conditions. Alerts that do match with the below conditions are triggered as monitoring alerts:
|
Timezones | ||
---|---|---|
Pacific/Asia | Pacific/Honolulu | America/Anchorage |
America/Los_Angeles | America/Denver | America/Chicago |
America/New_York | America/Puerto_Rico | America/St_Johns |
America/Buenos_Aires | Atlantic/Azores | Europe/London |
Europe/Paris | Europe/Istanbul | Africa/Addis_Ababa |
Asia/Tehran | Asia/Yerevan | Asia/Karachi |
Asia/Calcutta | Asia/Dacca | Asia/Saigon |
Asia/Shanghai | Asia/Tokyo | Australia/Darwin |
Australia/Sydney | Pacific/Guadalcanal | Pacific/Auckland |
Sample requests
This is a sample request for DayOfMonth recurring schedule:
{
"name": "Recurring-monthly-1schedule",
"description": "Recurring-monthly-1schedule",
"runRBA": "false",
"installPatch": "false",
"devices": [{
"hostName": "Device_4"
},
{
"uniqueId": "90491678-096c-4223-9867-f31c37ff09da"
}
],
"deviceGroups": [{
"name": "DG-1"
},
{
"id": "11"
}
],
"locations": [{
"name": "LOC-1"
},
{
"id": "12"
}
],
"schedule": {
"type": "Recurring",
"startTime": "2015-05-28T10:55:27+0000",
"endTime": "2015-05-29T18:55:27+0000",
"timezone": "America/Puerto_Rico",
"pattern": {
"type": "monthly",
"dayOfMonth": "14"
}
}
}
This is a sample request for DayOfWeek recurring schedule:
{
"name": "Recurring-monthly-2schedule",
"description": "Recurring-monthly-2schedule",
"runRBA": "false",
"installPatch": "false",
"devices": [{
"hostName": "Device_2"
},
{
"id": "10"
}
],
"deviceGroups": [{
"name": "DG-1"
},
{
"id": "11"
}
],
"locations": [{
"name": "LOC-1"
},
{
"id": "12"
}
],
"schedule": {
"type": "Recurring",
"startTime": "2015-05-28T10:55:27+0000",
"endTime": "2015-05-29T18:55:27+0000",
"timezone": "America/Los_Angeles",
"pattern": {
"type": "monthly",
"weekIndex": "Third",
"dayOfWeek": "Thursday"
}
}
}
Sample response
{
"uniqueId": "SM-c21c7n32-b67d-125h-8712-7d234090ad32"
}