Body
Required
-
Enable application-consistent snapshot for the instance
-
Instance Anti-affinity Groups
Anti-affinity group reference
-
Values are
inet4,dual, ornone. -
Start Instance on creation (default: true)
-
Instance Security Groups
Security group reference
-
Instance name
Minimum length is
1, maximum length is255. -
Instance type reference
-
Template reference
-
Enable secure boot
-
SSH key reference
-
Instance Cloud-init user-data (base64 encoded)
Minimum length is
1, maximum length is32768. -
Enable Trusted Platform Module (TPM)
-
Deploy target reference
-
Enable IPv6. DEPRECATED: use
public-ip-assignments. -
Instance disk size in GiB
Minimum value is
10, maximum value is51200. -
Instance SSH Keys
SSH key reference
POST
/instance
curl \
--request POST 'https://api-ch-gva-2.exoscale.com/v2/instance' \
--header "Content-Type: application/json" \
--data '{"application-consistent-snapshot-enabled":true,"anti-affinity-groups":[{"id":"string"}],"public-ip-assignment":"inet4","labels":{"additionalProperty1":"string","additionalProperty2":"string"},"auto-start":true,"security-groups":[{"id":"string"}],"name":"string","instance-type":{"id":"string"},"template":{"id":"string"},"secureboot-enabled":true,"ssh-key":{"name":"string"},"user-data":"string","tpm-enabled":true,"deploy-target":{"id":"string"},"ipv6-enabled":true,"disk-size":42,"ssh-keys":[{"name":"string"}]}'
Request examples
{
"application-consistent-snapshot-enabled": true,
"anti-affinity-groups": [
{
"id": "string"
}
],
"public-ip-assignment": "inet4",
"labels": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"auto-start": true,
"security-groups": [
{
"id": "string"
}
],
"name": "string",
"instance-type": {
"id": "string"
},
"template": {
"id": "string"
},
"secureboot-enabled": true,
"ssh-key": {
"name": "string"
},
"user-data": "string",
"tpm-enabled": true,
"deploy-target": {
"id": "string"
},
"ipv6-enabled": true,
"disk-size": 42,
"ssh-keys": [
{
"name": "string"
}
]
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}