1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getDdmFlavorsV1
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.getDdmFlavorsV1

Explore with Pulumi AI

opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

Up-to-date reference of API arguments for DDM compute flavors you can get at documentation portal

Use this data source to get info of OpenTelekomCloud DDM compute flavors.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const engineList = opentelekomcloud.getDdmEnginesV1({});
const flavorList = engineList.then(engineList => opentelekomcloud.getDdmFlavorsV1({
    engineId: engineList.engines?.[0]?.id,
}));
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

engine_list = opentelekomcloud.get_ddm_engines_v1()
flavor_list = opentelekomcloud.get_ddm_flavors_v1(engine_id=engine_list.engines[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		engineList, err := opentelekomcloud.GetDdmEnginesV1(ctx, &opentelekomcloud.GetDdmEnginesV1Args{}, nil)
		if err != nil {
			return err
		}
		_, err = opentelekomcloud.GetDdmFlavorsV1(ctx, &opentelekomcloud.GetDdmFlavorsV1Args{
			EngineId: engineList.Engines[0].Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var engineList = Opentelekomcloud.GetDdmEnginesV1.Invoke();

    var flavorList = Opentelekomcloud.GetDdmFlavorsV1.Invoke(new()
    {
        EngineId = engineList.Apply(getDdmEnginesV1Result => getDdmEnginesV1Result.Engines[0]?.Id),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetDdmEnginesV1Args;
import com.pulumi.opentelekomcloud.inputs.GetDdmFlavorsV1Args;
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 engineList = OpentelekomcloudFunctions.getDdmEnginesV1();

        final var flavorList = OpentelekomcloudFunctions.getDdmFlavorsV1(GetDdmFlavorsV1Args.builder()
            .engineId(engineList.applyValue(getDdmEnginesV1Result -> getDdmEnginesV1Result.engines()[0].id()))
            .build());

    }
}
Copy
variables:
  engineList:
    fn::invoke:
      function: opentelekomcloud:getDdmEnginesV1
      arguments: {}
  flavorList:
    fn::invoke:
      function: opentelekomcloud:getDdmFlavorsV1
      arguments:
        engineId: ${engineList.engines[0].id}
Copy

Using getDdmFlavorsV1

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 getDdmFlavorsV1(args: GetDdmFlavorsV1Args, opts?: InvokeOptions): Promise<GetDdmFlavorsV1Result>
function getDdmFlavorsV1Output(args: GetDdmFlavorsV1OutputArgs, opts?: InvokeOptions): Output<GetDdmFlavorsV1Result>
Copy
def get_ddm_flavors_v1(engine_id: Optional[str] = None,
                       id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDdmFlavorsV1Result
def get_ddm_flavors_v1_output(engine_id: Optional[pulumi.Input[str]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDdmFlavorsV1Result]
Copy
func GetDdmFlavorsV1(ctx *Context, args *GetDdmFlavorsV1Args, opts ...InvokeOption) (*GetDdmFlavorsV1Result, error)
func GetDdmFlavorsV1Output(ctx *Context, args *GetDdmFlavorsV1OutputArgs, opts ...InvokeOption) GetDdmFlavorsV1ResultOutput
Copy

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

public static class GetDdmFlavorsV1 
{
    public static Task<GetDdmFlavorsV1Result> InvokeAsync(GetDdmFlavorsV1Args args, InvokeOptions? opts = null)
    public static Output<GetDdmFlavorsV1Result> Invoke(GetDdmFlavorsV1InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDdmFlavorsV1Result> getDdmFlavorsV1(GetDdmFlavorsV1Args args, InvokeOptions options)
public static Output<GetDdmFlavorsV1Result> getDdmFlavorsV1(GetDdmFlavorsV1Args args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getDdmFlavorsV1:getDdmFlavorsV1
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EngineId This property is required. string
Specifies the DDM engine ID.
Id string
Indicates the compute flavor ID.
EngineId This property is required. string
Specifies the DDM engine ID.
Id string
Indicates the compute flavor ID.
engineId This property is required. String
Specifies the DDM engine ID.
id String
Indicates the compute flavor ID.
engineId This property is required. string
Specifies the DDM engine ID.
id string
Indicates the compute flavor ID.
engine_id This property is required. str
Specifies the DDM engine ID.
id str
Indicates the compute flavor ID.
engineId This property is required. String
Specifies the DDM engine ID.
id String
Indicates the compute flavor ID.

getDdmFlavorsV1 Result

The following output properties are available:

EngineId string
See Argument Reference above.
FlavorGroups List<GetDdmFlavorsV1FlavorGroup>
Indicates the DDM compute flvaor groups information. Structure is documented below.
Id string
Indicates the compute flavor ID.
Region string
Indicates the region of the DDM compute flavors.
EngineId string
See Argument Reference above.
FlavorGroups []GetDdmFlavorsV1FlavorGroup
Indicates the DDM compute flvaor groups information. Structure is documented below.
Id string
Indicates the compute flavor ID.
Region string
Indicates the region of the DDM compute flavors.
engineId String
See Argument Reference above.
flavorGroups List<GetDdmFlavorsV1FlavorGroup>
Indicates the DDM compute flvaor groups information. Structure is documented below.
id String
Indicates the compute flavor ID.
region String
Indicates the region of the DDM compute flavors.
engineId string
See Argument Reference above.
flavorGroups GetDdmFlavorsV1FlavorGroup[]
Indicates the DDM compute flvaor groups information. Structure is documented below.
id string
Indicates the compute flavor ID.
region string
Indicates the region of the DDM compute flavors.
engine_id str
See Argument Reference above.
flavor_groups Sequence[GetDdmFlavorsV1FlavorGroup]
Indicates the DDM compute flvaor groups information. Structure is documented below.
id str
Indicates the compute flavor ID.
region str
Indicates the region of the DDM compute flavors.
engineId String
See Argument Reference above.
flavorGroups List<Property Map>
Indicates the DDM compute flvaor groups information. Structure is documented below.
id String
Indicates the compute flavor ID.
region String
Indicates the region of the DDM compute flavors.

Supporting Types

GetDdmFlavorsV1FlavorGroup

Flavors This property is required. List<GetDdmFlavorsV1FlavorGroupFlavor>
Indicates the available compute flavors in the flavor group. Structure is documented below
Type This property is required. string
Indicates the DDM compute flavor group type. The value can be x86 or ARM.
Flavors This property is required. []GetDdmFlavorsV1FlavorGroupFlavor
Indicates the available compute flavors in the flavor group. Structure is documented below
Type This property is required. string
Indicates the DDM compute flavor group type. The value can be x86 or ARM.
flavors This property is required. List<GetDdmFlavorsV1FlavorGroupFlavor>
Indicates the available compute flavors in the flavor group. Structure is documented below
type This property is required. String
Indicates the DDM compute flavor group type. The value can be x86 or ARM.
flavors This property is required. GetDdmFlavorsV1FlavorGroupFlavor[]
Indicates the available compute flavors in the flavor group. Structure is documented below
type This property is required. string
Indicates the DDM compute flavor group type. The value can be x86 or ARM.
flavors This property is required. Sequence[GetDdmFlavorsV1FlavorGroupFlavor]
Indicates the available compute flavors in the flavor group. Structure is documented below
type This property is required. str
Indicates the DDM compute flavor group type. The value can be x86 or ARM.
flavors This property is required. List<Property Map>
Indicates the available compute flavors in the flavor group. Structure is documented below
type This property is required. String
Indicates the DDM compute flavor group type. The value can be x86 or ARM.

GetDdmFlavorsV1FlavorGroupFlavor

Architecture This property is required. string
Indicates the coompute resource architecture type. The value can be x86 or ARM.
AzStatus This property is required. Dictionary<string, string>
Status of the AZ where node classes are available. The key is the AZ ID and the value is the AZ status. The value can be normal, unsupported, or sellout.
Code This property is required. string
Indicates the VM flavor types recorded in DDM.
Cpu This property is required. string
Indicates the number of CPUs.
IaasCode This property is required. string
Indicates the VM flavor types recorded by the IaaS layer.
Id This property is required. string
Indicates the compute flavor ID.
MaxConnections This property is required. string
Indicates the maximum number of connections.
Memory This property is required. string
Indicates the memory size, in GB.
ServerType This property is required. string
Indicates the compute resource type.
TypeCode This property is required. string
Indicates the resource type code.
Architecture This property is required. string
Indicates the coompute resource architecture type. The value can be x86 or ARM.
AzStatus This property is required. map[string]string
Status of the AZ where node classes are available. The key is the AZ ID and the value is the AZ status. The value can be normal, unsupported, or sellout.
Code This property is required. string
Indicates the VM flavor types recorded in DDM.
Cpu This property is required. string
Indicates the number of CPUs.
IaasCode This property is required. string
Indicates the VM flavor types recorded by the IaaS layer.
Id This property is required. string
Indicates the compute flavor ID.
MaxConnections This property is required. string
Indicates the maximum number of connections.
Memory This property is required. string
Indicates the memory size, in GB.
ServerType This property is required. string
Indicates the compute resource type.
TypeCode This property is required. string
Indicates the resource type code.
architecture This property is required. String
Indicates the coompute resource architecture type. The value can be x86 or ARM.
azStatus This property is required. Map<String,String>
Status of the AZ where node classes are available. The key is the AZ ID and the value is the AZ status. The value can be normal, unsupported, or sellout.
code This property is required. String
Indicates the VM flavor types recorded in DDM.
cpu This property is required. String
Indicates the number of CPUs.
iaasCode This property is required. String
Indicates the VM flavor types recorded by the IaaS layer.
id This property is required. String
Indicates the compute flavor ID.
maxConnections This property is required. String
Indicates the maximum number of connections.
memory This property is required. String
Indicates the memory size, in GB.
serverType This property is required. String
Indicates the compute resource type.
typeCode This property is required. String
Indicates the resource type code.
architecture This property is required. string
Indicates the coompute resource architecture type. The value can be x86 or ARM.
azStatus This property is required. {[key: string]: string}
Status of the AZ where node classes are available. The key is the AZ ID and the value is the AZ status. The value can be normal, unsupported, or sellout.
code This property is required. string
Indicates the VM flavor types recorded in DDM.
cpu This property is required. string
Indicates the number of CPUs.
iaasCode This property is required. string
Indicates the VM flavor types recorded by the IaaS layer.
id This property is required. string
Indicates the compute flavor ID.
maxConnections This property is required. string
Indicates the maximum number of connections.
memory This property is required. string
Indicates the memory size, in GB.
serverType This property is required. string
Indicates the compute resource type.
typeCode This property is required. string
Indicates the resource type code.
architecture This property is required. str
Indicates the coompute resource architecture type. The value can be x86 or ARM.
az_status This property is required. Mapping[str, str]
Status of the AZ where node classes are available. The key is the AZ ID and the value is the AZ status. The value can be normal, unsupported, or sellout.
code This property is required. str
Indicates the VM flavor types recorded in DDM.
cpu This property is required. str
Indicates the number of CPUs.
iaas_code This property is required. str
Indicates the VM flavor types recorded by the IaaS layer.
id This property is required. str
Indicates the compute flavor ID.
max_connections This property is required. str
Indicates the maximum number of connections.
memory This property is required. str
Indicates the memory size, in GB.
server_type This property is required. str
Indicates the compute resource type.
type_code This property is required. str
Indicates the resource type code.
architecture This property is required. String
Indicates the coompute resource architecture type. The value can be x86 or ARM.
azStatus This property is required. Map<String>
Status of the AZ where node classes are available. The key is the AZ ID and the value is the AZ status. The value can be normal, unsupported, or sellout.
code This property is required. String
Indicates the VM flavor types recorded in DDM.
cpu This property is required. String
Indicates the number of CPUs.
iaasCode This property is required. String
Indicates the VM flavor types recorded by the IaaS layer.
id This property is required. String
Indicates the compute flavor ID.
maxConnections This property is required. String
Indicates the maximum number of connections.
memory This property is required. String
Indicates the memory size, in GB.
serverType This property is required. String
Indicates the compute resource type.
typeCode This property is required. String
Indicates the resource type code.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud