Activating a Remediation Plan
Type: PUT
URL: https://<JetPatch_URL>/vmanage-server/rest/experimental/patch-governance/remediation-plans/{id}
Note - {id} is the requested remediation plan
Body:
The call should include the whole Remediation Plan object copied from the output of the GET request
Once you have a Remediation Plan with the status 'Activation Required', indicated by the following parameters:
"kanbanStatus": "NEW"
"rpStatus": "NEW"
You can activate the RP using a PUT command. Follow these steps:
-
Get the Complete Body of the Specific RP
Use the GET command:https://MANAGER_URL/vmanage-server/rest/experimental/patch-governance/remediation-plans/RP_ID
-
Modify the Output
Copy the output and execute a PUT command, changing the two parameters to"PENDING"
from their previous value of"NEW"
:
Example:
Changing Endpoint Groups selections and Workflows
To change the Endpoint Groups and Workflows for a Remediation Plan, the "cycleSteps" should have
- computerGroupId: {EndpointGroup_id}
- workflowId: {wf_id}
- order: null
Notes -
- {EndpointGroupid} - the requested Endpoint Group ID
- {wf_id} - the requested workflow
- The order of the list is important - Each group should have 3 entries. The first entry is for Windows Workflow, the second is for Linux Workflow and the third is for Solaris Workflow
Example -
"cycleSteps":[
{
"computerGroupId":5016,
"workflowId":502,
"order":0,
"maintenanceScheduleId":null
},
{
"computerGroupId":5016,
"workflowId":501,
"order":1,
"maintenanceScheduleId":null
},
{
"computerGroupId":5016,
"workflowId":503,
"order":2,
"maintenanceScheduleId":null
},
{
"computerGroupId":501,
"workflowId":502,
"order":3,
"maintenanceScheduleId":null
},
{
"computerGroupId":501,
"workflowId":501,
"order":4,
"maintenanceScheduleId":null
},
{
"computerGroupId":501,
"workflowId":503,
"order":5,
"maintenanceScheduleId":null
}
]
Comments
0 comments
Please sign in to leave a comment.