Skip to content

Function: getAuditRecords()

ts
function getAuditRecords(client, parameters?): Promise<{
[key: string]: unknown;
  _links: {
   [key: string]: unknown;
     base?: string;
     byOperation?: string;
     collection?: string;
     context?: string;
     download?: string;
     editui?: string;
     edituiv2?: string;
     next?: string;
     prev?: string;
     self?: string;
     tinyui?: string;
     webui?: string;
  };
  limit: number;
  results: object[];
  size: number;
  start: number;
}>;

Defined in: src/v1/api/audit.ts:18

Returns all records in the audit log, optionally for a certain date range. This contains information about events like space exports, group membership changes, app installations, etc. For more information, see Audit log in the Confluence administrator's guide.

Permissions required: 'Confluence Administrator' global permission.

Parameters

ParameterTypeDescription
clientClient-
parameters?{ endDate?: string; limit?: number; searchString?: string; start?: number; startDate?: string; }-
parameters.endDate?stringFilters the results to the records on or before the endDate. The endDate must be specified as epoch time in milliseconds.
parameters.limit?numberThe maximum number of records to return per page. Note, this may be restricted by fixed system limits.
parameters.searchString?stringFilters the results to records that have string property values matching the searchString.
parameters.start?numberThe starting index of the returned records.
parameters.startDate?stringFilters the results to the records on or after the startDate. The startDate must be specified as epoch time in milliseconds.

Returns

Promise&lt;{ [key: string]: unknown; _links: { [key: string]: unknown; base?: string; byOperation?: string; collection?: string; context?: string; download?: string; editui?: string; edituiv2?: string; next?: string; prev?: string; self?: string; tinyui?: string; webui?: string; }; limit: number; results: object[]; size: number; start: number; }>