Create an Elastic IP
Body Required
-
addressfamily string
Elastic IP address family (default: :inet4)
Values are
inet4
orinet6
. -
description string
Elastic IP description
Maximum length is
255
. -
healthcheck object
Elastic IP healthcheck
Additional properties are allowed.
-
labels object
Resource labels
POST /elastic-ip
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/elastic-ip \
-H "Content-Type: application/json" \
-d '{"addressfamily":"inet4","description":"string","healthcheck":{"strikes-ok":42,"tls-skip-verify":true,"tls-sni":"string","strikes-fail":42,"mode":"tcp","port":42,"uri":"string","interval":42,"timeout":42},"labels":{"additionalProperty1":"string","additionalProperty2":"string"}}'
Request examples
{
"addressfamily": "inet4",
"description": "string",
"healthcheck": {
"strikes-ok": 42,
"tls-skip-verify": true,
"tls-sni": "string",
"strikes-fail": 42,
"mode": "tcp",
"port": 42,
"uri": "string",
"interval": 42,
"timeout": 42
},
"labels": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}