Class: Infrawrench::NetworkFlowsSettingsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::NetworkFlowsSettingsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.network_flows.settings
Instance Method Summary collapse
-
#get(org_id: nil, request_options: nil) ⇒ Hash
Read the network flow collection switch.
-
#initialize(transport) ⇒ NetworkFlowsSettingsNamespace
constructor
private
A new instance of NetworkFlowsSettingsNamespace.
-
#update(body:, org_id: nil, request_options: nil) ⇒ Hash
Turn network flow collection on or off.
Constructor Details
#initialize(transport) ⇒ NetworkFlowsSettingsNamespace
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 NetworkFlowsSettingsNamespace.
9849 9850 9851 |
# File 'lib/infrawrench/client.rb', line 9849 def initialize(transport) @transport = transport end |
Instance Method Details
#get(org_id: nil, request_options: nil) ⇒ Hash
Read the network flow collection switch
Requires permission: costs:read.
GET /api/org/orgId/network-flows/settings
9865 9866 9867 9868 9869 9870 9871 9872 |
# File 'lib/infrawrench/client.rb', line 9865 def get(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/network-flows/settings", path_params: { "orgId" => org_id }, request_options: ) end |
#update(body:, org_id: nil, request_options: nil) ⇒ Hash
Turn network flow collection on or off
Collection is off by default. Enabling it authorizes Infrawrench to
run daily queries against the provider's log store — and on AWS those
queries are billed to your own cloud account per GB of log data scanned,
every day, until you turn them off. That is why the write is governed by
org:settings:write rather than costs:write, and why it is
audit-logged.
Requires permission: org:settings:write.
PUT /api/org/orgId/network-flows/settings
Raises on 400: Bad request
Raises on 403: Forbidden
9898 9899 9900 9901 9902 9903 9904 9905 9906 |
# File 'lib/infrawrench/client.rb', line 9898 def update(body:, org_id: nil, request_options: nil) @transport.request( http_method: "PUT", path: "/api/org/{orgId}/network-flows/settings", path_params: { "orgId" => org_id }, body: body, request_options: ) end |