---
title: "Detach a Compute instance from an Elastic IP"
method: PUT
path: "/elastic-ip/{id}:detach"
tags: ["elastic-ip"]
---

# Detach a Compute instance from an Elastic IP

`PUT /elastic-ip/{id}:detach`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/elastic-ip/{id}:detach`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/elastic-ip/:id:detach/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `instance` InstanceRef, required: Target Instance
    - `id` string, uuid: Instance ID

## Response `200`

200

- Operation: Operation
  - `id` string, uuid: Operation ID
  - `reason` 'incorrect' | 'unknown' | 'unavailable' | 'forbidden' | 'busy' | 'fault' | 'partial' | 'not-found' | 'interrupted' | 'unsupported' | 'conflict': Operation failure reason
  - `reference` object: Related resource reference
    - `id` string, uuid: Reference ID
    - `link` string: Link to the referenced resource
    - `command` string: Command name
  - `message` string: Operation message
  - `state` 'failure' | 'pending' | 'success' | 'timeout': Operation status

## Changes

- **2023-12-08** `ec6a2a6bc1c1`: 15 warning, 1 info
  - removed the request property `instance/anti-affinity-groups`
  - removed the request property `instance/deploy-target`
  - removed the request property `instance/disk-size`
  - removed the request property `instance/elastic-ips`
  - …12 more
- **2023-06-06** `cf7b08181585`: 5 info
  - added the new `at-vie-2` enum value to the request property `instance/instance-type/zones/items/`
  - added the new `at-vie-2` enum value to the request property `instance/template/zones/items/`
  - the `instance/deploy-target/description` request property's minLength was decreased from `1` to `0`
  - the `instance/private-networks/items/description` request property's minLength was decreased from `1` to `0`
  - …1 more
- **2023-02-03** `6e9809fd1444`: 17 breaking, 19 warning, 11 info
  - the request property `instance/deploy-target/id` became required
  - the `instance/anti-affinity-groups/items/name` request property's minLength was increased from `0` to `1`
  - the `instance/deploy-target/description` request property's minLength was increased from `0` to `1`
  - the `instance/deploy-target/name` request property's minLength was increased from `0` to `1`
  - …43 more

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/elastic-ip/:id:detach/put.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
