Primary IP Actions
Change Primary IP Protection
Changes the protection configuration of a Primary IP.
A Primary IPs deletion protection can only be enabled if its auto_delete property is set to false.
post/primary_ips/{id}/actions/change_protection
Request
- Base URL: https://api.hetzner.cloud/v1
- URL: https://api.hetzner.cloud/v1/primary_ips/{id}/actions/change_protection
- Auth: HTTP bearer
Path parameters
idinteger required
ID of the Primary IP.
Example:42
ID of the Primary IP.
Request body
Response
Request succeeded.
Example response
{
"action": {
"id": 42,
"command": "start_resource",
"started": "2016-01-30T23:55:00Z",
"finished": "2016-01-30T23:55:00Z",
"progress": 100,
"resources": [
{
"id": 42,
"type": "server"
}
],
"error": {
"code": "action_failed",
"message": "Action failed"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.