flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getDdmFlavors
Explore with Pulumi AI
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
Use this data source to get the list of DDM flavors.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const testDdmEngines = flexibleengine.getDdmEngines({
version: "3.0.8.5",
});
const testDdmFlavors = testDdmEngines.then(testDdmEngines => flexibleengine.getDdmFlavors({
engineId: testDdmEngines.engines?.[0]?.id,
cpuArch: "X86",
}));
import pulumi
import pulumi_flexibleengine as flexibleengine
test_ddm_engines = flexibleengine.get_ddm_engines(version="3.0.8.5")
test_ddm_flavors = flexibleengine.get_ddm_flavors(engine_id=test_ddm_engines.engines[0].id,
cpu_arch="X86")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testDdmEngines, err := flexibleengine.GetDdmEngines(ctx, &flexibleengine.GetDdmEnginesArgs{
Version: pulumi.StringRef("3.0.8.5"),
}, nil)
if err != nil {
return err
}
_, err = flexibleengine.GetDdmFlavors(ctx, &flexibleengine.GetDdmFlavorsArgs{
EngineId: testDdmEngines.Engines[0].Id,
CpuArch: pulumi.StringRef("X86"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var testDdmEngines = Flexibleengine.GetDdmEngines.Invoke(new()
{
Version = "3.0.8.5",
});
var testDdmFlavors = Flexibleengine.GetDdmFlavors.Invoke(new()
{
EngineId = testDdmEngines.Apply(getDdmEnginesResult => getDdmEnginesResult.Engines[0]?.Id),
CpuArch = "X86",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetDdmEnginesArgs;
import com.pulumi.flexibleengine.inputs.GetDdmFlavorsArgs;
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 testDdmEngines = FlexibleengineFunctions.getDdmEngines(GetDdmEnginesArgs.builder()
.version("3.0.8.5")
.build());
final var testDdmFlavors = FlexibleengineFunctions.getDdmFlavors(GetDdmFlavorsArgs.builder()
.engineId(testDdmEngines.applyValue(getDdmEnginesResult -> getDdmEnginesResult.engines()[0].id()))
.cpuArch("X86")
.build());
}
}
variables:
testDdmEngines:
fn::invoke:
function: flexibleengine:getDdmEngines
arguments:
version: 3.0.8.5
testDdmFlavors:
fn::invoke:
function: flexibleengine:getDdmFlavors
arguments:
engineId: ${testDdmEngines.engines[0].id}
cpuArch: X86
Using getDdmFlavors
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 getDdmFlavors(args: GetDdmFlavorsArgs, opts?: InvokeOptions): Promise<GetDdmFlavorsResult>
function getDdmFlavorsOutput(args: GetDdmFlavorsOutputArgs, opts?: InvokeOptions): Output<GetDdmFlavorsResult>
def get_ddm_flavors(code: Optional[str] = None,
cpu_arch: Optional[str] = None,
engine_id: Optional[str] = None,
id: Optional[str] = None,
memory: Optional[float] = None,
region: Optional[str] = None,
vcpus: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetDdmFlavorsResult
def get_ddm_flavors_output(code: Optional[pulumi.Input[str]] = None,
cpu_arch: Optional[pulumi.Input[str]] = None,
engine_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
memory: Optional[pulumi.Input[float]] = None,
region: Optional[pulumi.Input[str]] = None,
vcpus: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDdmFlavorsResult]
func GetDdmFlavors(ctx *Context, args *GetDdmFlavorsArgs, opts ...InvokeOption) (*GetDdmFlavorsResult, error)
func GetDdmFlavorsOutput(ctx *Context, args *GetDdmFlavorsOutputArgs, opts ...InvokeOption) GetDdmFlavorsResultOutput
> Note: This function is named GetDdmFlavors
in the Go SDK.
public static class GetDdmFlavors
{
public static Task<GetDdmFlavorsResult> InvokeAsync(GetDdmFlavorsArgs args, InvokeOptions? opts = null)
public static Output<GetDdmFlavorsResult> Invoke(GetDdmFlavorsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDdmFlavorsResult> getDdmFlavors(GetDdmFlavorsArgs args, InvokeOptions options)
public static Output<GetDdmFlavorsResult> getDdmFlavors(GetDdmFlavorsArgs args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getDdmFlavors:getDdmFlavors
arguments:
# arguments dictionary
The following arguments are supported:
- Engine
Id string - Specifies the ID of an engine.
- Code string
- Specifies the VM flavor types recorded in DDM.
- Cpu
Arch string - Specifies the compute resource architecture type. The options are X86 and ARM.
- Id string
- Indicates the ID of a flavor.
- Memory double
- Specifies the memory size. Unit GB.
- Region string
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- Vcpus double
- Specifies the number of CPUs.
- Engine
Id string - Specifies the ID of an engine.
- Code string
- Specifies the VM flavor types recorded in DDM.
- Cpu
Arch string - Specifies the compute resource architecture type. The options are X86 and ARM.
- Id string
- Indicates the ID of a flavor.
- Memory float64
- Specifies the memory size. Unit GB.
- Region string
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- Vcpus float64
- Specifies the number of CPUs.
- engine
Id String - Specifies the ID of an engine.
- code String
- Specifies the VM flavor types recorded in DDM.
- cpu
Arch String - Specifies the compute resource architecture type. The options are X86 and ARM.
- id String
- Indicates the ID of a flavor.
- memory Double
- Specifies the memory size. Unit GB.
- region String
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- vcpus Double
- Specifies the number of CPUs.
- engine
Id string - Specifies the ID of an engine.
- code string
- Specifies the VM flavor types recorded in DDM.
- cpu
Arch string - Specifies the compute resource architecture type. The options are X86 and ARM.
- id string
- Indicates the ID of a flavor.
- memory number
- Specifies the memory size. Unit GB.
- region string
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- vcpus number
- Specifies the number of CPUs.
- engine_
id str - Specifies the ID of an engine.
- code str
- Specifies the VM flavor types recorded in DDM.
- cpu_
arch str - Specifies the compute resource architecture type. The options are X86 and ARM.
- id str
- Indicates the ID of a flavor.
- memory float
- Specifies the memory size. Unit GB.
- region str
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- vcpus float
- Specifies the number of CPUs.
- engine
Id String - Specifies the ID of an engine.
- code String
- Specifies the VM flavor types recorded in DDM.
- cpu
Arch String - Specifies the compute resource architecture type. The options are X86 and ARM.
- id String
- Indicates the ID of a flavor.
- memory Number
- Specifies the memory size. Unit GB.
- region String
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- vcpus Number
- Specifies the number of CPUs.
getDdmFlavors Result
The following output properties are available:
- Engine
Id string - Flavors
List<Get
Ddm Flavors Flavor> - Indicates the list of DDM compute flavors. The Flavor structure is documented below.
- Id string
- Indicates the ID of a flavor.
- Region string
- Code string
- Indicates the VM flavor types recorded in DDM.
- Cpu
Arch string - Indicates the compute resource architecture type.
- Memory double
- Indicates the memory size.
- Vcpus double
- Indicates the number of CPUs.
- Engine
Id string - Flavors
[]Get
Ddm Flavors Flavor - Indicates the list of DDM compute flavors. The Flavor structure is documented below.
- Id string
- Indicates the ID of a flavor.
- Region string
- Code string
- Indicates the VM flavor types recorded in DDM.
- Cpu
Arch string - Indicates the compute resource architecture type.
- Memory float64
- Indicates the memory size.
- Vcpus float64
- Indicates the number of CPUs.
- engine
Id String - flavors
List<Get
Ddm Flavors Flavor> - Indicates the list of DDM compute flavors. The Flavor structure is documented below.
- id String
- Indicates the ID of a flavor.
- region String
- code String
- Indicates the VM flavor types recorded in DDM.
- cpu
Arch String - Indicates the compute resource architecture type.
- memory Double
- Indicates the memory size.
- vcpus Double
- Indicates the number of CPUs.
- engine
Id string - flavors
Get
Ddm Flavors Flavor[] - Indicates the list of DDM compute flavors. The Flavor structure is documented below.
- id string
- Indicates the ID of a flavor.
- region string
- code string
- Indicates the VM flavor types recorded in DDM.
- cpu
Arch string - Indicates the compute resource architecture type.
- memory number
- Indicates the memory size.
- vcpus number
- Indicates the number of CPUs.
- engine_
id str - flavors
Sequence[Get
Ddm Flavors Flavor] - Indicates the list of DDM compute flavors. The Flavor structure is documented below.
- id str
- Indicates the ID of a flavor.
- region str
- code str
- Indicates the VM flavor types recorded in DDM.
- cpu_
arch str - Indicates the compute resource architecture type.
- memory float
- Indicates the memory size.
- vcpus float
- Indicates the number of CPUs.
- engine
Id String - flavors List<Property Map>
- Indicates the list of DDM compute flavors. The Flavor structure is documented below.
- id String
- Indicates the ID of a flavor.
- region String
- code String
- Indicates the VM flavor types recorded in DDM.
- cpu
Arch String - Indicates the compute resource architecture type.
- memory Number
- Indicates the memory size.
- vcpus Number
- Indicates the number of CPUs.
Supporting Types
GetDdmFlavorsFlavor
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud