POST
/
v1
/
elastic-ips
/
{id}
/
associate
associate elastic IP with instance
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"
}'
{
"result": "container 12345678-1234-2234-3234-xxxxxxxxxxxxxx has been restarted"
}

Path Parameters

id
string<uuid>
required

Body

application/json
instanceID
string<uuid> | null

set instanceID and instanceType to associate the elastic IP to the instance, set to null to disassociate the elastic IP from the instance

instanceType
enum<string> | null
Available options:
baremetal,
container

Response

An action completed successfully

result
string
required