Skip to main content
openstack_fw_policy_v2
Last update:

openstack_fw_policy_v2

For your information

These instructions are a copy of the official OpenStack Terraform provider documentation in the Terraform Registry.

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

Example Usage

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

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

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.