Create an Instance Pool
Body Required
-
anti-affinity-groups array[object]
Instance Pool Anti-affinity Groups
-
description string
Instance Pool description
Maximum length is
255
. -
public-ip-assignment string
Determines public IP assignment of the Instances. Type
none
is final and can't be changed later on.Values are
inet4
,dual
, ornone
. -
labels object
Resource labels
-
security-groups array[object]
Instance Pool Security Groups
-
elastic-ips array[object]
Instances Elastic IPs
-
Instance Pool name
Minimum length is
1
, maximum length is255
. -
Instance Type
Additional properties are allowed.
-
min-available integer(int64)
Minimum number of running Instances
Minimum value is
0
. -
private-networks array[object]
Instance Pool Private Networks
-
Instance Template
Additional properties are allowed.
-
Number of Instances
Minimum value is
0
. -
ssh-key object
Instance SSH Key
Additional properties are allowed.
-
instance-prefix string
Prefix to apply to Instances names (default: pool)
Minimum length is
1
, maximum length is30
. -
user-data string
Instances Cloud-init user-data
Minimum length is
1
. -
deploy-target object
Instance Deploy Target
Additional properties are allowed.
-
ipv6-enabled boolean
Enable IPv6. DEPRECATED: use
public-ip-assignments
. -
Instances disk size in GiB
Minimum value is
10
, maximum value is51200
. -
ssh-keys array[object]
Instances SSH Keys
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/instance-pool \
-H "Content-Type: application/json" \
-d '{"anti-affinity-groups":[{"name":"string","description":"string"}],"description":"string","public-ip-assignment":"inet4","labels":{"additionalProperty1":"string","additionalProperty2":"string"},"security-groups":[{"name":"string","description":"string","external-sources":["string"],"rules":[{"description":"string","start-port":42,"protocol":"tcp","icmp":{"code":42,"type":42},"end-port":42,"security-group":{"name":"string","visibility":"private"},"network":"string","flow-direction":"ingress"}]}],"elastic-ips":[{"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"}}],"name":"string","instance-type":{},"min-available":42,"private-networks":[{"description":"string","labels":{"additionalProperty1":"string","additionalProperty2":"string"},"name":"string","start-ip":"string","vni":42,"netmask":"string","options":{"routers":["string"],"dns-servers":["string"],"ntp-servers":["string"],"domain-search":["string"]},"end-ip":"string"}],"template":{"description":"string","ssh-key-enabled":true,"name":"string","default-user":"string","size":42,"password-enabled":true,"checksum":"string","boot-mode":"legacy","zones":["ch-dk-2"],"url":"string"},"size":42,"ssh-key":{"name":"string"},"instance-prefix":"string","user-data":"string","deploy-target":{"id":"string","name":"string","type":"edge","description":"string"},"ipv6-enabled":true,"disk-size":42,"ssh-keys":[{"name":"string"}]}'
{
"anti-affinity-groups": [
{
"name": "string",
"description": "string"
}
],
"description": "string",
"public-ip-assignment": "inet4",
"labels": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"security-groups": [
{
"name": "string",
"description": "string",
"external-sources": [
"string"
],
"rules": [
{
"description": "string",
"start-port": 42,
"protocol": "tcp",
"icmp": {
"code": 42,
"type": 42
},
"end-port": 42,
"security-group": {
"name": "string",
"visibility": "private"
},
"network": "string",
"flow-direction": "ingress"
}
]
}
],
"elastic-ips": [
{
"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"
}
}
],
"name": "string",
"instance-type": {},
"min-available": 42,
"private-networks": [
{
"description": "string",
"labels": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"name": "string",
"start-ip": "string",
"vni": 42,
"netmask": "string",
"options": {
"routers": [
"string"
],
"dns-servers": [
"string"
],
"ntp-servers": [
"string"
],
"domain-search": [
"string"
]
},
"end-ip": "string"
}
],
"template": {
"description": "string",
"ssh-key-enabled": true,
"name": "string",
"default-user": "string",
"size": 42,
"password-enabled": true,
"checksum": "string",
"boot-mode": "legacy",
"zones": [
"ch-dk-2"
],
"url": "string"
},
"size": 42,
"ssh-key": {
"name": "string"
},
"instance-prefix": "string",
"user-data": "string",
"deploy-target": {
"id": "string",
"name": "string",
"type": "edge",
"description": "string"
},
"ipv6-enabled": true,
"disk-size": 42,
"ssh-keys": [
{
"name": "string"
}
]
}
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}