---
title: 'Источник данных selectel_dedicated_public_subnet_v1'
sidebar_label: "selectel_dedicated_public_subnet_v1"
description: 'Provides a list of public subnets existing in an account'
sidebar_position: 13
---

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

:::info

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

:::

Provides a list of public subnets existing in an account.
Learn more about [Additional public subnets](/dedicated/networks/public-networks-and-subnets/#public-dedicated-ips).

## Example Usage \{#example-usage}

```hcl
data "selectel_dedicated_public_subnet_v1" "public_subnets_1" {
  project_id = selectel_vpc_project_v2.project_1.id
  filter {
    location_id = data.selectel_dedicated_location_v1.server_location.locations[0].id
    subnet      = "192.168.1.0/29"
    ip          = "192.168.1.3"
  }
}
```

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

  * `ip` — (Optional) IP address to search included in a public subnet.

  * `subnet` — (Optional) Public subnet in CIDR notation to search.

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

  * `ip` — Public IP address from the filter.
    Can be used to pass forward.

## Attributes Reference \{#attributes-reference}

* `subnets` — List of the available subnets:

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

  * `network_id` — Unique identifier of the network.

  * `subnet` — Subnet in CIDR notation.

  * `broadcast` — Broadcast address.

  * `gateway` — Gateway address.

  * `reserved_vrrp_ips` — List of reserved VRRP IPs.
