Skip to main content
POST
Clean up one cloud-waste finding

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.

Path Parameters

finding_id
string<uuid>
required

Body

application/json

The value naming the finding's kind (consent_by_kind on the consent policy), or the generic no_snapshot_acknowledged. A kind-named value for another kind is refused.

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
Required range: 0 <= x <= 3650

Response

The cleanup operation was created

The cleanup operation and what it will do. snapshot_retained_days is set only for a snapshot-then-delete; delete (an unattached volume, on written consent) keeps no copy, and neither does reclaim_delete (a released persistent volume set to Delete on written consent, so its provisioner deletes it and the disk behind it; the operation waits for it to leave its cluster).

action
enum<string>
required
Available options:
snapshot_then_delete,
release,
delete,
reclaim_delete
kind
string
required
operation_id
string<uuid>
required
resource_name
string
required
snapshot_retained_days
integer | null
required
waste_finding_id
string<uuid>
required