The Create Server Policy API will allow you to create a new server policy on InfraGuard.
Steps to create a server policy:
- Click on 'Try it out' on Parameters.
- Fill the required details to create a new policy- to scan the patches
- slug- "patch-management" (default)
- name- Policy name
- email- Email address
- patch_action- Scan
- schedule_type- schedule type
- schedule_action_on- schedule type
- start_time- policy start time
- schedule_time_datetime_utc- Date & Time in UTC format
- Click on Execute.
- To install the patches
- slug- "patch-management" (default)
- name- Policy name
- email- Email address
- patch_action- Install
- patch_categories-
- Windows- Critical Updates, Security Updates, Definition Updates, Update Rollups, Service Packs, Tool, Feature Packs, Updates.
- Linux- Security Updates, General.
- schedule_type- schedule type
- schedule_action_on- schedule type
- exclude_patches-
- ExactPatches- Exact match
- ContainsPatches- Contain patches
- policy_actions-
- rebootRequired- default:false
- imageBeforePatch- default:false
- imageAfterPatch- default:false
- start_time- policy start time
- schedule_time_datetime_utc- Date & Time in UTC format
- Click on Execute.
Policy will created successfully!