Skip to main content

selectel_dedicated_os_v1

Last update:
For your information

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_os_v1" "server_os" {
project_id = selectel_vpc_project_v2.project_1.id
filter {
name = "Ubuntu"
version_value = "2204"
version_name = "22.04 LTS"
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_value - (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.

    • version_name - (Optional) Version name of the OS to search. Can be a part of name, the search is case-insensitive. 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_value - OS version value raw.

    • version_name - OS version name.

    • scripts_allowed - Shows if user script is allowed.

    • ssh_key_allowed - Shows if SSH key is allowed.

    • partitioning - Shows if partitioning is allowed.