GET /api/compliance/oval_contents
List OVAL contents

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 and order by a searchable field, e.g. '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$/.

Search fields

Field name Type Possible values
location
location_id
name
organization
organization_id

GET /api/compliance/oval_contents/:id
Show an 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.


POST /api/compliance/oval_contents
Create 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

oval_content
required

Validations:

  • Must be a Hash

oval_content[name]
required

OVAL content name

Validations:

  • Must be a String

oval_content[scap_file]
optional , nil allowed

XML containing OVAL content

Validations:

  • Must be a File

oval_content[original_filename]
optional , nil allowed

Original file name of the OVAL content file

Validations:

  • Must be a String

oval_content[url]
optional , nil allowed

URL of the OVAL content file

Validations:

  • Must be a String

oval_content[location_ids]
optional , nil allowed

REPLACE locations with given ids

Validations:

  • Must be an array of any type

oval_content[organization_ids]
optional , nil allowed

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


PUT /api/compliance/oval_contents/:id
Update an 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.

oval_content
required

Validations:

  • Must be a Hash

oval_content[name]
optional

OVAL content name

Validations:

  • Must be a String

oval_content[scap_file]
optional , nil allowed

XML containing OVAL content

Validations:

  • Must be a File

oval_content[original_filename]
optional , nil allowed

Original file name of the OVAL content file

Validations:

  • Must be a String

oval_content[url]
optional , nil allowed

URL of the OVAL content file

Validations:

  • Must be a String

oval_content[location_ids]
optional , nil allowed

REPLACE locations with given ids

Validations:

  • Must be an array of any type

oval_content[organization_ids]
optional , nil allowed

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


DELETE /api/compliance/oval_contents/:id
Deletes an 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.


POST /api/compliance/oval_contents/sync
Sync contents that have remote source URL

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