Logs
LogsAudit
Get organization audit logs (Version 2)
organizations.logs.audit.list(strorganization_id, AuditListParams**kwargs) -> SyncCursorPaginationAfter[AuditListResponse]
GET/organizations/{organization_id}/logs/audit
Get resource change history from an organization audit log entry (Version 2)
organizations.logs.audit.history(strid, AuditHistoryParams**kwargs) -> AuditHistoryResponse
GET/organizations/{organization_id}/logs/audit/{id}/history
ModelsExpand Collapse
class AuditListResponse: …
class AuditListResponse: …
actor: Optional[Actor]Provides details about the actor who performed the action.
actor: Optional[Actor]
Provides details about the actor who performed the action.
id: Optional[str]
The ID of the actor who performed the action. If a user performed the action, this will be their User ID.
context: Optional[Literal["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.
context: Optional[Literal["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.
List[AuditHistoryResponseItem]
List[AuditHistoryResponseItem]
actor: Optional[AuditHistoryResponseItemActor]Provides details about the actor who performed the action.
actor: Optional[AuditHistoryResponseItemActor]
Provides details about the actor who performed the action.
id: Optional[str]
The ID of the actor who performed the action. If a user performed the action, this will be their User ID.
context: Optional[Literal["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.
context: Optional[Literal["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.
organization: Optional[AuditHistoryResponseItemOrganization]Contains organization related information.
organization: Optional[AuditHistoryResponseItemOrganization]
Contains organization related information.