selectel_dedicated_os_v1
These instructions are a copy of the Terraform provider's Selectel Terraform documentation in the Terraform Registry.
Provides a list of available operating systems.
Example Usage
data "selectel_dedicated_configuration_v1" "server_config" {
project_id = selectel_vpc_project_v2.project_1.id
filter {
name = "CL25-NVMe"
}
}
data "selectel_dedicated_location_v1" "server_location" {
project_id = selectel_vpc_project_v2.project_1.id
filter {
name = "MSK-2"
}
}
data "selectel_dedicated_os_v1" "server_os" {
project_id = selectel_vpc_project_v2.project_1.id
filter {
name = "Ubuntu"
version = "2204"
configuration_id = data.selectel_dedicated_configuration_v1.server_config.configurations[0].id
location_id = data.selectel_dedicated_location_v1.server_location.locations[0].id
}
}
Argument Reference
-
project_id— (Required) Unique identifier of the associated project.Retrieved from the selectel_vpc_project_v2 resource.Learn more about Projects. -
filter— (Optional) Values to filter available operating systems.-
name— (Optional) Name of the OS to search. -
version— (Optional) Version of the OS to search.For more information on available OS versions, see the List OS configurations method in the Dedicated servers API -
configuration_id— (Optional) Unique identifier of the server configuration.Retrieved from the selectel_dedicated_configuration_v1 data source. -
location_id— (Optional) Unique identifier of the location.Retrieved from the selectel_dedicated_location_v1 data source.Learn more about available pools in the Availability matrix.
-
Attributes Reference
-
os— List of the available operating systems:-
id— Unique identifier of the OS. -
name— OS name. -
arch— OS architecture. -
os— OS type. -
version— OS version. -
scripts_allowed— Shows if user script is allowed. -
ssh_key_allowed— Shows if SSH key is allowed. -
partitioning— Shows if partitioning is allowed.
-