page_title | subcategory | description |
---|---|---|
twc_software Data Source - Timeweb Cloud |
Data source that provides bunch of useful parameters for filtering and suitable software selection. All parameters are filters, so you can use only needed. Available software may be retrieved from API https://api.timeweb.cloud/api/v1/software/servers |
Data source that provides bunch of useful parameters for filtering and suitable software selection. All parameters are filters, so you can use only needed. Available software may be retrieved from API
data "twc_presets" "example-preset" {
price_filter {
from = 300
to = 400
}
}
# Select software with name = "Docker" and compatible OS with name = "ubuntu" and version = "22.04"
data "twc_software" "example-software" {
name = "Docker"
os {
name = "ubuntu"
version = "22.04"
}
}
# Usage example of selected software
resource "twc_server" "example-server" {
name = "Example server"
os_id = data.twc_software.example-software.os[0].id
software_id = data.twc_software.example-software.id
preset_id = data.twc_presets.example-preset.id
}
name
(String) Name of specified softwareos
(Block List, Max: 1) (see below for nested schema)
id
(String) The ID of this resource.
Optional:
family
(String) Family of specified OSname
(String) Name of specified OSversion
(String) Version of specified OS
Read-Only:
description
(String) Description of specified OSid
(Number) Identifier of specified OSrequirements
(List of Object) Configuration requirements to install specified OS (see below for nested schema)version_codename
(String) Codename of specified OS
Read-Only:
bandwidth_min
(Number)cpu_min
(Number)disk_min
(Number)ram_min
(Number)