system.scap

Description

Provides methods to schedule SCAP scans and access the results.

Namespace:

system.scap

Method: deleteXccdfScan

HTTP POST

Description:

Delete OpenSCAP XCCDF Scan from the #product() database. Note that only those SCAP Scans can be deleted which have passed their retention period.

Parameters:

  • string sessionKey

  • int xid - ID of XCCDF scan.

Returns:

  • boolean status - indicates success of the operation

Method: getXccdfScanDetails

HTTP GET

Description:

Get details of given OpenSCAP XCCDF scan.

Parameters:

  • string sessionKey

  • int xid - ID of XCCDF scan.

Returns:

  • * struct OpenSCAP XCCDF Scan

    • int "xid" - XCCDF TestResult ID

    • int "sid" - serverId

    • int "action_id" - ID of the parent action

    • string "path" - path to XCCDF document

    • string "ovalfiles" - optional OVAL files

    • string "oscap_parameters" - oscap command-line arguments

    • string "test_result" - identifier of XCCDF TestResult

    • string "benchmark" - identifier of XCCDF Benchmark

    • string "benchmark_version" - version of the Benchmark

    • string "profile" - identifier of XCCDF Profile

    • string "profile_title" - title of XCCDF Profile

    • dateTime.iso8601 "start_time" - client machine time of scan start

    • dateTime.iso8601 "end_time" - client machine time of scan completion

    • string "errors" - stderr output of scan

    • boolean "deletable" - indicates whether the scan can be deleted

Method: getXccdfScanRuleResults

HTTP GET

Description:

Return a full list of RuleResults for given OpenSCAP XCCDF scan.

Parameters:

  • string sessionKey

  • int xid - ID of XCCDF scan.

Returns:

  • array :

  • struct OpenSCAP XCCDF RuleResult

    • string "idref" - idref from XCCDF document

    • string "result" - result of evaluation

    • string "idents" - comma separated list of XCCDF idents

Method: listXccdfScans

HTTP GET

Description:

Return a list of finished OpenSCAP scans for a given system.

Parameters:

  • string sessionKey

  • int sid

Returns:

  • array :

  • struct OpenSCAP XCCDF Scan

    • int "xid" - XCCDF TestResult ID

    • string "profile" - XCCDF Profile

    • string "path" - path to XCCDF document

    • string "ovalfiles" - optional OVAL files

    • dateTime.iso8601 "completed" - scan completion time

Method: scheduleXccdfScan

HTTP POST

Description:

Schedule OpenSCAP scan.

Parameters:

  • string sessionKey

  • int array sids

  • string xccdfPath - path to xccdf content on targeted systems.

  • string oscapParams - additional parameters for oscap tool.

Returns:

  • int id - ID if SCAP action created

Method: scheduleXccdfScan

HTTP POST

Description:

Schedule OpenSCAP scan.

Parameters:

  • string sessionKey

  • int array sids

  • string xccdfPath - path to xccdf content on targeted systems.

  • string oscapParams - additional parameters for oscap tool.

  • dateTime.iso8601 date - The date to schedule the action

Returns:

  • int id - ID if SCAP action created

Method: scheduleXccdfScan

HTTP POST

Description:

Schedule OpenSCAP scan.

Parameters:

  • string sessionKey

  • int array sids

  • string xccdfPath - Path to xccdf content on targeted systems.

  • string oscapPrams - Additional parameters for oscap tool.

  • string ovalFiles - Additional OVAL files for oscap tool.

  • dateTime.iso8601 date - The date to schedule the action

Returns:

  • int id - ID if SCAP action created

Method: scheduleXccdfScan

HTTP POST

Description:

Schedule Scap XCCDF scan.

Parameters:

  • string sessionKey

  • int sid

  • string xccdfPath - Path to xccdf content on targeted systems.

  • string oscapPrams - Additional parameters for oscap tool.

Returns:

  • int id - ID of the scap action created

Method: scheduleXccdfScan

HTTP POST

Description:

Schedule Scap XCCDF scan.

Parameters:

  • string sessionKey

  • int sid

  • string xccdfPath - Path to xccdf content on targeted systems.

  • string oscapPrams - Additional parameters for oscap tool.

  • dateTime.iso8601 date - The date to schedule the action

Returns:

  • int id - ID of the scap action created