Parameter |
Choices/Defaults |
Comments |
account
|
|
Account the template, snapshot or VM is related to.
|
api_http_method
|
|
HTTP method used to query the API endpoint.
If not given, the CLOUDSTACK_METHOD env variable is considered.
As the last option, the value is taken from the ini config file, also see the notes.
Fallback value is get if not specified.
|
api_key
|
|
API key of the CloudStack API.
If not given, the CLOUDSTACK_KEY env variable is considered.
As the last option, the value is taken from the ini config file, also see the notes.
|
api_region
|
Default:
"cloudstack"
|
Name of the ini section in the cloustack.ini file.
If not given, the CLOUDSTACK_REGION env variable is considered.
|
api_secret
|
|
Secret key of the CloudStack API.
If not set, the CLOUDSTACK_SECRET env variable is considered.
As the last option, the value is taken from the ini config file, also see the notes.
|
api_timeout
|
|
HTTP timeout in seconds.
If not given, the CLOUDSTACK_TIMEOUT env variable is considered.
As the last option, the value is taken from the ini config file, also see the notes.
Fallback value is 10 seconds if not specified.
|
api_url
|
|
URL of the CloudStack API e.g. https://cloud.example.com/client/api.
If not given, the CLOUDSTACK_ENDPOINT env variable is considered.
As the last option, the value is taken from the ini config file, also see the notes.
|
bits
|
Default:
64
|
32 or 64 bits support.
|
checksum
|
Default:
"no"
|
The MD5 checksum value of this template.
If set, we search by checksum instead of name.
|
cross_zones
|
Default:
"no"
|
Whether the template should be synced or removed across zones.
Only used if state is present or absent.
|
details
|
|
Template details in key/value pairs.
|
display_text
|
|
Display text of the template.
|
domain
|
|
Domain the template, snapshot or VM is related to.
|
format
|
Choices:
- QCOW2
- RAW
- VHD
- OVA
|
The format for the template.
Relevant when using state=present .
|
hypervisor
|
Choices:
- KVM
- VMware
- BareMetal
- XenServer
- LXC
- HyperV
- UCS
- OVM
- Simulator
|
Name the hypervisor to be used for creating the new template.
Relevant when using state=present .
|
is_dynamically_scalable
|
Default:
"no"
|
Register the template having XS/VMWare tools installed in order to support dynamic scaling of VM CPU/memory.
Only used if state is present.
|
is_extractable
|
Default:
"no"
|
True if the template or its derivatives are extractable.
|
is_featured
|
Default:
"no"
|
Register the template to be featured.
Only used if state is present.
|
is_public
|
Default:
"no"
|
Register the template to be publicly available to all users.
Only used if state is present.
|
is_ready
|
Default:
"no"
|
This flag is used for searching existing templates.
If set to true , it will only list template ready for deployment e.g. successfully downloaded and installed.
Recommended to set it to false .
|
is_routing
|
|
True if the template type is routing i.e., if template is used to deploy router.
Only considered if url is used.
|
mode
|
Choices:
http_download ←
- ftp_upload
|
Mode for the template extraction.
Only used if state=extracted .
|
name
required |
|
Name of the template.
|
os_type
|
|
OS type that best represents the OS of this template.
|
password_enabled
|
Default:
"no"
|
True if the template supports the password reset feature.
|
poll_async
|
Default:
"yes"
|
Poll async jobs until job has finished.
|
project
|
|
Name of the project the template to be registered in.
|
requires_hvm
|
Default:
"no"
|
true if this template requires HVM.
|
snapshot
|
|
Name of the snapshot, created from the VM ROOT volume, the template will be created from.
vm is required together with this argument.
|
sshkey_enabled
|
Default:
"no"
|
True if the template supports the sshkey upload feature.
|
state
|
Choices:
present ←
- absent
- extracted
|
State of the template.
|
tags
(added in 2.4) |
|
List of tags. Tags are a list of dictionaries having keys key and value .
To delete all tags, set a empty list e.g. tags: [] .
aliases: tag
|
template_filter
|
Choices:
- featured
self ←
- selfexecutable
- sharedexecutable
- executable
- community
|
Name of the filter used to search for the template.
|
template_tag
|
|
the tag for this template.
|
url
|
|
URL of where the template is hosted on state=present .
URL to which the template would be extracted on state=extracted .
Mutually exclusive with vm .
|
vm
|
|
VM name the template will be created from its volume or alternatively from a snapshot.
VM must be in stopped state if created from its volume.
Mutually exclusive with url .
|
zone
|
|
Name of the zone you wish the template to be registered or deleted from.
If not specified, first found zone will be used.
|