Register a Template
Body Required
-
maintainer string
Template maintainer
Minimum length is
1
, maximum length is255
. -
description string
Template description
Maximum length is
255
. -
Enable SSH key-based login
-
Template name
Minimum length is
1
, maximum length is255
. -
default-user string
Template default user
Minimum length is
1
, maximum length is255
. -
size integer(int64)
Template size
Minimum value is
0
. -
Enable password-based login
-
build string
Template build
Minimum length is
1
, maximum length is255
. -
Template MD5 checksum
Minimum length is
1
. -
boot-mode string
Boot mode (default: legacy)
Values are
legacy
oruefi
. -
Template source URL
Minimum length is
1
. -
version string
Template version
Minimum length is
1
, maximum length is255
.
POST
/template
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/template \
-H "Content-Type: application/json" \
-d '{"maintainer":"string","description":"string","ssh-key-enabled":true,"name":"string","default-user":"string","size":42,"password-enabled":true,"build":"string","checksum":"string","boot-mode":"legacy","url":"string","version":"string"}'
Request examples
{
"maintainer": "string",
"description": "string",
"ssh-key-enabled": true,
"name": "string",
"default-user": "string",
"size": 42,
"password-enabled": true,
"build": "string",
"checksum": "string",
"boot-mode": "legacy",
"url": "string",
"version": "string"
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}