AuditLog
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.
| Name | Type | Description |
|---|---|---|
| audit_log_item_uid | string | 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.
| Name | Type | Description |
|---|---|---|
| limit | Int | Limit on API response to provide content in the list |
| skip | Int | Offset for skipping content in response |
| include_count | Boolean | 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))