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, 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.
722 723 724 |
# File 'lib/infrawrench/client.rb', line 722 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, from: nil, to: nil, request_options: nil) ⇒ Hash
List audit log entries (paginated, filterable)
Requires permission: audit:read.
GET /api/org/orgId/audit-logs
744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 |
# File 'lib/infrawrench/client.rb', line 744 def get( org_id: nil, page: nil, page_size: nil, action: nil, entity_type: nil, user_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, "from" => from, "to" => to }, request_options: ) end |