URL
POST https://{api-url}/api/v2/tenants/{tenantId}/scheduleMaintenances/{smId}/resources
Sample URLs
https://{api-url}/api/v2/tenants/client_8/scheduleMaintenances/SM-9e1e66c7-799c-4a70-9820-10fc6f4dc765/resources
Note
- Resources can only be added to Active, Pending, or Suspended scheduled maintenance windows.
- To search for scheduled maintenance windows on the basis of status, use the search schedule maintenance API.
- Entities can be added such as resource, device group, location to a schedule maintenance window. For example, all resource types such as Server, Storage, Volumes, RedShift, RDS or Lambda services are now supported.
- User can add up to 100 resources (device, device group, location) to a schedule maintenance window.
Parameters
Field | Data Type | Description |
---|---|---|
devices/deviceGroups/locations
| String | Details of resources which should be added to schedule maintenance window. |
Sample request
{
"devices": [{
"hostName": "device-1"
},
{
"uniqueId": "90491678-096c-4223-9867-f31c37ff09da"
}
],
"deviceGroups": [{
"name": "Network Group"
},
{
"id": "DGP-a20e13ad-e98f-416e-a9dd-40158ffdb2af"
}
],
"locations": [{
"name": "West Virginia"
},
{
"id": "12"
}
]
}
Sample response
Null