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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"network_id": "<network_id>",
"container_id": "<container_id>"
},
"name": "portainer_network_disconnect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| network_id | Yes | ||
| endpoint_id | No | ||
| container_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |