1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getDdmFlavorsV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getDdmFlavorsV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 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,
    }));
    
    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)
    
    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
    	})
    }
    
    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),
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      engineList:
        fn::invoke:
          function: opentelekomcloud:getDdmEnginesV1
          arguments: {}
      flavorList:
        fn::invoke:
          function: opentelekomcloud:getDdmFlavorsV1
          arguments:
            engineId: ${engineList.engines[0].id}
    

    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>
    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]
    func GetDdmFlavorsV1(ctx *Context, args *GetDdmFlavorsV1Args, opts ...InvokeOption) (*GetDdmFlavorsV1Result, error)
    func GetDdmFlavorsV1Output(ctx *Context, args *GetDdmFlavorsV1OutputArgs, opts ...InvokeOption) GetDdmFlavorsV1ResultOutput

    > 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)
    }
    public static CompletableFuture<GetDdmFlavorsV1Result> getDdmFlavorsV1(GetDdmFlavorsV1Args args, InvokeOptions options)
    public static Output<GetDdmFlavorsV1Result> getDdmFlavorsV1(GetDdmFlavorsV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getDdmFlavorsV1:getDdmFlavorsV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EngineId string
    Specifies the DDM engine ID.
    Id string
    Indicates the compute flavor ID.
    EngineId string
    Specifies the DDM engine ID.
    Id string
    Indicates the compute flavor ID.
    engineId String
    Specifies the DDM engine ID.
    id String
    Indicates the compute flavor ID.
    engineId string
    Specifies the DDM engine ID.
    id string
    Indicates the compute flavor ID.
    engine_id str
    Specifies the DDM engine ID.
    id str
    Indicates the compute flavor ID.
    engineId 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 List<GetDdmFlavorsV1FlavorGroupFlavor>
    Indicates the available compute flavors in the flavor group. Structure is documented below
    Type string
    Indicates the DDM compute flavor group type. The value can be x86 or ARM.
    Flavors []GetDdmFlavorsV1FlavorGroupFlavor
    Indicates the available compute flavors in the flavor group. Structure is documented below
    Type string
    Indicates the DDM compute flavor group type. The value can be x86 or ARM.
    flavors List<GetDdmFlavorsV1FlavorGroupFlavor>
    Indicates the available compute flavors in the flavor group. Structure is documented below
    type String
    Indicates the DDM compute flavor group type. The value can be x86 or ARM.
    flavors GetDdmFlavorsV1FlavorGroupFlavor[]
    Indicates the available compute flavors in the flavor group. Structure is documented below
    type string
    Indicates the DDM compute flavor group type. The value can be x86 or ARM.
    flavors Sequence[GetDdmFlavorsV1FlavorGroupFlavor]
    Indicates the available compute flavors in the flavor group. Structure is documented below
    type str
    Indicates the DDM compute flavor group type. The value can be x86 or ARM.
    flavors List<Property Map>
    Indicates the available compute flavors in the flavor group. Structure is documented below
    type String
    Indicates the DDM compute flavor group type. The value can be x86 or ARM.

    GetDdmFlavorsV1FlavorGroupFlavor

    Architecture string
    Indicates the coompute resource architecture type. The value can be x86 or ARM.
    AzStatus 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 string
    Indicates the VM flavor types recorded in DDM.
    Cpu string
    Indicates the number of CPUs.
    IaasCode string
    Indicates the VM flavor types recorded by the IaaS layer.
    Id string
    Indicates the compute flavor ID.
    MaxConnections string
    Indicates the maximum number of connections.
    Memory string
    Indicates the memory size, in GB.
    ServerType string
    Indicates the compute resource type.
    TypeCode string
    Indicates the resource type code.
    Architecture string
    Indicates the coompute resource architecture type. The value can be x86 or ARM.
    AzStatus 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 string
    Indicates the VM flavor types recorded in DDM.
    Cpu string
    Indicates the number of CPUs.
    IaasCode string
    Indicates the VM flavor types recorded by the IaaS layer.
    Id string
    Indicates the compute flavor ID.
    MaxConnections string
    Indicates the maximum number of connections.
    Memory string
    Indicates the memory size, in GB.
    ServerType string
    Indicates the compute resource type.
    TypeCode string
    Indicates the resource type code.
    architecture String
    Indicates the coompute resource architecture type. The value can be x86 or ARM.
    azStatus 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 String
    Indicates the VM flavor types recorded in DDM.
    cpu String
    Indicates the number of CPUs.
    iaasCode String
    Indicates the VM flavor types recorded by the IaaS layer.
    id String
    Indicates the compute flavor ID.
    maxConnections String
    Indicates the maximum number of connections.
    memory String
    Indicates the memory size, in GB.
    serverType String
    Indicates the compute resource type.
    typeCode String
    Indicates the resource type code.
    architecture string
    Indicates the coompute resource architecture type. The value can be x86 or ARM.
    azStatus {[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 string
    Indicates the VM flavor types recorded in DDM.
    cpu string
    Indicates the number of CPUs.
    iaasCode string
    Indicates the VM flavor types recorded by the IaaS layer.
    id string
    Indicates the compute flavor ID.
    maxConnections string
    Indicates the maximum number of connections.
    memory string
    Indicates the memory size, in GB.
    serverType string
    Indicates the compute resource type.
    typeCode string
    Indicates the resource type code.
    architecture str
    Indicates the coompute resource architecture type. The value can be x86 or ARM.
    az_status 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 str
    Indicates the VM flavor types recorded in DDM.
    cpu str
    Indicates the number of CPUs.
    iaas_code str
    Indicates the VM flavor types recorded by the IaaS layer.
    id str
    Indicates the compute flavor ID.
    max_connections str
    Indicates the maximum number of connections.
    memory str
    Indicates the memory size, in GB.
    server_type str
    Indicates the compute resource type.
    type_code str
    Indicates the resource type code.
    architecture String
    Indicates the coompute resource architecture type. The value can be x86 or ARM.
    azStatus 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 String
    Indicates the VM flavor types recorded in DDM.
    cpu String
    Indicates the number of CPUs.
    iaasCode String
    Indicates the VM flavor types recorded by the IaaS layer.
    id String
    Indicates the compute flavor ID.
    maxConnections String
    Indicates the maximum number of connections.
    memory String
    Indicates the memory size, in GB.
    serverType String
    Indicates the compute resource type.
    typeCode 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 logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud