windmill-api 1.683.2

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
# \AuditApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_audit_log**]AuditApi.md#get_audit_log | **GET** /w/{workspace}/audit/get/{id} | get audit log (requires admin privilege)
[**list_audit_logs**]AuditApi.md#list_audit_logs | **GET** /w/{workspace}/audit/list | list audit logs (requires admin privilege)



## get_audit_log

> models::AuditLog get_audit_log(workspace, id)
get audit log (requires admin privilege)

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**id** | **i32** |  | [required] |

### Return type

[**models::AuditLog**](AuditLog.md)

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_audit_logs

> Vec<models::AuditLog> list_audit_logs(workspace, page, per_page, before, after, username, operation, operations, exclude_operations, resource, action_kind, all_workspaces)
list audit logs (requires admin privilege)

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**page** | Option<**i32**> | which page to return (start at 1, default 1) |  |
**per_page** | Option<**i32**> | number of items to return for a given page (default 30, max 100) |  |
**before** | Option<**String**> | filter on started before (inclusive) timestamp |  |
**after** | Option<**String**> | filter on created after (exclusive) timestamp |  |
**username** | Option<**String**> | filter on exact username of user |  |
**operation** | Option<**String**> | filter on exact or prefix name of operation |  |
**operations** | Option<**String**> | comma separated list of exact operations to include |  |
**exclude_operations** | Option<**String**> | comma separated list of operations to exclude |  |
**resource** | Option<**String**> | filter on exact or prefix name of resource |  |
**action_kind** | Option<**String**> | filter on type of operation |  |
**all_workspaces** | Option<**bool**> | get audit logs for all workspaces |  |

### Return type

[**Vec<models::AuditLog>**](AuditLog.md)

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)