API: rule-cleanup
GET /api/hosts/{host_id}/rule-cleanup#
List Operations
The newest operations of this host (and its cluster peers) with their items; unexpired previews included.
Berechtigung policy.read (ansehen)
Parameter
host_id * | path | string (uuid) | |
limit | query | integer |
Antwort 200 CleanupOperationRead[]
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
actor * | string | |
can_confirm | boolean | default: false |
can_retry | boolean | default: false |
can_revert | boolean | default: false |
cluster_name | string | null | |
confirmed_at | string | null | |
created_at | string | null | |
expires_at | string | null | |
finished_at | string | null | |
heartbeat_at | string | null | |
host_id * | string | |
host_name | string | null | |
id * | string | |
items | CleanupItemRead[] | |
kind * | string | |
message | string | null | |
options | map<string, any> | |
plan | map<string, any> | null | |
revert_deadline | string | null | |
started_at | string | null | |
status * | string | |
warnings | string[] |
GET /api/hosts/{host_id}/rule-cleanup/{op_id}#
Get Operation
Berechtigung policy.read (ansehen)
Parameter
host_id * | path | string (uuid) | |
op_id * | path | string (uuid) |
Antwort 200 CleanupOperationRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
actor * | string | |
can_confirm | boolean | default: false |
can_retry | boolean | default: false |
can_revert | boolean | default: false |
cluster_name | string | null | |
confirmed_at | string | null | |
created_at | string | null | |
expires_at | string | null | |
finished_at | string | null | |
heartbeat_at | string | null | |
host_id * | string | |
host_name | string | null | |
id * | string | |
items | CleanupItemRead[] | |
kind * | string | |
message | string | null | |
options | map<string, any> | |
plan | map<string, any> | null | |
revert_deadline | string | null | |
started_at | string | null | |
status * | string | |
warnings | string[] |
POST /api/hosts/{host_id}/rule-cleanup/{op_id}/cancel#
Cancel
Drop an unused preview (only its own actor can).
Berechtigung policy.write (vorbereiten)
Parameter
host_id * | path | string (uuid) | |
op_id * | path | string (uuid) |
Antwort 200 CleanupOperationRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
actor * | string | |
can_confirm | boolean | default: false |
can_retry | boolean | default: false |
can_revert | boolean | default: false |
cluster_name | string | null | |
confirmed_at | string | null | |
created_at | string | null | |
expires_at | string | null | |
finished_at | string | null | |
heartbeat_at | string | null | |
host_id * | string | |
host_name | string | null | |
id * | string | |
items | CleanupItemRead[] | |
kind * | string | |
message | string | null | |
options | map<string, any> | |
plan | map<string, any> | null | |
revert_deadline | string | null | |
started_at | string | null | |
status * | string | |
warnings | string[] |
POST /api/hosts/{host_id}/rule-cleanup/{op_id}/confirm#
Confirm
"I still have access": re-reads every node first. Browser session only, never with an API token.
Berechtigung policy.write (vorbereiten) · nur Browser-Sitzung, kein API-Token
Parameter
host_id * | path | string (uuid) | |
op_id * | path | string (uuid) |
Antwort 200 CleanupOperationRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
actor * | string | |
can_confirm | boolean | default: false |
can_retry | boolean | default: false |
can_revert | boolean | default: false |
cluster_name | string | null | |
confirmed_at | string | null | |
created_at | string | null | |
expires_at | string | null | |
finished_at | string | null | |
heartbeat_at | string | null | |
host_id * | string | |
host_name | string | null | |
id * | string | |
items | CleanupItemRead[] | |
kind * | string | |
message | string | null | |
options | map<string, any> | |
plan | map<string, any> | null | |
revert_deadline | string | null | |
started_at | string | null | |
status * | string | |
warnings | string[] |
POST /api/hosts/{host_id}/rule-cleanup/{op_id}/deploy#
Deploy
Execute a preview. Admin only; the live state must still give the fingerprint of the preview.
Berechtigung policy.cleanup (verwalten)
Parameter
host_id * | path | string (uuid) | |
op_id * | path | string (uuid) |
Anfrage-Body ConfirmName
1 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
confirm_name * | string | maxLength 255 |
Antwort 200 CleanupOperationRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
actor * | string | |
can_confirm | boolean | default: false |
can_retry | boolean | default: false |
can_revert | boolean | default: false |
cluster_name | string | null | |
confirmed_at | string | null | |
created_at | string | null | |
expires_at | string | null | |
finished_at | string | null | |
heartbeat_at | string | null | |
host_id * | string | |
host_name | string | null | |
id * | string | |
items | CleanupItemRead[] | |
kind * | string | |
message | string | null | |
options | map<string, any> | |
plan | map<string, any> | null | |
revert_deadline | string | null | |
started_at | string | null | |
status * | string | |
warnings | string[] |
POST /api/hosts/{host_id}/rule-cleanup/{op_id}/retry#
Retry
Revert again after revert_failed, or read the firewall again for a delete/restore with an unclear item.
Berechtigung policy.cleanup (verwalten)
Parameter
host_id * | path | string (uuid) | |
op_id * | path | string (uuid) |
Antwort 200 CleanupOperationRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
actor * | string | |
can_confirm | boolean | default: false |
can_retry | boolean | default: false |
can_revert | boolean | default: false |
cluster_name | string | null | |
confirmed_at | string | null | |
created_at | string | null | |
expires_at | string | null | |
finished_at | string | null | |
heartbeat_at | string | null | |
host_id * | string | |
host_name | string | null | |
id * | string | |
items | CleanupItemRead[] | |
kind * | string | |
message | string | null | |
options | map<string, any> | |
plan | map<string, any> | null | |
revert_deadline | string | null | |
started_at | string | null | |
status * | string | |
warnings | string[] |
POST /api/hosts/{host_id}/rule-cleanup/{op_id}/revert#
Revert
Take the change back now (the same code the sweeper runs when the window passes).
Berechtigung policy.deploy (ausrollen)
Parameter
host_id * | path | string (uuid) | |
op_id * | path | string (uuid) |
Antwort 200 CleanupOperationRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
actor * | string | |
can_confirm | boolean | default: false |
can_retry | boolean | default: false |
can_revert | boolean | default: false |
cluster_name | string | null | |
confirmed_at | string | null | |
created_at | string | null | |
expires_at | string | null | |
finished_at | string | null | |
heartbeat_at | string | null | |
host_id * | string | |
host_name | string | null | |
id * | string | |
items | CleanupItemRead[] | |
kind * | string | |
message | string | null | |
options | map<string, any> | |
plan | map<string, any> | null | |
revert_deadline | string | null | |
started_at | string | null | |
status * | string | |
warnings | string[] |
POST /api/hosts/{host_id}/rule-cleanup/items/{item_id}/restore#
Restore
Bring a deleted rule back, switched OFF, at its old position (a new UUID). The result is the restore run; ``warnings`` can hold BEREINIGUNG_POSITION_NICHT_WIEDERHERSTELLBAR.
Berechtigung policy.cleanup (verwalten)
Parameter
host_id * | path | string (uuid) | |
item_id * | path | string (uuid) |
Anfrage-Body ConfirmName
1 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
confirm_name * | string | maxLength 255 |
Antwort 200 CleanupOperationRead
22 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
actor * | string | |
can_confirm | boolean | default: false |
can_retry | boolean | default: false |
can_revert | boolean | default: false |
cluster_name | string | null | |
confirmed_at | string | null | |
created_at | string | null | |
expires_at | string | null | |
finished_at | string | null | |
heartbeat_at | string | null | |
host_id * | string | |
host_name | string | null | |
id * | string | |
items | CleanupItemRead[] | |
kind * | string | |
message | string | null | |
options | map<string, any> | |
plan | map<string, any> | null | |
revert_deadline | string | null | |
started_at | string | null | |
status * | string | |
warnings | string[] |
POST /api/hosts/{host_id}/rule-cleanup/preview#
Preview
Recompute the plan from the live firewall(s) and store a 5-minute preview bound to the caller.
Berechtigung policy.write (vorbereiten)
Parameter
host_id * | path | string (uuid) |
Anfrage-Body PreviewRequest
6 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
ack_text_version | string | null | |
acknowledge | string[] | |
items | PreviewItem[] | |
kind | "disable" | "enable" | "delete" | null | |
unused_days | integer | null | |
uuids | string[] |
Antwort 200 CleanupPreviewRead
7 Felder anzeigen
| Feld | Typ | Hinweise |
|---|---|---|
expires_at | string | null | |
kind * | string | |
max_rules * | integer | |
operation * | CleanupOperationRead | |
plan * | map<string, any> | |
preview_id * | string | |
window_seconds * | integer |