Data Access Logs
Operations Summary
List Data Access Logs
| http \
GET \
https://api.example.com/api/data-access-logs/ \
Authorization:"Token YOUR_API_TOKEN"
|
1
2
3
4
5
6
7
8
9
10
11
12 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.accessor_type_enum import AccessorTypeEnum # (1)
from waldur_api_client.models.global_user_data_access_log_o_enum import GlobalUserDataAccessLogOEnum # (2)
from waldur_api_client.api.data_access_logs import data_access_logs_list # (3)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = data_access_logs_list.sync(client=client)
for item in response:
print(item)
|
- Model Source:
AccessorTypeEnum
- Model Source:
GlobalUserDataAccessLogOEnum
- API Source:
data_access_logs_list
| import { dataAccessLogsList } from 'waldur-js-client';
try {
const response = await dataAccessLogsList({
auth: "Token YOUR_API_TOKEN"
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Description |
accessor_type |
string |
Type of accessor
Enum: staff, support, organization_member, service_provider, self |
accessor_uuid |
string (uuid) |
|
end_date |
string (date) |
|
o |
array |
Ordering
|
page |
integer |
A page number within the paginated result set. |
page_size |
integer |
Number of results to return per page. |
query |
string |
|
start_date |
string (date) |
|
user_uuid |
string (uuid) |
|
200 -
The response body is an array of objects, where each object has the following structure:
| Field |
Type |
Description |
uuid |
string (uuid) |
|
timestamp |
string (date-time) |
|
accessor_type |
string |
Enum: staff, support, organization_member, service_provider, self |
accessed_fields |
array of strings |
|
user |
object |
|
user.uuid |
string (uuid) |
|
user.username |
string |
|
user.full_name |
string |
|
accessor |
object |
|
accessor.uuid |
string (uuid) |
|
accessor.username |
string |
|
accessor.full_name |
string |
|
ip_address |
any |
An IPv4 or IPv6 address. |
context |
object (free-form) |
|
Retrieve
Delete