vs_toggle
Enable or disable a Virtual Service, showing impact (VIPs, pools, member counts) for confirmation before applying the change.
Instructions
[WRITE] Enable or disable a Virtual Service. Disabling stops all traffic to it.
Without confirm=True this only previews: it returns blast_radius (the VS name and uuid, whether it is enabled now, its VIPs and oper status, and the pools and member counts behind it) and changes nothing. Show that to the user and get their explicit decision. Do not set confirm=True on your own because the user asked earlier: they have not seen what it changes yet. A VS already in the requested state returns action "noop".
Refused with confirm=True: a VS whose uuid or pools cannot be read (the change would be blind). Use vs_status first to check current state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact Virtual Service name. | |
| enable | Yes | true to enable, false to disable. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True applies it. | |
| confirmed | No | Deprecated alias for confirm; removed in the next minor release. confirmed=False holds even when confirm=True. |