---
title: 'Источник данных selectel_dedicated_private_subnet_v1'
sidebar_label: 'selectel_dedicated_private_subnet_v1'
description: 'Provides a list of existing private subnets in a project'
sidebar_position: 12
---

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

:::info

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

:::

Provides a list of existing private subnets in a project
For more information about private subnets for dedicated servers, see the [official Selectel documentation](/dedicated/networks/private-networks-and-subnets/#assign-private-ip-address-to-server).

## Example usage \{#example-usage}

```hcl
data "selectel_dedicated_private_subnet_v1" "private_subnet_1" {
  project_id = selectel_vpc_project_v2.project_1.id
  filter {
    location_id = data.selectel_dedicated_location_v1.server_location.locations[0].id
    vlan        = "1000"
    subnet      = "192.168.100.0/24"
  }
}
```

## 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 subnets.

  * `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.

  * `subnet` — (Optional) Subnet in CIDR notation, for example, `192.168.100.0/24`.

  * `vlan` — (Optional) Unique identifier of VLAN.

  * `ip` — (Optional) IP address belonging to the subnet.

## Attributes Reference \{#attributes-reference}

* `subnets` — List of available subnets:

  * `id` — Unique identifier of the subnet (UUID).

  * `subnet` — Subnet in CIDR notation, for example, `192.168.100.0/24`.

  * `vlan` — Unique identifier of the VLAN.

  * `reserved_ip` — List of reserved IP addresses in the subnet that you cannot use.
