v1

latestOpenAPI 3.0.0CoreStack Inc License2026-07-248001,5071.7 MB
Automation

Create Template

Creates a new Template under the tenant. However the script will be accessible based on its scope. Global Templates - All user will have access to CoreStack's Marketplace Templates (Can view and execute). Account - All users under that account will have access (Can view and execute). Only Account admins can update/delete. Tenant - Users with access to the specific tenant will have access template (Can view and execute). Tenant admins can update/delete. Private - User who created will only have access.

post/operation/automation/templates/{tenant_id}

Path parameters

tenant_idstring required

Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.

Request body

namestring required

template name which is unique and does not allow special character or space

descriptionstring

Usage of the template.

contentstring required

The template content

statusstring

Status of the template [active/inactive]. active:- Templates which can be executed. inactive:- Template which cannot be executed

classificationstring[] required

Templates are classified based orchestration actions like Provision, Configure, Backup, Catalog Builder, Deployment, Autoscaling

scope'private' | 'account' | 'tenant'

The scope of the template: Account scope - All users under that account will have access to view and execute Only Account admins can update/delete the templates, Tenant Scope - Users with access to the specific tenant will have access to templates who can describe or execute templates. Tenant admins can only update/delete. Private Scope - User who created will only have access

typestring[] required

Type of the template (Cloud, Monitoring, Virtualization)

servicesstring[] required

Displays the service associated with the template, for example, AWS, AzureRM, Openstack., etc

engine_type'cfn' | 'arm' | 'terraform' | 'mistral' | 'heat' | 'oracle' | 'dm' required

Template formats such as AWS CFN, Azure ARM, Openstack Heat and Mistral

blueprint_supportboolean

Flag to add template to blueprints

Example request

{
  "scope": "private",
  "engine_type": "cfn"
}

Response

Created

template_idstring required

Unique Id of the template