
Returns a usage report. A report in the zip format is a full
report; reports in the other formats are summaries. You can return a report for a specific
number of previous-days, or for a specific time period, as specified by the
start-date and end-date parameters. If is an error to specify both
a start-date and previous-days. If no reporting period is specified,
the default is the previous 90 days.
Upon success, MarkLogic server returns status code 200 (OK) and the response body contains the requested data. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-user role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage
http://localhost:8002/manage/v2/usage-report
==> Returns a usage report for the last 90 days.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.