page_title | subcategory | description |
---|---|---|
twc_ssh_keys Data Source - Timeweb Cloud |
Data source that provides capability for filtering and SSH key selection. All parameters are filters, so you can use only needed |
Data source that provides capability for filtering and SSH key selection. All parameters are filters, so you can use only needed
data "twc_os" "example-os" {
name = "ubuntu"
version = "22.04"
}
data "twc_presets" "example-preset" {
price_filter {
from = 300
to = 400
}
}
# Select SSH key with name = "Example"
data "twc_ssh_keys" "example-key" {
name = "Example"
}
# Usage example of selected SSH key
resource "twc_server" "example-server" {
name = "Example server"
os_id = data.twc_os.example-os.id
preset_id = data.twc_presets.example-preset.id
ssh_keys_ids = [data.twc_ssh_keys.example-key.id]
}
name
(String) Name of specified SSH Key
body
(String) Public part of specified SSH Keycreated_at
(String) Time of creation specified SSH Key in ISO8601 formatid
(String) The ID of this resource.