cURL
curl --request POST \ --url https://console.gmicloud.com/api/v1/elastic-ips/{id}/associate \ --header 'Content-Type: application/json' \ --data '{ "instanceID": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "instanceType": "baremetal" }'
200
example
{ "result": "container 12345678-1234-2234-3234-xxxxxxxxxxxxxx has been restarted"}
set instanceID and instanceType to associate the elastic IP to the instance, set to null to disassociate the elastic IP from the instance
baremetal
container
An action completed successfully