---
title: "openstack_networking_addressscope_v2"
description: ""
sidebar_position: 1
---

# openstack\_networking\_addressscope\_v2

:::info

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

:::

Use this data source to get the ID of an available OpenStack address-scope.

## Example Usage \{#example-usage}

```hcl
data "openstack_networking_addressscope_v2" "public_addressscope" {
  name       = "public_addressscope"
  shared     = true
  ip_version = 4
}
```

## Argument Reference \{#argument-reference}

* `region` - (Optional) The region in which to obtain the V2 Neutron client.
  A Neutron client is needed to retrieve address-scopes. If omitted, the
  `region` argument of the provider is used.

* `name` - (Optional) Name of the address-scope.

* `ip_version` - (Optional) IP version.

* `shared` - (Optional) Indicates whether this address-scope is shared across
  all projects.

* `project_id` - (Optional) The owner of the address-scope.

## Attributes Reference \{#attributes-reference}

`id` is set to the ID of the found address-scope. In addition, the following attributes
are exported:

* `name` - See Argument Reference above.
* `ip_version` - See Argument Reference above.
* `shared` - See Argument Reference above.
* `project_id` - See Argument Reference above.
