Replace the enabled set of Scaleway Audit Trail custom alert rules
scaleway_audit_replace_enabled_custom_alert_rulesAtomically replace the complete set of enabled custom alert rules in Scaleway audit. Specified rules become enabled; omitted ones are disabled. Requires confirmation.
Instructions
Atomically replace the COMPLETE set of enabled custom alert rules: after this call, exactly the listed custom rules are enabled and every other custom rule is disabled - including ones you did not mention. Prefer scaleway_audit_set_custom_alert_rules_enabled (additive) unless you genuinely want full-replace semantics. 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. CAVEAT (live-verified 2026-08-18): Scaleway documents the custom-alert-rules endpoints, but the deployed API (fr-par) returns HTTP 501 'unknown method' for every custom-alert-rules method - this tool is kept for when Scaleway implements them and currently surfaces that error verbatim. Don't retry on 501; the preconfigured rules via scaleway_audit_list_alert_rules are the working alternative today.
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_custom_alert_rule_ids | Yes | The COMPLETE set of custom rule IDs that should be enabled afterwards. Every currently-enabled custom rule NOT in this list gets disabled. An empty array disables ALL custom alert rules. |