application/json

Body Required

  • application-consistent-snapshot-enabled boolean

    Enable application-consistent snapshot for the instance

  • anti-affinity-groups array[object]

    Instance Anti-affinity Groups

    Anti-affinity group reference

    Hide anti-affinity-groups attribute Show anti-affinity-groups attribute object
    • id string(uuid)

      Anti-affinity group ID

  • public-ip-assignment string

    Values are inet4, dual, or none.

  • labels object
    Hide labels attribute Show labels attribute object
    • * string Additional properties
  • auto-start boolean

    Start Instance on creation (default: true)

  • security-groups array[object]

    Instance Security Groups

    Security group reference

    Hide security-groups attribute Show security-groups attribute object
    • id string(uuid)

      Security group ID

  • name string

    Instance name

    Minimum length is 1, maximum length is 255.

  • instance-type object Required

    Instance type reference

    Hide instance-type attribute Show instance-type attribute object
    • id string(uuid)

      Instance type ID

  • template object Required

    Template reference

    Hide template attribute Show template attribute object
    • id string(uuid)

      Template ID

  • secureboot-enabled boolean

    Enable secure boot

  • ssh-key object

    SSH key reference

    Hide ssh-key attribute Show ssh-key attribute object
    • name string

      SSH key name

      Minimum length is 1, maximum length is 255.

  • user-data string

    Instance Cloud-init user-data (base64 encoded)

    Minimum length is 1, maximum length is 32768.

  • tpm-enabled boolean

    Enable Trusted Platform Module (TPM)

  • deploy-target object

    Deploy target reference

    Hide deploy-target attribute Show deploy-target attribute object
    • id string(uuid)

      Deploy target ID

  • ipv6-enabled boolean

    Enable IPv6. DEPRECATED: use public-ip-assignments.

  • disk-size integer(int64) Required

    Instance disk size in GiB

    Minimum value is 10, maximum value is 51200.

  • ssh-keys array[object]

    Instance SSH Keys

    SSH key reference

    Hide ssh-keys attribute Show ssh-keys attribute object
    • name string

      SSH key name

      Minimum length is 1, maximum length is 255.

Responses

  • 200 application/json

    200

    Hide response attributes Show response attributes object
    • id string(uuid)

      Operation ID

    • reason string

      Operation failure reason

      Values are incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, or conflict.

    • reference object

      Related resource reference

      Hide reference attributes Show reference attributes object
      • id string(uuid)

        Reference ID

      • command string

        Command name

    • message string

      Operation message

    • state string

      Operation status

      Values are failure, pending, success, or timeout.

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"
}