1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. getFlavor
edgecenter 0.10.7 published on Tuesday, Dec 23, 2025 by edge-center
edgecenter logo
edgecenter 0.10.7 published on Tuesday, Dec 23, 2025 by edge-center

    Represent flavors

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    export = async () => {
        const rg = await edgecenter.getRegion({
            name: "ED-10 Preprod",
        });
        const pr = await edgecenter.getProject({
            name: "test",
        });
        const allFlavors = await edgecenter.getFlavor({
            regionId: rg.id,
            projectId: pr.id,
        });
        const fullDataFlavors = await edgecenter.getFlavor({
            regionId: rg.id,
            projectId: pr.id,
            includeDisabled: true,
            excludeWindows: false,
            includePrices: true,
        });
        const bmFlavors = await edgecenter.getFlavor({
            regionId: rg.id,
            projectId: pr.id,
            type: "baremetal",
        });
        return {
            allFlavor: allFlavors,
            fullDataFlavors: fullDataFlavors,
            bmFlavors: bmFlavors,
        };
    }
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    rg = edgecenter.get_region(name="ED-10 Preprod")
    pr = edgecenter.get_project(name="test")
    all_flavors = edgecenter.get_flavor(region_id=rg.id,
        project_id=pr.id)
    pulumi.export("allFlavor", all_flavors)
    full_data_flavors = edgecenter.get_flavor(region_id=rg.id,
        project_id=pr.id,
        include_disabled=True,
        exclude_windows=False,
        include_prices=True)
    pulumi.export("fullDataFlavors", full_data_flavors)
    bm_flavors = edgecenter.get_flavor(region_id=rg.id,
        project_id=pr.id,
        type="baremetal")
    pulumi.export("bmFlavors", bm_flavors)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		rg, err := edgecenter.GetRegion(ctx, &edgecenter.GetRegionArgs{
    			Name: "ED-10 Preprod",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		pr, err := edgecenter.LookupProject(ctx, &edgecenter.LookupProjectArgs{
    			Name: pulumi.StringRef("test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		allFlavors, err := edgecenter.GetFlavor(ctx, &edgecenter.GetFlavorArgs{
    			RegionId:  pulumi.Float64Ref(rg.Id),
    			ProjectId: pulumi.Float64Ref(pr.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("allFlavor", allFlavors)
    		fullDataFlavors, err := edgecenter.GetFlavor(ctx, &edgecenter.GetFlavorArgs{
    			RegionId:        pulumi.Float64Ref(rg.Id),
    			ProjectId:       pulumi.Float64Ref(pr.Id),
    			IncludeDisabled: pulumi.BoolRef(true),
    			ExcludeWindows:  pulumi.BoolRef(false),
    			IncludePrices:   pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("fullDataFlavors", fullDataFlavors)
    		bmFlavors, err := edgecenter.GetFlavor(ctx, &edgecenter.GetFlavorArgs{
    			RegionId:  pulumi.Float64Ref(rg.Id),
    			ProjectId: pulumi.Float64Ref(pr.Id),
    			Type:      pulumi.StringRef("baremetal"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("bmFlavors", bmFlavors)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var rg = Edgecenter.GetRegion.Invoke(new()
        {
            Name = "ED-10 Preprod",
        });
    
        var pr = Edgecenter.GetProject.Invoke(new()
        {
            Name = "test",
        });
    
        var allFlavors = Edgecenter.GetFlavor.Invoke(new()
        {
            RegionId = rg.Apply(getRegionResult => getRegionResult.Id),
            ProjectId = pr.Apply(getProjectResult => getProjectResult.Id),
        });
    
        var fullDataFlavors = Edgecenter.GetFlavor.Invoke(new()
        {
            RegionId = rg.Apply(getRegionResult => getRegionResult.Id),
            ProjectId = pr.Apply(getProjectResult => getProjectResult.Id),
            IncludeDisabled = true,
            ExcludeWindows = false,
            IncludePrices = true,
        });
    
        var bmFlavors = Edgecenter.GetFlavor.Invoke(new()
        {
            RegionId = rg.Apply(getRegionResult => getRegionResult.Id),
            ProjectId = pr.Apply(getProjectResult => getProjectResult.Id),
            Type = "baremetal",
        });
    
        return new Dictionary<string, object?>
        {
            ["allFlavor"] = allFlavors,
            ["fullDataFlavors"] = fullDataFlavors,
            ["bmFlavors"] = bmFlavors,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.EdgecenterFunctions;
    import com.pulumi.edgecenter.inputs.GetRegionArgs;
    import com.pulumi.edgecenter.inputs.GetProjectArgs;
    import com.pulumi.edgecenter.inputs.GetFlavorArgs;
    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 rg = EdgecenterFunctions.getRegion(GetRegionArgs.builder()
                .name("ED-10 Preprod")
                .build());
    
            final var pr = EdgecenterFunctions.getProject(GetProjectArgs.builder()
                .name("test")
                .build());
    
            final var allFlavors = EdgecenterFunctions.getFlavor(GetFlavorArgs.builder()
                .regionId(rg.id())
                .projectId(pr.id())
                .build());
    
            ctx.export("allFlavor", allFlavors);
            final var fullDataFlavors = EdgecenterFunctions.getFlavor(GetFlavorArgs.builder()
                .regionId(rg.id())
                .projectId(pr.id())
                .includeDisabled(true)
                .excludeWindows(false)
                .includePrices(true)
                .build());
    
            ctx.export("fullDataFlavors", fullDataFlavors);
            final var bmFlavors = EdgecenterFunctions.getFlavor(GetFlavorArgs.builder()
                .regionId(rg.id())
                .projectId(pr.id())
                .type("baremetal")
                .build());
    
            ctx.export("bmFlavors", bmFlavors);
        }
    }
    
    variables:
      rg:
        fn::invoke:
          function: edgecenter:getRegion
          arguments:
            name: ED-10 Preprod
      pr:
        fn::invoke:
          function: edgecenter:getProject
          arguments:
            name: test
      allFlavors:
        fn::invoke:
          function: edgecenter:getFlavor
          arguments:
            regionId: ${rg.id}
            projectId: ${pr.id}
      fullDataFlavors:
        fn::invoke:
          function: edgecenter:getFlavor
          arguments:
            regionId: ${rg.id}
            projectId: ${pr.id}
            includeDisabled: true
            excludeWindows: false
            includePrices: true
      bmFlavors:
        fn::invoke:
          function: edgecenter:getFlavor
          arguments:
            regionId: ${rg.id}
            projectId: ${pr.id}
            type: baremetal
    outputs:
      allFlavor: ${allFlavors}
      fullDataFlavors: ${fullDataFlavors}
      bmFlavors: ${bmFlavors}
    

    Using getFlavor

    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 getFlavor(args: GetFlavorArgs, opts?: InvokeOptions): Promise<GetFlavorResult>
    function getFlavorOutput(args: GetFlavorOutputArgs, opts?: InvokeOptions): Output<GetFlavorResult>
    def get_flavor(exclude_windows: Optional[bool] = None,
                   id: Optional[str] = None,
                   include_disabled: Optional[bool] = None,
                   include_prices: Optional[bool] = None,
                   project_id: Optional[float] = None,
                   project_name: Optional[str] = None,
                   region_id: Optional[float] = None,
                   region_name: Optional[str] = None,
                   type: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetFlavorResult
    def get_flavor_output(exclude_windows: Optional[pulumi.Input[bool]] = None,
                   id: Optional[pulumi.Input[str]] = None,
                   include_disabled: Optional[pulumi.Input[bool]] = None,
                   include_prices: Optional[pulumi.Input[bool]] = None,
                   project_id: Optional[pulumi.Input[float]] = None,
                   project_name: Optional[pulumi.Input[str]] = None,
                   region_id: Optional[pulumi.Input[float]] = None,
                   region_name: Optional[pulumi.Input[str]] = None,
                   type: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetFlavorResult]
    func GetFlavor(ctx *Context, args *GetFlavorArgs, opts ...InvokeOption) (*GetFlavorResult, error)
    func GetFlavorOutput(ctx *Context, args *GetFlavorOutputArgs, opts ...InvokeOption) GetFlavorResultOutput

    > Note: This function is named GetFlavor in the Go SDK.

    public static class GetFlavor 
    {
        public static Task<GetFlavorResult> InvokeAsync(GetFlavorArgs args, InvokeOptions? opts = null)
        public static Output<GetFlavorResult> Invoke(GetFlavorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFlavorResult> getFlavor(GetFlavorArgs args, InvokeOptions options)
    public static Output<GetFlavorResult> getFlavor(GetFlavorArgs args, InvokeOptions options)
    
    fn::invoke:
      function: edgecenter:index/getFlavor:getFlavor
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ExcludeWindows bool
    Set to true to exclude flavors dedicated for Windows images.
    Id string
    The ID of this resource.
    IncludeDisabled bool
    Set to true to include disabled flavors.
    IncludePrices bool
    Set to true if the response should include flavor prices. Default is true.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Type string
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.
    ExcludeWindows bool
    Set to true to exclude flavors dedicated for Windows images.
    Id string
    The ID of this resource.
    IncludeDisabled bool
    Set to true to include disabled flavors.
    IncludePrices bool
    Set to true if the response should include flavor prices. Default is true.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Type string
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.
    excludeWindows Boolean
    Set to true to exclude flavors dedicated for Windows images.
    id String
    The ID of this resource.
    includeDisabled Boolean
    Set to true to include disabled flavors.
    includePrices Boolean
    Set to true if the response should include flavor prices. Default is true.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    type String
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.
    excludeWindows boolean
    Set to true to exclude flavors dedicated for Windows images.
    id string
    The ID of this resource.
    includeDisabled boolean
    Set to true to include disabled flavors.
    includePrices boolean
    Set to true if the response should include flavor prices. Default is true.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    type string
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.
    exclude_windows bool
    Set to true to exclude flavors dedicated for Windows images.
    id str
    The ID of this resource.
    include_disabled bool
    Set to true to include disabled flavors.
    include_prices bool
    Set to true if the response should include flavor prices. Default is true.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    type str
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.
    excludeWindows Boolean
    Set to true to exclude flavors dedicated for Windows images.
    id String
    The ID of this resource.
    includeDisabled Boolean
    Set to true to include disabled flavors.
    includePrices Boolean
    Set to true if the response should include flavor prices. Default is true.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    type String
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.

    getFlavor Result

    The following output properties are available:

    Flavors List<GetFlavorFlavor>
    A list of available flavors.
    Id string
    The ID of this resource.
    ExcludeWindows bool
    Set to true to exclude flavors dedicated for Windows images.
    IncludeDisabled bool
    Set to true to include disabled flavors.
    IncludePrices bool
    Set to true if the response should include flavor prices. Default is true.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Type string
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.
    Flavors []GetFlavorFlavor
    A list of available flavors.
    Id string
    The ID of this resource.
    ExcludeWindows bool
    Set to true to exclude flavors dedicated for Windows images.
    IncludeDisabled bool
    Set to true to include disabled flavors.
    IncludePrices bool
    Set to true if the response should include flavor prices. Default is true.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Type string
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.
    flavors List<GetFlavorFlavor>
    A list of available flavors.
    id String
    The ID of this resource.
    excludeWindows Boolean
    Set to true to exclude flavors dedicated for Windows images.
    includeDisabled Boolean
    Set to true to include disabled flavors.
    includePrices Boolean
    Set to true if the response should include flavor prices. Default is true.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    type String
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.
    flavors GetFlavorFlavor[]
    A list of available flavors.
    id string
    The ID of this resource.
    excludeWindows boolean
    Set to true to exclude flavors dedicated for Windows images.
    includeDisabled boolean
    Set to true to include disabled flavors.
    includePrices boolean
    Set to true if the response should include flavor prices. Default is true.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    type string
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.
    flavors Sequence[GetFlavorFlavor]
    A list of available flavors.
    id str
    The ID of this resource.
    exclude_windows bool
    Set to true to exclude flavors dedicated for Windows images.
    include_disabled bool
    Set to true to include disabled flavors.
    include_prices bool
    Set to true if the response should include flavor prices. Default is true.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    type str
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.
    flavors List<Property Map>
    A list of available flavors.
    id String
    The ID of this resource.
    excludeWindows Boolean
    Set to true to exclude flavors dedicated for Windows images.
    includeDisabled Boolean
    Set to true to include disabled flavors.
    includePrices Boolean
    Set to true if the response should include flavor prices. Default is true.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    type String
    Type of flavors to return: instance, baremetal, or load_balancer. If not specified, all flavors are returned.

    Supporting Types

    GetFlavorFlavor

    CurrencyCode string
    Disabled bool
    FlavorId string
    FlavorName string
    HardwareDescription Dictionary<string, string>
    PricePerHour double
    PricePerMonth double
    Ram double
    ResourceClass string
    Type string
    Vcpus double
    CurrencyCode string
    Disabled bool
    FlavorId string
    FlavorName string
    HardwareDescription map[string]string
    PricePerHour float64
    PricePerMonth float64
    Ram float64
    ResourceClass string
    Type string
    Vcpus float64
    currencyCode String
    disabled Boolean
    flavorId String
    flavorName String
    hardwareDescription Map<String,String>
    pricePerHour Double
    pricePerMonth Double
    ram Double
    resourceClass String
    type String
    vcpus Double
    currencyCode string
    disabled boolean
    flavorId string
    flavorName string
    hardwareDescription {[key: string]: string}
    pricePerHour number
    pricePerMonth number
    ram number
    resourceClass string
    type string
    vcpus number
    currencyCode String
    disabled Boolean
    flavorId String
    flavorName String
    hardwareDescription Map<String>
    pricePerHour Number
    pricePerMonth Number
    ram Number
    resourceClass String
    type String
    vcpus Number

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.10.7 published on Tuesday, Dec 23, 2025 by edge-center
      Meet Neo: Your AI Platform Teammate