---
title: "openstack_fw_policy_v2"
description: ""
sidebar_position: 2
---

# openstack\_fw\_policy\_v2

:::info

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

:::

Use this data source to get information of an available OpenStack firewall policy v2.

## Example Usage \{#example-usage}

```hcl
data "openstack_fw_policy_v2" "policy" {
  name = "tf_test_policy"
}
```

## Argument Reference \{#argument-reference}

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

* `name` - (Optional) The name of the firewall policy.

* `description` - (Optional) Human-readable description of the policy.

* `policy_id` - (Optional) The ID of the firewall policy.

* `tenant_id` - (Optional) - This argument conflicts and is interchangeable
  with `project_id`. The owner of the firewall policy.

* `project_id` - (Optional) - This argument conflicts and is interchangeable
  with `tenant_id`. The owner of the firewall policy.

* `shared` - (Optional) Whether this policy is shared across all projects.

* `audited` - (Optional) Whether this policy has been audited.

## Attributes Reference \{#attributes-reference}

The following attributes are exported:

* `region` - See Argument Reference above.
* `name` - See Argument Reference above.
* `policy_id` - See Argument Reference above.
* `tenant_id` - See Argument Reference above.
* `project_id` - See Argument Reference above.
* `shared` - The sharing status of the firewall policy.
* `audited` - The audit status of the firewall policy.
* `rules` - The array of one or more firewall rules that comprise the policy.
