API calls for all endpoints tagged Audit.
Summary
Functions
Get supported audit log scenarios Returns the supported audit log actions grouped by target type. The list is derived at runtime from the audited routes and system events, so it always reflects what can actually appear in the audit log.
Get audit logs for organization
Functions
@spec get_audit_scenarios( Tesla.Env.client(), keyword() ) :: {:ok, ExDaytona.Model.AuditScenarios.t()} | {:error, Tesla.Env.t()}
Get supported audit log scenarios Returns the supported audit log actions grouped by target type. The list is derived at runtime from the audited routes and system events, so it always reflects what can actually appear in the audit log.
Parameters
connection(ExDaytona.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, ExDaytona.Model.AuditScenarios.t}on success{:error, Tesla.Env.t}on failure
@spec get_organization_audit_logs(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExDaytona.Model.PaginatedAuditLogs.t()} | {:error, Tesla.Env.t()}
Get audit logs for organization
Parameters
connection(ExDaytona.Connection): Connection to serverorganization_id(String.t): Organization IDopts(keyword): Optional parameters:page(number()): Page number of the results:limit(number()): Number of results per page:from(DateTime.t): Deprecated alias forcreatedAt[gte]. From date (ISO 8601 format).:to(DateTime.t): Deprecated alias forcreatedAt[lte]. To date (ISO 8601 format).:nextToken(String.t): Token for cursor-based pagination. When provided, takes precedence over page parameter.:id(StringFilter): Filter by audit log ID.:actorId(StringFilter): Filter by actor user ID.:actorEmail(StringFilter): Filter by actor email.:actorApiKeyPrefix(StringFilter): Filter by actor API key prefix.:actorApiKeySuffix(StringFilter): Filter by actor API key suffix.:action(StringFilter): Filter by action.:targetType(StringFilter): Filter by target type.:targetId(StringFilter): Filter by target ID.:statusCode(IntFilter): Filter by HTTP status code.:createdAt(DateFilter): Filter by creation timestamp.
Returns
{:ok, ExDaytona.Model.PaginatedAuditLogs.t}on success{:error, Tesla.Env.t}on failure