Logs
LogsAudit
Get organization audit logs (Version 2)
client.organizations.logs.audit.list(stringorganizationID, AuditListParams { before, since, id, 20 more } query, RequestOptionsoptions?): CursorPaginationAfter<AuditListResponse { id, action, actor, 3 more } >
GET/organizations/{organization_id}/logs/audit
Get resource change history from an organization audit log entry (Version 2)
client.organizations.logs.audit.history(stringid, AuditHistoryParams { organization_id, action_time, before, 4 more } params, RequestOptionsoptions?): AuditHistoryResponse { id, action, actor, 3 more }
GET/organizations/{organization_id}/logs/audit/{id}/history
ModelsExpand Collapse
AuditListResponse { id, action, actor, 3 more }
AuditListResponse { id, action, actor, 3 more }
action?: Action { description, result, time, type } Provides information about the action performed.
action?: Action { description, result, time, type }
Provides information about the action performed.
actor?: Actor { id, context, email, 4 more } Provides details about the actor who performed the action.
actor?: Actor { id, context, email, 4 more }
Provides details about the actor who performed the action.
id?: string
The ID of the actor who performed the action. If a user performed the action, this will be their User ID.
context?: "api" | "api_key" | "api_token" | 3 moreThe context in which the action was initiated.
api: The action was performed through the API. The specific credential type was not recorded.
api_key: The action was authenticated with a Cloudflare Global API Key.
api_token: The action was authenticated with an API token.
dash: The action was performed through the Cloudflare dashboard.
oauth: The action was authenticated with an OAuth token.
origin_ca_key: The action was authenticated with an Origin CA key.
context?: "api" | "api_key" | "api_token" | 3 more
The context in which the action was initiated.
api: The action was performed through the API. The specific credential type was not recorded.api_key: The action was authenticated with a Cloudflare Global API Key.api_token: The action was authenticated with an API token.dash: The action was performed through the Cloudflare dashboard.oauth: The action was authenticated with an OAuth token.origin_ca_key: The action was authenticated with an Origin CA key.
raw?: Raw { cf_ray_id, method, status_code, 2 more } Provides raw information about the request and response.
raw?: Raw { cf_ray_id, method, status_code, 2 more }
Provides raw information about the request and response.
AuditHistoryResponse = Array<AuditHistoryResponseItem>
AuditHistoryResponse = Array<AuditHistoryResponseItem>
action?: Action { description, result, time, type } Provides information about the action performed.
action?: Action { description, result, time, type }
Provides information about the action performed.
actor?: Actor { id, context, email, 4 more } Provides details about the actor who performed the action.
actor?: Actor { id, context, email, 4 more }
Provides details about the actor who performed the action.
id?: string
The ID of the actor who performed the action. If a user performed the action, this will be their User ID.
context?: "api" | "api_key" | "api_token" | 3 moreThe context in which the action was initiated.
api: The action was performed through the API. The specific credential type was not recorded.
api_key: The action was authenticated with a Cloudflare Global API Key.
api_token: The action was authenticated with an API token.
dash: The action was performed through the Cloudflare dashboard.
oauth: The action was authenticated with an OAuth token.
origin_ca_key: The action was authenticated with an Origin CA key.
context?: "api" | "api_key" | "api_token" | 3 more
The context in which the action was initiated.
api: The action was performed through the API. The specific credential type was not recorded.api_key: The action was authenticated with a Cloudflare Global API Key.api_token: The action was authenticated with an API token.dash: The action was performed through the Cloudflare dashboard.oauth: The action was authenticated with an OAuth token.origin_ca_key: The action was authenticated with an Origin CA key.
raw?: Raw { cf_ray_id, method, status_code, 2 more } Provides raw information about the request and response.
raw?: Raw { cf_ray_id, method, status_code, 2 more }
Provides raw information about the request and response.