OpenStack v5.4.0 published on Wednesday, Nov 12, 2025 by Pulumi
OpenStack v5.4.0 published on Wednesday, Nov 12, 2025 by Pulumi
Use this data source to get the ID of an OpenStack Load Balancer flavor.
Note: This data source is deprecated, please use
openstack.loadbalancer.FlavorV2instead.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const flavor1 = openstack.loadbalancer.getLbFlavorDeprecated({
name: "flavor_1",
});
import pulumi
import pulumi_openstack as openstack
flavor1 = openstack.loadbalancer.get_lb_flavor_deprecated(name="flavor_1")
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/loadbalancer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := loadbalancer.GetLbFlavorDeprecated(ctx, &loadbalancer.GetLbFlavorDeprecatedArgs{
Name: pulumi.StringRef("flavor_1"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var flavor1 = OpenStack.LoadBalancer.GetLbFlavorDeprecated.Invoke(new()
{
Name = "flavor_1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.loadbalancer.LoadbalancerFunctions;
import com.pulumi.openstack.loadbalancer.inputs.GetLbFlavorDeprecatedArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var flavor1 = LoadbalancerFunctions.getLbFlavorDeprecated(GetLbFlavorDeprecatedArgs.builder()
.name("flavor_1")
.build());
}
}
variables:
flavor1:
fn::invoke:
function: openstack:loadbalancer:getLbFlavorDeprecated
arguments:
name: flavor_1
Using getLbFlavorDeprecated
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLbFlavorDeprecated(args: GetLbFlavorDeprecatedArgs, opts?: InvokeOptions): Promise<GetLbFlavorDeprecatedResult>
function getLbFlavorDeprecatedOutput(args: GetLbFlavorDeprecatedOutputArgs, opts?: InvokeOptions): Output<GetLbFlavorDeprecatedResult>def get_lb_flavor_deprecated(flavor_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLbFlavorDeprecatedResult
def get_lb_flavor_deprecated_output(flavor_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLbFlavorDeprecatedResult]func GetLbFlavorDeprecated(ctx *Context, args *GetLbFlavorDeprecatedArgs, opts ...InvokeOption) (*GetLbFlavorDeprecatedResult, error)
func GetLbFlavorDeprecatedOutput(ctx *Context, args *GetLbFlavorDeprecatedOutputArgs, opts ...InvokeOption) GetLbFlavorDeprecatedResultOutput> Note: This function is named GetLbFlavorDeprecated in the Go SDK.
public static class GetLbFlavorDeprecated
{
public static Task<GetLbFlavorDeprecatedResult> InvokeAsync(GetLbFlavorDeprecatedArgs args, InvokeOptions? opts = null)
public static Output<GetLbFlavorDeprecatedResult> Invoke(GetLbFlavorDeprecatedInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLbFlavorDeprecatedResult> getLbFlavorDeprecated(GetLbFlavorDeprecatedArgs args, InvokeOptions options)
public static Output<GetLbFlavorDeprecatedResult> getLbFlavorDeprecated(GetLbFlavorDeprecatedArgs args, InvokeOptions options)
fn::invoke:
function: openstack:loadbalancer/getLbFlavorDeprecated:getLbFlavorDeprecated
arguments:
# arguments dictionaryThe following arguments are supported:
- Flavor
Id string - The ID of the flavor. Exactly one of
name,flavor_idis required to be set. - Name string
- The name of the flavor. Exactly one of
name,flavor_idis required to be set. - Region string
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
regionargument of the provider is used.
- Flavor
Id string - The ID of the flavor. Exactly one of
name,flavor_idis required to be set. - Name string
- The name of the flavor. Exactly one of
name,flavor_idis required to be set. - Region string
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
regionargument of the provider is used.
- flavor
Id String - The ID of the flavor. Exactly one of
name,flavor_idis required to be set. - name String
- The name of the flavor. Exactly one of
name,flavor_idis required to be set. - region String
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
regionargument of the provider is used.
- flavor
Id string - The ID of the flavor. Exactly one of
name,flavor_idis required to be set. - name string
- The name of the flavor. Exactly one of
name,flavor_idis required to be set. - region string
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
regionargument of the provider is used.
- flavor
Id String - The ID of the flavor. Exactly one of
name,flavor_idis required to be set. - name String
- The name of the flavor. Exactly one of
name,flavor_idis required to be set. - region String
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
regionargument of the provider is used.
getLbFlavorDeprecated Result
The following output properties are available:
- Description string
- The description of the flavor.
- Enabled bool
- Is the flavor enabled.
- Flavor
Id string - The ID of the flavor.
- Flavor
Profile stringId - The ID of the flavor profile.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the flavor.
- Region string
- Description string
- The description of the flavor.
- Enabled bool
- Is the flavor enabled.
- Flavor
Id string - The ID of the flavor.
- Flavor
Profile stringId - The ID of the flavor profile.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the flavor.
- Region string
- description String
- The description of the flavor.
- enabled Boolean
- Is the flavor enabled.
- flavor
Id String - The ID of the flavor.
- flavor
Profile StringId - The ID of the flavor profile.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the flavor.
- region String
- description string
- The description of the flavor.
- enabled boolean
- Is the flavor enabled.
- flavor
Id string - The ID of the flavor.
- flavor
Profile stringId - The ID of the flavor profile.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the flavor.
- region string
- description str
- The description of the flavor.
- enabled bool
- Is the flavor enabled.
- flavor_
id str - The ID of the flavor.
- flavor_
profile_ strid - The ID of the flavor profile.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the flavor.
- region str
- description String
- The description of the flavor.
- enabled Boolean
- Is the flavor enabled.
- flavor
Id String - The ID of the flavor.
- flavor
Profile StringId - The ID of the flavor profile.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the flavor.
- region String
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.
OpenStack v5.4.0 published on Wednesday, Nov 12, 2025 by Pulumi
