Attach a Compute instance to an Elastic IP
PUT /elastic-ip/{id}:attach
curl \
-X PUT https://api-ch-gva-2.exoscale.com/v2/elastic-ip/{id}:attach \
-H "Content-Type: application/json" \
-d '{"instance":{"id":"string"}}'
Request examples
{
"instance": {
"id": "string"
}
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}