pcs_resource_ban
Prevent a resource from running on a node by banning it in the Pacemaker cluster. Optionally specify a lifetime for the ban.
Instructions
Ban a resource from a node via 'pcs resource ban [lifetime]'.
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": {
"resource": "<resource>",
"node": "<node>"
},
"name": "pcs_resource_ban"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Node to ban the resource from | |
| sudo | No | Prefix commands with sudo on the remote host | |
| cluster | No | Named cluster in config | |
| lifetime | No | Optional lifetime (e.g. 'PT1H' or 'inf') | |
| resource | Yes | Resource ID to ban | |
| timeoutMs | No | SSH command timeout in milliseconds | |
| sshConfigHost | No | OpenSSH Host alias to resolve connection parameters | |
| sshConfigPath | No | Path to OpenSSH config (defaults to ~/.ssh/config) |