Get template by template_id, but if not provided, will return all templates instead. However, if key word is provieded as a string, it will return all templates that contains that string. Also, if both template_id and deployed_regions_required is specified in the request, the deployed regions should be returned as well.
application/json
{
(optional)"template_id" : SOME_OBJECT_ID,
(optional)"key_word" : SOME_KEY_WORD,
(optional)"deployed_regions_required" : True,
}
application/json
{
templates[]
}
Create a template. If template_id is specified, it will be used on creating a new version for that template.
application/x-www-form-urlencoded
{
"file" : [file object],
"name" : "Template-A",
"description" : "This is a demo template",
"Tags" : ["TypeA","TypeB"],
}
application/json
{
"message" : "success"
}
Get versions of a template by template id. It has to be provided
application/json
{
"origin_id" : "SOME_OBJECT_ID"
}
application/json
{
templates[]
}
Create a new version given origin_id
application/json
{
"origin_id" : "SOME_OBJECT_ID",
"name": "name of version",
"file": "file for this version",
}
application/json
{
templates[]
}
Activate a specific version of a template
application/json
{
"origin_id" : SOME_OBJECT_ID,
"version_id" : SOME_OBJECT_ID,
}
application/json
{
"message" : "success"
}
Delete a specific version of a template
application/json
{
"template_id" : SOME_OBJECT_ID,
"version_id" : SOME_OBJECT_ID,
}
application/json
{
"message" : "success"
}
Create a deployment job
application/json
{
"template_id" : SOME_OBJECT_ID,
"region" : REGION_NAME
}
application/json
{
"message" : "success"
}
Get all deployment jobs. If job is specified in the params, will return a specific job detail.
application/json
{
"job_id" : SOME_OBJECT_ID
}
application/json
{
deployment_jobs[]
}
Revoke an ongoing deployment jobs
application/json
{
"job_id" : SOME_OBJECT_ID
}
application/json
{
"message" : "success"
}