Class: Infrawrench::OrphansNamespace
- Inherits:
-
Object
- Object
- Infrawrench::OrphansNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.orphans
Instance Method Summary collapse
-
#get(org_id: nil, request_options: nil) ⇒ Hash
List likely-orphaned and idle resources.
-
#initialize(transport) ⇒ OrphansNamespace
constructor
private
A new instance of OrphansNamespace.
Constructor Details
#initialize(transport) ⇒ OrphansNamespace
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 OrphansNamespace.
2697 2698 2699 |
# File 'lib/infrawrench/client.rb', line 2697 def initialize(transport) @transport = transport end |
Instance Method Details
#get(org_id: nil, request_options: nil) ⇒ Hash
List likely-orphaned and idle resources
Scans the organization's already-synced resources against each plugin's declarative orphan heuristics — unattached volumes, unassigned floating/elastic IPs, reserved-but-unused static IPs — and returns the matches grouped by account, each with the plugin's reason. Purely a read over stored state: no provider API calls are made, so results reflect the last sync. Where the org's collected cost data has per-resource rows, matches are annotated with trailing spend.
Requires permission: resources:read.
GET /api/org/orgId/orphans
2721 2722 2723 2724 2725 2726 2727 2728 |
# File 'lib/infrawrench/client.rb', line 2721 def get(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/orphans", path_params: { "orgId" => org_id }, request_options: ) end |