Detach Public IP
POST
/api/v1/reserve_ips/public_reserveip_actions/Query parameters
project_idQuerystringoptionalIdentifier of the project to scope the request to. Optional; if omitted, the account's default project is used.
- optional
- if omitted, the request is applied to the default project
example{{project_id}}apikeyQuerystringoptionalAPI key used to authorize the detach public IP request
- required
- non-empty string
example{{base_url}}locationQuerystringoptionalE2E Myaccount region where the public IP is located
- must be a valid E2E Myaccount region name (e.g., eastus, westus2)
- cannot be empty
example{{location}}
Request body
application/json
JSON-formatted string specifying the public IP to detach, the operation type, and the target VM ID
example
{
"public_ip": {{public_ip}},
"type": "detach",
"vm_id": {{vm_id}}
}- must be valid JSON
- must contain a "public_ip" field
- must contain a "type" field set to "detach"
- must contain a "vm_id" field
Responses
200Successful response
HTTP status code of the detach operation
example
200- integer
- value between 100 and 599
Status message indicating the result of the detach public IP operation.
example
IP Detached Successfully.- Must be a non-empty string
- Maximum length of 255 characters