vs_toggle
Enable or disable a Virtual Service to manage traffic. Use confirmation for disabling to avoid unintended downtime; enabling always applies.
Instructions
[WRITE] Enable or disable a Virtual Service. Disabling stops all traffic to it.
Returns a one-line result. Use vs_status first to check current state.
SAFETY: disabling requires confirmed=True; without it you get a preview only. Enabling is always safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact Virtual Service name. | |
| enable | Yes | true to enable, false to disable. | |
| confirmed | No | Gates the disable only. With enable=false, the default false returns a preview naming the VS that would stop serving traffic and changes nothing; true performs the disable. Ignored when enable=true — enabling always executes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |