Audit Logs
Bearer authentication
Start date of time range to fetch data in ISO 8601 timestamp format.
2023-06-06T12:09:18.211ZEnd date of time range to fetch data in ISO 8601 timestamp format.
2023-06-07T12:09:18.211ZThe offset of the first item returned in the collection.
100The number of samples to take in the specified time range.
20Example: 20Sort results in descending or ascending order.
ascPossible values: Sort results by a parameters.
Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.
["cluster_name==my-cluster_name","entity_type==cluster,entity_name==test"]Executed successfully
2000100Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/audit/log?start=2023-06-06T12%3A09%3A18.211Z&end=2023-06-07T12%3A09%3A18.211Z HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"total": 2000,
"next": 100,
"audit_logs": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2022-01-01T03:49:52.531Z",
"tenant_id": 12345,
"subject": "researcher@run.ai",
"subject_type": "User",
"source_ip": "0.0.0.0",
"action": "create",
"http_method": "GET",
"url": "https://example.com",
"entity_type": "project",
"entity_name": "project-1",
"entity_id": "1234",
"result": "Succeeded",
"http_status_code": 200,
"cluster_name": "my favorite cluster",
"cluster_id": "123e4567-e89b-12d3-a456-426614174000",
"request_id": "bb0c4742-e52f-4d5e-bfee-2c4ff57c339c",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
]
}Bearer authentication
CSVPossible values: Start date of time range to fetch data in ISO 8601 timestamp format.
2023-06-06T12:09:18.211ZEnd date of time range to fetch data in ISO 8601 timestamp format.
2023-06-07T12:09:18.211ZThe offset of the first item returned in the collection.
100Maximum number of records to include in the file. The hard cap is 100,000. Use the offset parameter to page through additional records.
20Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.
["cluster_name==my-cluster_name","entity_type==cluster,entity_name==test"]File downloaded
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/audit/log/file?start=2023-06-06T12%3A09%3A18.211Z&end=2023-06-07T12%3A09%3A18.211Z HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Last updated