Replace the enabled set of Scaleway Audit Trail alert rules
scaleway_audit_replace_enabled_alert_rulesReplace all enabled preconfigured alert rules with exactly the specified set in one atomic operation. Any rules not listed are disabled, syncing the alert configuration to a declared state.
Instructions
Atomically replace the COMPLETE set of enabled preconfigured alert rules: after this call, exactly the listed rules are enabled and every other preconfigured rule is disabled - including ones you did not mention. Prefer scaleway_audit_set_alert_rules_enabled (additive) unless you genuinely want full-replace semantics, e.g. syncing to a declared state. Live-verified 2026-08-18: an unknown rule ID rejects the whole request (HTTP 404) - no partial application. Requires confirm=true. Needs more than AuditTrailReadOnly on THIS server's own credential (read-only covers just the query tools) - if the call fails with permissions_denied, grant the Audit Trail write permission set via scaleway_iam_set_policy_rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | Defaults to the server's configured region (fr-par). | |
| confirm | Yes | Must be explicitly true. This is a full-replace: rules omitted from the list are silently disabled. | |
| enabled_alert_rule_ids | Yes | The COMPLETE set of rule IDs that should be enabled afterwards. Every currently-enabled rule NOT in this list gets disabled. An empty array disables ALL alert rules. |