change_protection
Enable or disable protection for Hetzner Cloud servers, volumes, networks, load balancers, IPs, and images to prevent deletion; for servers, also block rebuilds.
Instructions
Enable/disable protection on a server, volume, floating_ip, primary_ip, load_balancer, network or image (snapshot/backup). Protected resources cannot be deleted (servers: nor rebuilt). delete applies to all; rebuild only to servers, and the API currently requires a server's delete and rebuild to be equal, so passing just one for a server sets both. For DNS use change_zone_protection / change_rrset_protection; certificates have no protection. Returns an Action
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>",
"id": "<id>"
},
"name": "change_protection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Resource ID | |
| delete | No | Prevent deletion | |
| rebuild | No | Servers only: prevent rebuild | |
| resource | Yes |