portainer_network_disconnect
Disconnect a container from a network in Portainer. Provide network ID, container ID, and optionally force the 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 |