Class: Infrawrench::PostureNamespace
- Inherits:
-
Object
- Object
- Infrawrench::PostureNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.posture
Instance Attribute Summary collapse
-
#dismissals ⇒ PostureDismissalsNamespace
readonly
client.posture.dismissals. -
#settings ⇒ PostureSettingsNamespace
readonly
client.posture.settings.
Instance Method Summary collapse
-
#get(org_id: nil, request_options: nil) ⇒ Hash
List security posture findings on synced resources.
-
#initialize(transport) ⇒ PostureNamespace
constructor
private
A new instance of PostureNamespace.
Constructor Details
#initialize(transport) ⇒ PostureNamespace
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 PostureNamespace.
10423 10424 10425 10426 10427 |
# File 'lib/infrawrench/client.rb', line 10423 def initialize(transport) @transport = transport @dismissals = PostureDismissalsNamespace.new(@transport) @settings = PostureSettingsNamespace.new(@transport) end |
Instance Attribute Details
#dismissals ⇒ PostureDismissalsNamespace (readonly)
Returns client.posture.dismissals.
10417 10418 10419 |
# File 'lib/infrawrench/client.rb', line 10417 def dismissals @dismissals end |
#settings ⇒ PostureSettingsNamespace (readonly)
Returns client.posture.settings.
10419 10420 10421 |
# File 'lib/infrawrench/client.rb', line 10419 def settings @settings end |
Instance Method Details
#get(org_id: nil, request_options: nil) ⇒ Hash
List security posture findings on synced resources
Plugin-declared security checks evaluated over already-synced resource
state: public buckets, 0.0.0.0/0 ingress rules, unencrypted disks,
publicly reachable database endpoints, stale credentials, missing
deletion/backup protection. No provider API calls are made and results
reflect the last sync. Findings are sorted worst severity first, with
per-severity counts. Findings the organization has dismissed are reported
separately under dismissed and are excluded from findings, counts
and the posture alerts.
Requires permission: resources:read.
GET /api/org/orgId/posture
10450 10451 10452 10453 10454 10455 10456 10457 |
# File 'lib/infrawrench/client.rb', line 10450 def get(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/posture", path_params: { "orgId" => org_id }, request_options: ) end |