/auditFile
Methods
Gets the list of AuditFiles.
Fields Parameter
Request Query Parameters
None
Filter Parameters
usable - The response will be an object containing an array of usable AuditFiles. By default, both usable and manageable objects are returned.
manageable - The response will be an object containing all manageable AuditFiles. By default, both usable and manageable objects are returned.
Example Response
Adds an AuditFile.
NOTE #1: The filename and tailoringFilename fields should contain the value of the same parameter passed back on a */file/upload::POST* if they are provided. The tailoringOriginalFilename field should contain the value of the tailoring file's original name, prior to upload if it is provided.
NOTE #2: For Tenable AuditFiles, field type must be sent as a blank string. SCAP AuditFile field type will be "scapWindows" or "scapLinux".
NOTE #3: AuditFile Template Variable names and values validation is limited to format only. They are not validated against the template's name/value pairs, nor are defaults set.
Request Parameters
Example Response
/auditFile/{id}
/auditFile/{uuid}
Methods
Gets the AuditFile associated with {id} or {uuid}.
Fields Parameter
Request Parameters
None
Example Response
Edits the AuditFile associated with {id} or {uuid}, changing only the passed in fields.
Request Parameters
(All fields are optional)
See /auditFile::POST for parameters.
Example Response
See /auditFile/{id}::GET or /auditFile/{uuid}::GET for example response.
Deletes the AuditFile associated with {id} or {uuid}, depending on access and permissions.
Request Parameters
None
Example Response
/auditFile/{id}/refresh
/auditFile/{uuid}/refresh
Methods
Refreshes the AuditFile associated with {id} or {uuid} to use the latest template version, depending on access and permissions.
NOTE #1: This does not modify the template variables. If the latest template has different variables, the user must call /auditFile/{id}::PATCH.
NOTE #2: AuditFiles not based on templates or based on templates that no longer exist (likely due to deprication) will generate an error.
Request Parameters
None
Example Response
/auditFile/{id}/share
/auditFile/{uuid}/share
Methods
Shares the AuditFile associated with {id} or {uuid}, depending on access and permissions
Request Parameters
Example Response
/auditFile/{id}/export
/auditFile/{uuid}/export
Methods
Exports the AuditFile associated with {id} or {uuid} as plain text XML, depending on access and permissions
NOTE: For AuditFiles based on templates, the exported AuditFile will be merged with the indicated variables before export. There is currently no option to export with placeholders.
Request Parameters
None
Example Response
None given. The response will be a AuditFile in binary or ascii format.