PARTNERS

assignMaintenanceWindows

This method assigns a set of maintenance windows to a policy.

Parameters

Parameter

Type

Optional

Description

policyId

String

No

The ID of the policy to assign the maintenance windows to.

maintenanceWindowIds

array of Strings

No

The list of maintenance windows identified by ID to assign to the policy.

Note

  • The maintenance window must be from the same company as the policy.

  • maintenanceWindowIds array can contain only 1 maintenance window of each type.

Note

  • You can not assign a maintenance window to a default policy.

  • Cloning a policy also clones the association with the maintenance window.

Return value

This method returns a value of true or false, indicating if the maintenance window was successfully assigned to the selected policy.

Example

Request:

{
  "method": "assignMaintenanceWindows",
  "id": "736b0b48-63be-4b53-818e-b37df9b02e90",
  "jsonrpc": "2.0",
  "params": {
    "policyId": "6197522efb457113d33fb2a1",
    "maintenanceWindowIds": [
      "6197525bfc446429a353fb32"
    ]
  }
}

Response:

{
   "id" : "736b0b48-63be-4b53-818e-b37df9b02e90",
   "jsonrpc" : "2.0",
   "result" : {
      "success" : true
   }
}