Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
page optional |
Page number, starting at 1 Validations:
|
per_page optional |
Number of results per page to return Validations:
|
Field name | Type | Possible values |
---|---|---|
content | string | |
location | string | |
location_id | integer | |
name | string | |
organization | string | |
organization_id | integer | |
profile | string | |
tailoring_file | string | |
tailoring_file_profile | string |
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Validations:
|
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
policy required |
Validations:
|
policy[name] required |
Policy name Validations:
|
policy[description] optional , nil allowed |
Policy description Validations:
|
policy[scap_content_id] required |
Policy SCAP content ID Validations:
|
policy[scap_content_profile_id] required |
Policy SCAP content profile ID Validations:
|
policy[period] optional , nil allowed |
Policy schedule period (weekly, monthly, custom) Validations:
|
policy[weekday] optional , nil allowed |
Policy schedule weekday (only if period == “weekly”) Validations:
|
policy[day_of_month] optional , nil allowed |
Policy schedule day of month (only if period == “monthly”) Validations:
|
policy[cron_line] optional , nil allowed |
Policy schedule cron line (only if period == “custom”) Validations:
|
policy[hostgroup_ids] optional , nil allowed |
Apply policy to host groups Validations:
|
policy[host_ids] optional , nil allowed |
Apply policy to hosts Validations:
|
policy[tailoring_file_id] optional , nil allowed |
Tailoring file ID Validations:
|
policy[tailoring_file_profile_id] optional , nil allowed |
Tailoring file profile ID Validations:
|
policy[deploy_by] required |
How the policy should be deployed Validations:
|
policy[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
policy[organization_ids] optional , nil allowed |
REPLACE organisations with given ids. Validations:
|
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Validations:
|
policy required |
Validations:
|
policy[name] optional |
Policy name Validations:
|
policy[description] optional , nil allowed |
Policy description Validations:
|
policy[scap_content_id] optional |
Policy SCAP content ID Validations:
|
policy[scap_content_profile_id] optional |
Policy SCAP content profile ID Validations:
|
policy[period] optional , nil allowed |
Policy schedule period (weekly, monthly, custom) Validations:
|
policy[weekday] optional , nil allowed |
Policy schedule weekday (only if period == “weekly”) Validations:
|
policy[day_of_month] optional , nil allowed |
Policy schedule day of month (only if period == “monthly”) Validations:
|
policy[cron_line] optional , nil allowed |
Policy schedule cron line (only if period == “custom”) Validations:
|
policy[hostgroup_ids] optional , nil allowed |
Apply policy to host groups Validations:
|
policy[host_ids] optional , nil allowed |
Apply policy to hosts Validations:
|
policy[tailoring_file_id] optional , nil allowed |
Tailoring file ID Validations:
|
policy[tailoring_file_profile_id] optional , nil allowed |
Tailoring file profile ID Validations:
|
policy[deploy_by] optional |
How the policy should be deployed Validations:
|
policy[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
policy[organization_ids] optional , nil allowed |
REPLACE organisations with given ids. Validations:
|
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Validations:
|
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Validations:
|
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Validations:
|