This function generates the specified report and stores the report data at the server. If prior report data exists, a call to this function overwrites the previous report. Only one copy of the report data is stored. This function may take a long time to perform. Only one report can be generated at a time.
Input Parameters
Parameter
Type
Value
Description
token
UserToken, mandatory
—
A token that represents your authorization pass, which is obtained after you invoke the login function and are authenticated by the back-end server. Only an administrator can generate a report.
Enumeration value that represents the subject of the report to be generated.
filter
DeviceFilter, mandatory
—
The input DeviceFilter object specifies the criteria for searching the defined devices. If the filter is set to null, no filtering will be performed. For an audit trail, null should be entered.
Return
This function returns a Cisco::CLM::Common::Status object.
Error and Exception
If a system error prevents the operation from completing, a RemoteException is thrown.
When an error occurs, this function returns null.
read_report
Synopsis
read_report ($token, $subject, $output_format)
Description
This function returns the report most recently generated by the generateReport() function.
Input Parameters
Parameter
Type
Value
Description
token
UserToken, mandatory
—
A token that represents your authorization pass, which is obtained after you invoke the login function and are authenticated by the back-end server.