page_title | subcategory | description |
---|---|---|
anxcloud_template Data Source - terraform-provider-anxcloud |
Provides available templates for specified location. This information can be used to provision virtual servers using the anxcloud_virtual_server resource. |
Provides available templates for specified location. This information can be used to provision virtual servers using the anxcloud_virtual_server
resource.
data "anxcloud_core_location" "anx04" {
code = "ANX04"
}
data "anxcloud_template" "anx04" {
location_id = data.anxcloud_core_location.anx04.id
}
// To get a specific OS, filter the `anxcloud_template` data-source:
locals {
debian_11_templates = values({
for i, template in data.anxcloud_template.anx04.templates : tostring(i) => template
if substr(template.name, 0, 9) == "Debian 11"
})
}
// now you can use local.debian_11_templates[0].id
location_id
(String) Location identifier.
template_type
(String) Template type. Defaults to 'templates' and also supports 'from_scratch'.
id
(String) The ID of this resource.templates
(List of Object) List of available templates. (see below for nested schema)
Read-Only:
bit
(String)build
(String)id
(String)name
(String)params
(List of Object) (see below for nested schema)
Read-Only:
boot_delay_seconds
(List of Object) (see below for nested schema) Boot delay parameter.cpus
(List of Object) (see below for nested schema) CPUs parameter.disk_gb
(List of Object) (see below for nested schema) Disk size parameter.disk_type
(List of Object) (see below for nested schema) Disk type parameter.dns0
(List of Object) (see below for nested schema) DNS 0 parameter.dns1
(List of Object) (see below for nested schema) DNS 1 parameter.dns2
(List of Object) (see below for nested schema) DNS 2 parameter.dns3
(List of Object) (see below for nested schema) DNS 3 parameter.enter_bios_setup
(List of Object) (see below for nested schema) Enter BIOS parameter.hostname
(List of Object) (see below for nested schema) Hostname parameter.ips
(List of Object) (see below for nested schema) IPs parameter.memory_mb
(List of Object) (see below for nested schema) Memory parameter.nics
(List of Object) (see below for nested schema) NICs parameter.password
(List of Object) (see below for nested schema) Password parameter.user
(List of Object) (see below for nested schema) User parameter.vlan
(List of Object) (see below for nested schema) VLAN parameter.
Read-Only:
default_value
(Number)label
(String)max_value
(Number)min_value
(Number)required
(Boolean)
Read-Only:
default_value
(Number)label
(String)max_value
(Number)min_value
(Number)required
(Boolean)
Read-Only:
default_value
(Number)label
(String)max_value
(Number)min_value
(Number)required
(Boolean)
Read-Only:
default_value
(String)label
(String)required
(Boolean)
Read-Only:
default_value
(String)label
(String)required
(Boolean)
Read-Only:
default_value
(String)label
(String)required
(Boolean)
Read-Only:
default_value
(String)label
(String)required
(Boolean)
Read-Only:
default_value
(String)label
(String)required
(Boolean)
Read-Only:
default_value
(Boolean)label
(String)required
(Boolean)
Read-Only:
default_value
(String)label
(String)required
(Boolean)
Read-Only:
default_value
(String)label
(String)required
(Boolean)
Read-Only:
default_value
(Number)label
(String)max_value
(Number)min_value
(Number)required
(Boolean)
Read-Only:
data
(List of Object) (see below for nested schema)default_value
(Number)label
(String)required
(Boolean)
Read-Only:
default
(Boolean)id
(Number)name
(String)
Read-Only:
default_value
(String)label
(String)required
(Boolean)
Read-Only:
default_value
(String)label
(String)required
(Boolean)
Read-Only:
default_value
(String)label
(String)required
(Boolean)