PUT
/security-group/{id}:attach
curl \
--request PUT 'https://api-ch-gva-2.exoscale.com/v2/security-group/{id}:attach' \
--header "Content-Type: application/json" \
--data '{"instance":{"application-consistent-snapshot-enabled":true,"anti-affinity-groups":[{"id":"string"}],"public-ip-assignment":"inet4","labels":{"additionalProperty1":"string","additionalProperty2":"string"},"security-groups":[{"id":"string"}],"elastic-ips":[{"id":"string"}],"name":"string","instance-type":{},"private-networks":[{"id":"string","mac-address":"string"}],"template":{"application-consistent-snapshot-enabled":true,"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"},"state":"expunging","secureboot-enabled":true,"ssh-key":{"name":"string"},"user-data":"string","manager":{"id":"string","type":"sks-nodepool"},"tpm-enabled":true,"deploy-target":{"id":"string"},"snapshots":[{"id":"string"}],"disk-size":42,"ssh-keys":[{"name":"string"}]}}'
Request examples
{
"instance": {
"application-consistent-snapshot-enabled": true,
"anti-affinity-groups": [
{
"id": "string"
}
],
"public-ip-assignment": "inet4",
"labels": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"security-groups": [
{
"id": "string"
}
],
"elastic-ips": [
{
"id": "string"
}
],
"name": "string",
"instance-type": {},
"private-networks": [
{
"id": "string",
"mac-address": "string"
}
],
"template": {
"application-consistent-snapshot-enabled": true,
"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"
},
"state": "expunging",
"secureboot-enabled": true,
"ssh-key": {
"name": "string"
},
"user-data": "string",
"manager": {
"id": "string",
"type": "sks-nodepool"
},
"tpm-enabled": true,
"deploy-target": {
"id": "string"
},
"snapshots": [
{
"id": "string"
}
],
"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"
}