Retrieves Issue Audit Log
client.securityCenter.insights.auditLogs.listByInsight(stringissueId, AuditLogListByInsightParams { account_id, zone_id, before, 6 more } params?, RequestOptionsoptions?): CursorPagination<AuditLogListByInsightResponse { id, changed_at, changed_by, 6 more } >
GET/{accounts_or_zones}/{account_or_zone_id}/security-center/insights/{issue_id}/audit-log
Lists audit log entries for a specific Security Center insight, showing changes to its status and classification over time.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Retrieves Issue Audit Log
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const auditLogListByInsightResponse of client.securityCenter.insights.auditLogs.listByInsight(
'issue_id',
{ account_id: 'account_id' },
)) {
console.log(auditLogListByInsightResponse.id);
}{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"changed_at": "2019-12-27T18:11:19.117Z",
"changed_by": "system",
"current_value": "current_value",
"field_changed": "status",
"issue_id": "issue_id",
"previous_value": "previous_value",
"rationale": "rationale",
"zone_id": 0
}
],
"result_info": {
"count": 25,
"cursor": "cursor",
"per_page": 25
}
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"changed_at": "2019-12-27T18:11:19.117Z",
"changed_by": "system",
"current_value": "current_value",
"field_changed": "status",
"issue_id": "issue_id",
"previous_value": "previous_value",
"rationale": "rationale",
"zone_id": 0
}
],
"result_info": {
"count": 25,
"cursor": "cursor",
"per_page": 25
}
}