Class: Infrawrench::AuditLogsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::AuditLogsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.audit_logs
Instance Method Summary collapse
-
#get(org_id: nil, page: nil, page_size: nil, action: nil, entity_type: nil, user_id: nil, api_key_id: nil, from: nil, to: nil, request_options: nil) ⇒ Hash
List audit log entries (paginated, filterable).
-
#initialize(transport) ⇒ AuditLogsNamespace
constructor
private
A new instance of AuditLogsNamespace.
Constructor Details
#initialize(transport) ⇒ AuditLogsNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AuditLogsNamespace.
1440 1441 1442 |
# File 'lib/infrawrench/client.rb', line 1440 def initialize(transport) @transport = transport end |
Instance Method Details
#get(org_id: nil, page: nil, page_size: nil, action: nil, entity_type: nil, user_id: nil, api_key_id: nil, from: nil, to: nil, request_options: nil) ⇒ Hash
List audit log entries (paginated, filterable)
Requires permission: audit:read.
GET /api/org/orgId/audit-logs
1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 |
# File 'lib/infrawrench/client.rb', line 1463 def get( org_id: nil, page: nil, page_size: nil, action: nil, entity_type: nil, user_id: nil, api_key_id: nil, from: nil, to: nil, request_options: nil ) @transport.request( http_method: "GET", path: "/api/org/{orgId}/audit-logs", path_params: { "orgId" => org_id }, query: { "page" => page, "pageSize" => page_size, "action" => action, "entityType" => entity_type, "userId" => user_id, "apiKeyId" => api_key_id, "from" => from, "to" => to }, request_options: ) end |