Deploy a template into an environment.
const url = 'https://example.com/api/v1/projects/example/environments/example/templates/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"db"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/projects/example/environments/example/templates/example \ --header 'Content-Type: application/json' \ --data '{ "name": "db" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project name
Environment short name
Template id
Request Bodyrequired
Section titled “Request Bodyrequired”object
App name (also the in-cluster hostname of TCP services).
Example
dbResponses
Section titled “Responses”object
object
Environment short name.
Available, Progressing, RolloutFailed, Scheduled, AwaitingBuild, …
object
Cron expression of scheduled processes.
http or tcp.
Persistent volume (kept when the app is deleted, unless requested).
object
Capacity such as 5Gi. Can grow, never shrink.
Secret with the generated credentials, e.g. db-credentials.
Reference it from other apps as KEY=@<secret>/<key>.
Example
{ "app": { "env": [ { "name": "LOG_LEVEL" } ], "volumes": [ { "name": "data", "mount_path": "/data", "size": "5Gi" } ] }}Problem Details body.
object
Stable machine-readable code, e.g. forbidden.
Short human readable title.
HTTP status.
Details, if safe to expose.
Example
{ "code": "forbidden"}Problem Details body.
object
Stable machine-readable code, e.g. forbidden.
Short human readable title.
HTTP status.
Details, if safe to expose.
Example
{ "code": "forbidden"}Problem Details body.
object
Stable machine-readable code, e.g. forbidden.
Short human readable title.
HTTP status.
Details, if safe to expose.
Example
{ "code": "forbidden"}