v1

latestSwagger 2.02026-08-04232286653.5 KB
Audit Logs

Get audit logs belonging to the specified organization. User must be part of the organization.

get/organizations/{organization_id}/audit-logs

Path parameters

organization_idstring required

Query parameters

project_idsstring[]
start_timestring
end_timestring
actionsstring[]
actor_idsstring[]
actor_emailsstring[]
actor_typesstring[]
target_idsstring[]
target_typesstring[]
target_namesstring[]
locationsstring[]
resultsstring[]
results_notstring[]
surfacesstring[]
limitstring
next_tokenstring
prev_tokenstring

Response

next_page_tokenstring

Base64 encoded token representing the starting of the next page of log entry. Empty if currently on the last page.

prev_page_tokenstring

Base64 encoded token representing the starting previous page of log entry. Empty if currently on the first page.

Example response

{
  "items": [
    {
      "action": "Create",
      "action_detail": "Attach Disk",
      "actor_email": "xxxx@gmail.coom",
      "actor_id": "e384a1de-81f8-4cb2-b312-a7d88a9bf9cb || \"system\"",
      "actor_type": "user || admin || system",
      "client_ip": "10.2.5.355",
      "end_time": "\"2024-08-24T05:25:33.860Z\"",
      "error_message": "\"The requested resource is out of stock. Please try again later.\"",
      "organization_id": "d10efcc0-7dba-4163-a3f0-f48aae20712a",
      "organization_name": "crusoe.ai",
      "project_id": "e384a1de-81f8-4cb2-b312-a7d88a9bf9cb",
      "project_name": "e384a1de-81f8-4cb2-b312-a7d88a9bf9cb",
      "result": "OK",
      "start_time": "\"2024-08-24T05:25:30.954Z\"",
      "surface": "browser",
      "target_type": "VM"
    }
  ],
  "next_page_token": "bXktbGFzdC12bQ",
  "prev_page_token": "bXktZmlyc3Qtdm0"
}