portainer_network_disconnect
Disconnects a container from a network using network ID and container ID. Supports forced disconnection.
Instructions
Disconnect a container from a network.
Args: network_id: Network ID or name container_id: Container ID or name force: Force disconnect (default false) endpoint_id: Target endpoint ID (uses default if omitted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network_id | Yes | ||
| container_id | Yes | ||
| force | No | ||
| endpoint_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |