Skip to main content
Remediation actions let InfraAudit automatically fix drift and vulnerability findings in your cloud environment. Actions go through an approval gate before execution, and completed actions can be rolled back within a configurable window. Base path: /api/v1/remediation

GET /remediation — list remediation actions

Returns a paginated list of remediation actions.

Query parameters

status
string
Filter by status: pending_approval, approved, executing, completed, failed, or rolled_back.
resource_id
integer
Filter by resource.
provider_id
integer
Filter by provider.
page
integer
default:"1"
Page number.
per_page
integer
default:"20"
Results per page.

Response

risk
string
Estimated risk of applying this remediation: low, medium, or high.

GET /remediation/ — get remediation details

Returns full details including the pre-execution snapshot, estimated risk assessment, and execution log.

POST /remediation — create remediation

Creates a new remediation action for a drift or vulnerability finding.

Request body

finding_type
string
required
The type of finding: drift or vulnerability.
finding_id
integer
required
The ID of the finding to remediate.

POST /remediation//approve — approve a remediation

Approves a remediation action so it can be executed. Action must be in pending_approval status.

Request body (optional)

comment
string
Approval comment for the audit log.

POST /remediation//execute — run a remediation

Executes an approved remediation action against the cloud provider API. Action must be in approved status.

Response 202


POST /remediation//rollback — rollback a remediation

Reverses a completed remediation action. Available within the rollback window after the action reaches completed status.

POST /remediation//reject — reject a remediation

Rejects a pending remediation action.

Request body (optional)

reason
string
Reason for rejection.