Logs
LogsAudit
Get account audit logs (Version 2)
client.accounts.logs.audit.list(AuditListParams { account_id, before, since, 26 more } params, RequestOptionsoptions?): CursorPaginationAfter<AuditListResponse { id, account, action, 4 more } >
GET/accounts/{account_id}/logs/audit
Get resource change history from an account audit log entry (Version 2)
client.accounts.logs.audit.history(stringid, AuditHistoryParams { account_id, action_time, before, 4 more } params, RequestOptionsoptions?): AuditHistoryResponse { id, account, action, 4 more }
GET/accounts/{account_id}/logs/audit/{id}/history
List account audit log product categories (Version 2)
client.accounts.logs.audit.productCategories(AuditProductCategoriesParams { account_id } params, RequestOptionsoptions?): SinglePage<AuditProductCategoriesResponse { label, products, value } >
GET/accounts/{account_id}/logs/audit/product_categories
ModelsExpand Collapse
AuditListResponse { id, account, action, 4 more }
AuditListResponse { id, account, action, 4 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.