AuditLog

View as Markdown

AuditLog

An audit log displays a record of all the activities performed in a stack and helps you track all published items, updates, deletes, and the current status of the existing content.

fetch

The fetch AuditLog call fetches AuditLog details.

NameTypeDescription
audit_log_item_uidstring

UID of the audit log item

import * as contentstack from '@contentstack/management'
const client = contentstack.client()

client.stack({ api_key: 'api_key'}).auditLog('audit_log_item_uid').fetch()
.then((log) => console.log(log))

fetchAll

The fetchAll method retrieves the details of all the branches of a stack.

NameTypeDescription
limitInt

Limit on API response to provide content in the list

skipInt

Offset for skipping content in response

include_countBoolean

To retrieve the count of Branch.

import * as contentstack from '@contentstack/management'
const client = contentstack.client()

client.stack({ api_key: 'api_key'}).auditLog().fetchAll()
.then((logs) => console.log(logs))