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.
1776 1777 1778 |
# File 'lib/infrawrench/client.rb', line 1776 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
1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 |
# File 'lib/infrawrench/client.rb', line 1799 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 |