---
title: 'Источник данных selectel_dedicated_os_v1'
sidebar_label: "selectel_dedicated_os_v1"
description: 'Provides a list of available operating systems'
sidebar_position: 11
---

# Источник данных selectel\_dedicated\_os\_v1

:::info

Эта инструкция — копия документации Selectel Terraform-провайдера в [Terraform Registry](https://registry.terraform.io/providers/selectel/selectel/latest/docs).

:::

Provides a list of available operating systems.

## Example Usage \{#example-usage}

```hcl
data "selectel_dedicated_os_v1" "server_os_1" {
  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 \{#argument-reference}

* `project_id` — (Required) Unique identifier of the associated project.
  Retrieved from the [selectel\_vpc\_project\_v2](/terraform/selectel-provider-reference/resources/vpc_project_v2) resource.
  Learn more about [Projects](/access-control/projects/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](/api/dedicated/#tag/Boot-Manager/operation/get_os_template_list_new_view) 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](/api/dedicated/#tag/Boot-Manager/operation/get_os_template_list_new_view) method in the Dedicated servers API.

  * `configuration_id` — (Optional) Unique identifier of the server configuration.
    Retrieved from the [selectel\_dedicated\_configuration\_v1](/terraform/selectel-provider-reference/data-sources/dedicated_configuration_v1) data source.

  * `location_id` — (Optional) Unique identifier of the location.
    Retrieved from the [selectel\_dedicated\_location\_v1](/terraform/selectel-provider-reference/data-sources/dedicated_location_v1) data source.
    Learn more about available pools in [Product availability by location](/infrastructure/product-availability-by-location/#dedicated-servers).

## Attributes Reference \{#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.
