---
title: "openstack_loadbalancer_flavor_v2"
description: ""
sidebar_position: 1
---

# openstack\_lb\_flavor\_v2

:::info

This instruction is an adapted copy of the official OpenStack Terraform provider documentation from the [Terraform Registry](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs).

:::

Use this data source to get the ID of an OpenStack Load Balancer flavor.

## Example Usage \{#example-usage}

```hcl
data "openstack_loadbalancer_flavor_v2" "flavor_1" {
  name = "AMPH1.SNGL.2-1024"
}
```

## Argument Reference \{#argument-reference}

The following arguments are supported:

* `region` - (Optional) The region in which to obtain the V2 Load Balancer client. If omitted, the `region` argument of the provider is used.

* `flavor_id` - (Optional) The ID of the flavor. Exactly one of `name`, `flavor_id` is required to be set.

* `name` - (Optional) The name of the flavor. Exactly one of `name`, `flavor_id` is required to be set.

## Attributes Reference \{#attributes-reference}

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

* `name` - The name of the flavor.

* `description` - The description of the flavor.

* `flavor_id` - The ID of the flavor.

* `flavor_profile_id` - The ID of the flavor profile.

* `enabled` - Indicates whether the flavor is enabled.
