Promote a Snapshot to a Template
Body Required
-
Template name
Minimum length is
1
, maximum length is255
. -
description string
Template description
Maximum length is
4096
. -
default-user string
Template default user
Minimum length is
1
, maximum length is255
. -
ssh-key-enabled boolean
Enable SSH key-based login in the template
-
password-enabled boolean
Enable password-based login in the template
POST /snapshot/{id}:promote
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/snapshot/{id}:promote \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","default-user":"string","ssh-key-enabled":true,"password-enabled":true}'
Request examples
{
"name": "string",
"description": "string",
"default-user": "string",
"ssh-key-enabled": true,
"password-enabled": true
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}