Skip to main content
POST
Clean up a batch of cloud waste

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-ankra-organisation-id
string

PAT organisation override.

Body

application/json
finding_ids
string<uuid>[]
required
Required array length: 1 - 100 elements

The written consent the kinds that cannot be recovered need, applied to every finding of the batch: the value naming one kind (consent_by_kind on the consent policy), which covers that kind's findings only, or the generic no_snapshot_acknowledged, which is refused on every finding needing consent when the batch holds more than one such kind.

Available options:
no_snapshot_acknowledged,
delete_unattached_volume_acknowledged,
delete_released_pv_acknowledged,
delete_stopped_server_acknowledged,
release_unassigned_ip_acknowledged,
delete_idle_load_balancer_acknowledged
min_unattached_days
integer | null

The age a volume must have been seen unattached (or, for a persistent volume, released); at least 30, a smaller value is raised to 30.

Required range: 0 <= x <= 3650

Response

At least one cleanup started

results
CloudWasteBatchResult · object[]
required
started
integer
required
refused
integer
required
failed
integer
required
partial
boolean
required

True when some findings started and some did not.