The following steps will update and change a specific RP to be activated and start the patching process.
Important notice: Below API calls are experimental, thus take into consideration that there might be changes in the future that will cause them not to work and will require some modifications in order to be able run them again.
Step 1 - Getting the body of a specific RP
Type: GET
URL: https://<JetPatch_URL>vmanage-server/rest/experimental/patch-governance/remediation-plans/{id}/
Purpose: To obtain the whole body to be used on the next step.
Example:
{
"archived": false,
"activationTime": null,
"itsmTemplate": null,
"sparseHidden": false,
"hasUnapprovedPatches": false,
"hasApprovedPatches": false,
"completedPercent": 0.0,
"id": 1005,
"name": "tamir_test",
"description": null,
"isEmergencyPlan": false,
"isCritical": false,
"createdBy": "tamir rotem",
"createdTime": 1726557170513,
"modifiedBy": "tamir rotem",
"modifiedTime": 1726557189400,
"remediationCycle": {
"cycleSteps": [
{
"computerGroupId": 46,
"workflowId": 502,
"order": null,
"maintenanceScheduleId": null
},
{
"computerGroupId": 46,
"workflowId": 503,
"order": null,
"maintenanceScheduleId": null
},
{
"computerGroupId": 46,
"workflowId": 504,
"order": null,
"maintenanceScheduleId": null
},
{
"computerGroupId": 46,
"workflowId": 505,
"order": null,
"maintenanceScheduleId": null
}
]
},
"kanbanStatus": "NEW",
"rpStatus": "NEW",
"creationType": "MANUAL",
"applicableUpdatesCnt": 1,
"applicableComputersCnt": 1,
"errMsg": null,
"devicesCompliance": null,
"patchingStatus": null,
"cancelledBy": null,
"autoRPRuleName": null,
"slaStartDate": 1726520400000,
"slaEndDate": 1729112400000,
"canManage": true,
"sendNotifications": false,
"additionalNotifications": null,
"completionNotificationsFromSetup": false,
"sendActivationNotifications": false,
"activationNotificationsRecipients": null,
"activationNotificationFromSetup": false,
"sendCancellationNotification": false,
"cancellationNotificationFromSetup": false,
"cancellationNotificationEmails": null,
"sequenceId": null,
"sequenceOrder": null,
"sequenceSize": null,
"sequenceName": null,
"sequenceStatus": null
}
Step 2 - Copy body retrieved from 1st step
Step3 - Modify the following parameters to have the value "PENDING" (previously it was "NEW")
"kanbanStatus": "PENDING",
"rpStatus": "PENDING",
Step 4 - Activating the RP
Type: PUT
URL: https://<JetPatch_URL>vmanage-server/rest/experimental/patch-governance/remediation-plans/{id}/
Purpose: Updating RP parameters in order to activate it.
{
"archived": false,
"activationTime": 1726557318581,
"itsmTemplate": null,
"sparseHidden": false,
"hasUnapprovedPatches": false,
"hasApprovedPatches": false,
"completedPercent": 0.0,
"id": 1005,
"name": "tamir_test",
"description": null,
"isEmergencyPlan": false,
"isCritical": false,
"createdBy": "tamir rotem",
"createdTime": 1726557170513,
"modifiedBy": "tamir rotem",
"modifiedTime": 1726557318581,
"remediationCycle": {
"cycleSteps": [
{
"computerGroupId": 46,
"workflowId": 502,
"order": null,
"maintenanceScheduleId": null
},
{
"computerGroupId": 46,
"workflowId": 503,
"order": null,
"maintenanceScheduleId": null
},
{
"computerGroupId": 46,
"workflowId": 504,
"order": null,
"maintenanceScheduleId": null
},
{
"computerGroupId": 46,
"workflowId": 505,
"order": null,
"maintenanceScheduleId": null
}
]
},
"kanbanStatus": "PENDING",
"rpStatus": "PENDING",
"creationType": "MANUAL",
"applicableUpdatesCnt": 1,
"applicableComputersCnt": 1,
"errMsg": null,
"devicesCompliance": {
"totalQty": 24,
"compliantQty": 0,
"nonCompliantQty": 1,
"suspendedQty": 0,
"pendingQty": 0,
"busyQty": 0,
"activeQty": 0,
"activeNonCompliantQty": 0,
"requireAttentionQty": 0,
"requireAttentionCompliance": {
"poweredOff": 0,
"powerSuspended": 0,
"powerUnknown": 0,
"disconnected": 0,
"connectorNotInstalled": 0,
"connectorDown": 0,
"invalidCredentials": 0,
"notReachable": 0,
"untestedEndpoint": 0,
"failed": 0,
"powershellVersionNotSupported": 0,
"suspendedByUser": 0,
"maintenanceWindowRequired": 0,
"awaitingMaintenanceWindow": 0,
"maintenanceWindowExpired": 0,
"lowDiskSpace": 0,
"unknownEndpoint": 0,
"patchingInapplicable": 0,
"advisoriesNotExist": 0,
"packagesNotExist": 0,
"wrongRepositoriesConfiguration": 0,
"subscriptionMissing": 0,
"powershellPolicyIsNotCompatible": 0,
"wsusCommunicationProblems": 0,
"maintenanceWindowTimeout": 0,
"suspension": null,
"noMaintenanceEntry": 0,
"pendingRebootSuspension": 0,
"updatingEndpointGroup": 0,
"wsusAutomaticUpdatesProblems": 0,
"virtualMachineFroze": 0
}
},
"patchingStatus": {
"appliedActions": 0,
"inProgressActions": 0,
"failedActions": 0,
"notAppliedActions": 1
},
"cancelledBy": null,
"autoRPRuleName": null,
"slaStartDate": 1726520400000,
"slaEndDate": 1729112400000,
"canManage": true,
"sendNotifications": false,
"additionalNotifications": null,
"completionNotificationsFromSetup": false,
"sendActivationNotifications": false,
"activationNotificationsRecipients": null,
"activationNotificationFromSetup": false,
"sendCancellationNotification": false,
"cancellationNotificationFromSetup": false,
"cancellationNotificationEmails": null,
"sequenceId": null,
"sequenceOrder": null,
"sequenceSize": null,
"sequenceName": null,
"sequenceStatus": null
}
Comments
0 comments
Please sign in to leave a comment.