GET /api/compliance/oval_policies
List OVAL Policies

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

search
optional

filter results

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return, 'all' to return all results

Validations:

  • Must match regular expression /\A([1-9]\d*|all)\Z$/.


GET /api/compliance/oval_policies/:id
Show an OVAL Policy

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/compliance/oval_policies
Create an OVAL Policy

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

oval_policy
required

Validations:

  • Must be a Hash

oval_policy[name]
required

OVAL Policy name

Validations:

  • Must be a String

oval_policy[oval_content_id]
required

Policy OVAL content ID

Validations:

  • Must be a Integer

oval_policy[description]
optional , nil allowed

OVAL Policy description

Validations:

  • Must be a String

oval_policy[period]
optional , nil allowed

OVAL Policy schedule period (weekly, monthly, custom)

Validations:

  • Must be a String

oval_policy[weekday]
optional , nil allowed

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

Validations:

  • Must be a String

oval_policy[day_of_month]
optional , nil allowed

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

Validations:

  • Must be a Integer

oval_policy[cron_line]
optional , nil allowed

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

Validations:

  • Must be a String

oval_policy[location_ids]
optional , nil allowed

REPLACE locations with given ids

Validations:

  • Must be an array of any type

oval_policy[organization_ids]
optional , nil allowed

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


PUT /api/compliance/oval_policies/:id
Update an OVAL Policy

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

oval_policy
required

Validations:

  • Must be a Hash

oval_policy[name]
optional

OVAL Policy name

Validations:

  • Must be a String

oval_policy[oval_content_id]
optional

Policy OVAL content ID

Validations:

  • Must be a Integer

oval_policy[description]
optional , nil allowed

OVAL Policy description

Validations:

  • Must be a String

oval_policy[period]
optional , nil allowed

OVAL Policy schedule period (weekly, monthly, custom)

Validations:

  • Must be a String

oval_policy[weekday]
optional , nil allowed

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

Validations:

  • Must be a String

oval_policy[day_of_month]
optional , nil allowed

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

Validations:

  • Must be a Integer

oval_policy[cron_line]
optional , nil allowed

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

Validations:

  • Must be a String

oval_policy[location_ids]
optional , nil allowed

REPLACE locations with given ids

Validations:

  • Must be an array of any type

oval_policy[organization_ids]
optional , nil allowed

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


DELETE /api/compliance/oval_policies/:id
Delete an OVAL Policy

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/compliance/oval_policies/:id/assign_hostgroups
Assign hostgroups to an OVAL Policy

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

hostgroup_ids
optional

Array of hostgroup IDs

Validations:

  • Must be an array of any type


POST /api/compliance/oval_policies/:id/assign_hosts
Assign hosts to an OVAL Policy

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

host_ids
optional

Array of host IDs

Validations:

  • Must be an array of any type


GET /api/compliance/oval_policies/:id/oval_content
Show a policy's OVAL content

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.