Params

Param name Description
policy
required

Validations:

  • Must be a Hash

policy[name]
required

Policy name

Validations:

  • Must be a String

policy[description]
optional , nil allowed

Policy description

Validations:

  • Must be a String

policy[scap_content_id]
required

Policy SCAP content ID

Validations:

  • Must be a Integer

policy[scap_content_profile_id]
required

Policy SCAP content profile ID

Validations:

  • Must be a Integer

policy[period]
optional , nil allowed

Policy schedule period (weekly, monthly, custom)

Validations:

  • Must be a String

policy[weekday]
optional , nil allowed

Policy schedule weekday (only if period == “weekly”)

Validations:

  • Must be a String

policy[day_of_month]
optional , nil allowed

Policy schedule day of month (only if period == “monthly”)

Validations:

  • Must be a Integer

policy[cron_line]
optional , nil allowed

Policy schedule cron line (only if period == “custom”)

Validations:

  • Must be a String

policy[hostgroup_ids]
optional , nil allowed

Apply policy to host groups

Validations:

  • Must be an array of any type

policy[host_ids]
optional , nil allowed

Apply policy to hosts

Validations:

  • Must be an array of any type

policy[tailoring_file_id]
optional , nil allowed

Tailoring file ID

Validations:

  • Must be a Integer

policy[tailoring_file_profile_id]
optional , nil allowed

Tailoring file profile ID

Validations:

  • Must be a Integer

policy[location_ids]
optional , nil allowed

REPLACE locations with given ids

Validations:

  • Must be an array of any type

policy[organization_ids]
optional , nil allowed

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type