OpenStack v5.3.2 published on Friday, Jul 18, 2025 by Pulumi
openstack.loadbalancer.getFlavorprofileV2
Explore with Pulumi AI
Use this data source to get the ID of an OpenStack Load Balancer flavorprofile.
Note: This usually requires admin privileges.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const fp1 = openstack.loadbalancer.getFlavorprofileV2({
name: "flavorprofile_1",
});
import pulumi
import pulumi_openstack as openstack
fp1 = openstack.loadbalancer.get_flavorprofile_v2(name="flavorprofile_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.LookupFlavorprofileV2(ctx, &loadbalancer.LookupFlavorprofileV2Args{
Name: pulumi.StringRef("flavorprofile_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 fp1 = OpenStack.LoadBalancer.GetFlavorprofileV2.Invoke(new()
{
Name = "flavorprofile_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.GetFlavorprofileV2Args;
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 fp1 = LoadbalancerFunctions.getFlavorprofileV2(GetFlavorprofileV2Args.builder()
.name("flavorprofile_1")
.build());
}
}
variables:
fp1:
fn::invoke:
function: openstack:loadbalancer:getFlavorprofileV2
arguments:
name: flavorprofile_1
Using getFlavorprofileV2
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 getFlavorprofileV2(args: GetFlavorprofileV2Args, opts?: InvokeOptions): Promise<GetFlavorprofileV2Result>
function getFlavorprofileV2Output(args: GetFlavorprofileV2OutputArgs, opts?: InvokeOptions): Output<GetFlavorprofileV2Result>
def get_flavorprofile_v2(flavorprofile_id: Optional[str] = None,
name: Optional[str] = None,
provider_name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFlavorprofileV2Result
def get_flavorprofile_v2_output(flavorprofile_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
provider_name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFlavorprofileV2Result]
func LookupFlavorprofileV2(ctx *Context, args *LookupFlavorprofileV2Args, opts ...InvokeOption) (*LookupFlavorprofileV2Result, error)
func LookupFlavorprofileV2Output(ctx *Context, args *LookupFlavorprofileV2OutputArgs, opts ...InvokeOption) LookupFlavorprofileV2ResultOutput
> Note: This function is named LookupFlavorprofileV2
in the Go SDK.
public static class GetFlavorprofileV2
{
public static Task<GetFlavorprofileV2Result> InvokeAsync(GetFlavorprofileV2Args args, InvokeOptions? opts = null)
public static Output<GetFlavorprofileV2Result> Invoke(GetFlavorprofileV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFlavorprofileV2Result> getFlavorprofileV2(GetFlavorprofileV2Args args, InvokeOptions options)
public static Output<GetFlavorprofileV2Result> getFlavorprofileV2(GetFlavorprofileV2Args args, InvokeOptions options)
fn::invoke:
function: openstack:loadbalancer/getFlavorprofileV2:getFlavorprofileV2
arguments:
# arguments dictionary
The following arguments are supported:
- Flavorprofile
Id string - The ID of the flavorprofile. Conflicts with
name
andprovider_name
. - Name string
- The name of the flavorprofile. Conflicts with
flavorprofile_id
. - Provider
Name string - The name of the provider that the flavorprofile uses. Conflicts
with
flavorprofile_id
. - Region string
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
region
argument of the provider is used.
- Flavorprofile
Id string - The ID of the flavorprofile. Conflicts with
name
andprovider_name
. - Name string
- The name of the flavorprofile. Conflicts with
flavorprofile_id
. - Provider
Name string - The name of the provider that the flavorprofile uses. Conflicts
with
flavorprofile_id
. - Region string
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
region
argument of the provider is used.
- flavorprofile
Id String - The ID of the flavorprofile. Conflicts with
name
andprovider_name
. - name String
- The name of the flavorprofile. Conflicts with
flavorprofile_id
. - provider
Name String - The name of the provider that the flavorprofile uses. Conflicts
with
flavorprofile_id
. - region String
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
region
argument of the provider is used.
- flavorprofile
Id string - The ID of the flavorprofile. Conflicts with
name
andprovider_name
. - name string
- The name of the flavorprofile. Conflicts with
flavorprofile_id
. - provider
Name string - The name of the provider that the flavorprofile uses. Conflicts
with
flavorprofile_id
. - region string
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
region
argument of the provider is used.
- flavorprofile_
id str - The ID of the flavorprofile. Conflicts with
name
andprovider_name
. - name str
- The name of the flavorprofile. Conflicts with
flavorprofile_id
. - provider_
name str - The name of the provider that the flavorprofile uses. Conflicts
with
flavorprofile_id
. - region str
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
region
argument of the provider is used.
- flavorprofile
Id String - The ID of the flavorprofile. Conflicts with
name
andprovider_name
. - name String
- The name of the flavorprofile. Conflicts with
flavorprofile_id
. - provider
Name String - The name of the provider that the flavorprofile uses. Conflicts
with
flavorprofile_id
. - region String
- The region in which to obtain the V2 Load Balancer client.
If omitted, the
region
argument of the provider is used.
getFlavorprofileV2 Result
The following output properties are available:
- Flavor
Data string - Extra data of the flavorprofile depending on the provider.
- Flavorprofile
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the flavorprofile.
- Provider
Name string - The name of the provider that the flavorprofile uses.
- Region string
- Flavor
Data string - Extra data of the flavorprofile depending on the provider.
- Flavorprofile
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the flavorprofile.
- Provider
Name string - The name of the provider that the flavorprofile uses.
- Region string
- flavor
Data String - Extra data of the flavorprofile depending on the provider.
- flavorprofile
Id String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the flavorprofile.
- provider
Name String - The name of the provider that the flavorprofile uses.
- region String
- flavor
Data string - Extra data of the flavorprofile depending on the provider.
- flavorprofile
Id string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the flavorprofile.
- provider
Name string - The name of the provider that the flavorprofile uses.
- region string
- flavor_
data str - Extra data of the flavorprofile depending on the provider.
- flavorprofile_
id str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the flavorprofile.
- provider_
name str - The name of the provider that the flavorprofile uses.
- region str
- flavor
Data String - Extra data of the flavorprofile depending on the provider.
- flavorprofile
Id String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the flavorprofile.
- provider
Name String - The name of the provider that the flavorprofile uses.
- region String
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.