Enable or disable Scaleway Audit Trail custom alert rules
scaleway_audit_set_custom_alert_rules_enabledEnable or disable specific custom alert rules by ID, affecting only the listed rules and leaving other rules untouched. Requires Audit Trail write permission.
Instructions
Enable or disable specific custom alert rules by ID. Touches ONLY the listed rules - the state of every other custom rule is left unchanged (unlike scaleway_audit_replace_enabled_custom_alert_rules, which rewrites the whole enabled set). Get IDs from scaleway_audit_list_custom_alert_rules. 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). | |
| enabled | Yes | true: enable exactly these rules (others untouched). false: disable exactly these rules (others untouched). | |
| rule_ids | Yes | IDs of the custom rules to enable or disable - from scaleway_audit_list_custom_alert_rules. |