Create and Update a Cloud TemplateLast Updated February 5, 2025
To create a cloud template, you make a POST request. The request body includes the
name of the new cloud template and the project ID of an existing project. To update a cloud
template, you make a PUT request that changes one of the properties of the cloud
template.
- Verify that all general prerequisites and prerequisites for theAutomation AssemblerBlueprint service have been satisfied. See Prerequisites for API Use Case Examples.
- Verify that you have a project ID for the project that includes cloud zones configured to support the resource requirements of your cloud template. See Create a Project to use in Automation Assembler.
Before creating a cloud template, you get a list of cloud templates to verify that
the cloud template you plan to create does not already exist. After a cloud template
is created, you can update it to change the cloud template definition.
- Assign the project ID variable.
- Assign your cloud template name variable.your_cloud_template_nameis a name that you choose.
- Get a list of cloud templates.
- To verify that the cloud template you plan to create is not already listed, examine the response.
- Validate the cloud template before creating it.
- Examine the response to confirm that you see"valid":true.
- Create a new cloud template.
- Examine the response and record the ID of your newly created cloud template.
- Assign the cloud template ID variable.your_cloud_template_idis the ID of the new cloud template that you created.
- To verify that the cloud template has been created, get a list of cloud templates and filter foryour_cloud_template_name.
- To update the cloud template, use a PUT request and specifyyour_cloud_template_id.
Create a Cloud Template and Update
it
Create a cloud template named
MyExampleCloudTemplate
. This example assumes that
MyExampleCloudTemplate
does not already exist.Assign variables.
Validate the cloud template.
Examine the response to confirm that
"valid":true
.Create the cloud template.
The response from your request to create
the cloud template shows the cloud template ID.
Assign the cloud template ID
variable.
Update the cloud template to set a tag on
the machine properties in the cloud template.
Use the cloud template ID to version and release the cloud template to a catalog.