opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getDdmFlavorsV1
Explore with Pulumi AI
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:
getDdmFlavorsV1 Result
The following output properties are available:
- Engine
Id string - See Argument Reference above.
- Flavor
Groups List<GetDdm Flavors V1Flavor Group> - 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 string - See Argument Reference above.
- Flavor
Groups []GetDdm Flavors V1Flavor Group - 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 String - See Argument Reference above.
- flavor
Groups List<GetDdm Flavors V1Flavor Group> - 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 string - See Argument Reference above.
- flavor
Groups GetDdm Flavors V1Flavor Group[] - 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[GetDdm Flavors V1Flavor Group] - 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.
- engine
Id String - See Argument Reference above.
- flavor
Groups 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<Get
Ddm Flavors V1Flavor Group Flavor> - 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
[]Get
Ddm Flavors V1Flavor Group Flavor - 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<Get
Ddm Flavors V1Flavor Group Flavor> - 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
Get
Ddm Flavors V1Flavor Group Flavor[] - 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[Get
Ddm Flavors V1Flavor Group Flavor] - 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.
- Az
Status 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
, orsellout
. - Code string
- Indicates the VM flavor types recorded in DDM.
- Cpu string
- Indicates the number of CPUs.
- Iaas
Code string - Indicates the VM flavor types recorded by the IaaS layer.
- Id string
- Indicates the compute flavor ID.
- Max
Connections string - Indicates the maximum number of connections.
- Memory string
- Indicates the memory size, in GB.
- Server
Type string - Indicates the compute resource type.
- Type
Code string - Indicates the resource type code.
- Architecture string
- Indicates the coompute resource architecture type. The value can be x86 or ARM.
- Az
Status 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
, orsellout
. - Code string
- Indicates the VM flavor types recorded in DDM.
- Cpu string
- Indicates the number of CPUs.
- Iaas
Code string - Indicates the VM flavor types recorded by the IaaS layer.
- Id string
- Indicates the compute flavor ID.
- Max
Connections string - Indicates the maximum number of connections.
- Memory string
- Indicates the memory size, in GB.
- Server
Type string - Indicates the compute resource type.
- Type
Code string - Indicates the resource type code.
- architecture String
- Indicates the coompute resource architecture type. The value can be x86 or ARM.
- az
Status 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
, orsellout
. - code String
- Indicates the VM flavor types recorded in DDM.
- cpu String
- Indicates the number of CPUs.
- iaas
Code String - Indicates the VM flavor types recorded by the IaaS layer.
- id String
- Indicates the compute flavor ID.
- max
Connections String - Indicates the maximum number of connections.
- memory String
- Indicates the memory size, in GB.
- server
Type String - Indicates the compute resource type.
- type
Code String - Indicates the resource type code.
- architecture string
- Indicates the coompute resource architecture type. The value can be x86 or ARM.
- az
Status {[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
, orsellout
. - code string
- Indicates the VM flavor types recorded in DDM.
- cpu string
- Indicates the number of CPUs.
- iaas
Code string - Indicates the VM flavor types recorded by the IaaS layer.
- id string
- Indicates the compute flavor ID.
- max
Connections string - Indicates the maximum number of connections.
- memory string
- Indicates the memory size, in GB.
- server
Type string - Indicates the compute resource type.
- type
Code 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
, orsellout
. - 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.
- az
Status 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
, orsellout
. - code String
- Indicates the VM flavor types recorded in DDM.
- cpu String
- Indicates the number of CPUs.
- iaas
Code String - Indicates the VM flavor types recorded by the IaaS layer.
- id String
- Indicates the compute flavor ID.
- max
Connections String - Indicates the maximum number of connections.
- memory String
- Indicates the memory size, in GB.
- server
Type String - Indicates the compute resource type.
- type
Code 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.37 published on Thursday, Apr 24, 2025 by opentelekomcloud