CLOUD SOLUTIONS

unassignMaintenanceWindows

This method unassigns a set of maintenance windows from a policy.

Parameters

Parameter

Type

Optional

Description

policyId

String

No

The ID of the policy to unassign the maintenance windows from.

Note

  • The policyId must belong to a company where the user has visibility.

  • If the policy does not belong your company, and uiSettings.general.allowChangeByOtherUsers is set to False an error will be received and the request will not be processed.

maintenanceWindowIds

Array of Strings

No

The list of IDs belonging to the maintenance windows that will be unassigned from the policy.

Note

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

Return value

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

Example

Request:

{
  "method": "unassignMaintenanceWindows",
  "id": "dfa28997-9fc3-4f63-ad20-6105706c934e",
  "jsonrpc": "2.0",
  "params": {
    "policyId": "619758499c12552a11758049",
    "maintenanceWindowIds": [
      "6197584ff9d4bf64ae0e3711"
    ]
  }
}

Response:

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