edgecenter 0.10.7 published on Tuesday, Dec 23, 2025 by edge-center
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 dictionaryThe following arguments are supported:
- Exclude
Windows bool - Set to true to exclude flavors dedicated for Windows images.
- Id string
- 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 double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name 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 string
- 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 float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name 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 Boolean - Set to true to exclude flavors dedicated for Windows images.
- id String
- The ID of this resource.
- include
Disabled Boolean - Set to true to include disabled flavors.
- include
Prices Boolean - Set to true if the response should include flavor prices. Default is true.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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 boolean - Set to true to exclude flavors dedicated for Windows images.
- id string
- The ID of this resource.
- include
Disabled boolean - Set to true to include disabled flavors.
- include
Prices boolean - Set to true if the response should include flavor prices. Default is true.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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.
- exclude
Windows Boolean - Set to true to exclude flavors dedicated for Windows images.
- id String
- The ID of this resource.
- include
Disabled Boolean - Set to true to include disabled flavors.
- include
Prices Boolean - Set to true if the response should include flavor prices. Default is true.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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<Get
Flavor Flavor> - A list of available flavors.
- Id string
- 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 double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name 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
[]Get
Flavor Flavor - A list of available flavors.
- Id string
- 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 float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name 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<Get
Flavor Flavor> - A list of available flavors.
- id String
- The ID of this resource.
- exclude
Windows Boolean - Set to true to exclude flavors dedicated for Windows images.
- include
Disabled Boolean - Set to true to include disabled flavors.
- include
Prices Boolean - Set to true if the response should include flavor prices. Default is true.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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
Get
Flavor Flavor[] - A list of available flavors.
- id string
- The ID of this resource.
- exclude
Windows boolean - Set to true to exclude flavors dedicated for Windows images.
- include
Disabled boolean - Set to true to include disabled flavors.
- include
Prices boolean - Set to true if the response should include flavor prices. Default is true.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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[Get
Flavor Flavor] - 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.
- exclude
Windows Boolean - Set to true to exclude flavors dedicated for Windows images.
- include
Disabled Boolean - Set to true to include disabled flavors.
- include
Prices Boolean - Set to true if the response should include flavor prices. Default is true.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name 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
- Currency
Code string - Disabled bool
- Flavor
Id string - Flavor
Name string - Hardware
Description Dictionary<string, string> - Price
Per doubleHour - Price
Per doubleMonth - Ram double
- Resource
Class string - Type string
- Vcpus double
- Currency
Code string - Disabled bool
- Flavor
Id string - Flavor
Name string - Hardware
Description map[string]string - Price
Per float64Hour - Price
Per float64Month - Ram float64
- Resource
Class string - Type string
- Vcpus float64
- currency
Code String - disabled Boolean
- flavor
Id String - flavor
Name String - hardware
Description Map<String,String> - price
Per DoubleHour - price
Per DoubleMonth - ram Double
- resource
Class String - type String
- vcpus Double
- currency
Code string - disabled boolean
- flavor
Id string - flavor
Name string - hardware
Description {[key: string]: string} - price
Per numberHour - price
Per numberMonth - ram number
- resource
Class string - type string
- vcpus number
- currency_
code str - disabled bool
- flavor_
id str - flavor_
name str - hardware_
description Mapping[str, str] - price_
per_ floathour - price_
per_ floatmonth - ram float
- resource_
class str - type str
- vcpus float
- currency
Code String - disabled Boolean
- flavor
Id String - flavor
Name String - hardware
Description Map<String> - price
Per NumberHour - price
Per NumberMonth - ram Number
- resource
Class String - type String
- vcpus Number
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenterTerraform Provider.
edgecenter 0.10.7 published on Tuesday, Dec 23, 2025 by edge-center
