Viewing docs for opentelekomcloud 1.36.60
published on Thursday, Feb 26, 2026 by opentelekomcloud
published on Thursday, Feb 26, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.36.60
published on Thursday, Feb 26, 2026 by opentelekomcloud
published on Thursday, Feb 26, 2026 by opentelekomcloud
Up-to-date reference of API arguments for ECS flavor you can get at documentation portal
Use this data source to get the ID of an available OpenTelekomCloud flavor.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const medium_s2 = opentelekomcloud.getComputeFlavorV2({
vcpus: 1,
ram: 4096,
resourceType: "IOoptimizedS2",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
medium_s2 = opentelekomcloud.get_compute_flavor_v2(vcpus=1,
ram=4096,
resource_type="IOoptimizedS2")
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 {
_, err := opentelekomcloud.GetComputeFlavorV2(ctx, &opentelekomcloud.GetComputeFlavorV2Args{
Vcpus: pulumi.Float64Ref(1),
Ram: pulumi.Float64Ref(4096),
ResourceType: pulumi.StringRef("IOoptimizedS2"),
}, 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 medium_s2 = Opentelekomcloud.GetComputeFlavorV2.Invoke(new()
{
Vcpus = 1,
Ram = 4096,
ResourceType = "IOoptimizedS2",
});
});
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.GetComputeFlavorV2Args;
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 medium-s2 = OpentelekomcloudFunctions.getComputeFlavorV2(GetComputeFlavorV2Args.builder()
.vcpus(1)
.ram(4096)
.resourceType("IOoptimizedS2")
.build());
}
}
variables:
medium-s2:
fn::invoke:
function: opentelekomcloud:getComputeFlavorV2
arguments:
vcpus: 1
ram: 4096
resourceType: IOoptimizedS2
Using getComputeFlavorV2
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 getComputeFlavorV2(args: GetComputeFlavorV2Args, opts?: InvokeOptions): Promise<GetComputeFlavorV2Result>
function getComputeFlavorV2Output(args: GetComputeFlavorV2OutputArgs, opts?: InvokeOptions): Output<GetComputeFlavorV2Result>def get_compute_flavor_v2(availability_zone: Optional[str] = None,
disk: Optional[float] = None,
flavor_id: Optional[str] = None,
id: Optional[str] = None,
min_disk: Optional[float] = None,
min_ram: Optional[float] = None,
name: Optional[str] = None,
ram: Optional[float] = None,
region: Optional[str] = None,
resource_type: Optional[str] = None,
rx_tx_factor: Optional[float] = None,
swap: Optional[float] = None,
vcpus: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetComputeFlavorV2Result
def get_compute_flavor_v2_output(availability_zone: Optional[pulumi.Input[str]] = None,
disk: Optional[pulumi.Input[float]] = None,
flavor_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
min_disk: Optional[pulumi.Input[float]] = None,
min_ram: Optional[pulumi.Input[float]] = None,
name: Optional[pulumi.Input[str]] = None,
ram: Optional[pulumi.Input[float]] = None,
region: Optional[pulumi.Input[str]] = None,
resource_type: Optional[pulumi.Input[str]] = None,
rx_tx_factor: Optional[pulumi.Input[float]] = None,
swap: Optional[pulumi.Input[float]] = None,
vcpus: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetComputeFlavorV2Result]func GetComputeFlavorV2(ctx *Context, args *GetComputeFlavorV2Args, opts ...InvokeOption) (*GetComputeFlavorV2Result, error)
func GetComputeFlavorV2Output(ctx *Context, args *GetComputeFlavorV2OutputArgs, opts ...InvokeOption) GetComputeFlavorV2ResultOutput> Note: This function is named GetComputeFlavorV2 in the Go SDK.
public static class GetComputeFlavorV2
{
public static Task<GetComputeFlavorV2Result> InvokeAsync(GetComputeFlavorV2Args args, InvokeOptions? opts = null)
public static Output<GetComputeFlavorV2Result> Invoke(GetComputeFlavorV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetComputeFlavorV2Result> getComputeFlavorV2(GetComputeFlavorV2Args args, InvokeOptions options)
public static Output<GetComputeFlavorV2Result> getComputeFlavorV2(GetComputeFlavorV2Args args, InvokeOptions options)
fn::invoke:
function: opentelekomcloud:index/getComputeFlavorV2:getComputeFlavorV2
arguments:
# arguments dictionaryThe following arguments are supported:
- Availability
Zone string - Whether flavor should be in
normalstate. - Disk double
- The exact amount of disk (in gigabytes).
- Flavor
Id string - The ID of the flavor. Conflicts with the
name,min_ramandmin_disk - Id string
- Min
Disk double - The minimum amount of disk (in gigabytes). Conflicts
with the
flavor_id. - Min
Ram double - The minimum amount of RAM (in megabytes). Conflicts
with the
flavor_id. - Name string
- The name of the flavor. Conflicts with the
flavor_id. - Ram double
- The exact amount of RAM (in megabytes).
- Region string
- The region in which to obtain the V2 Compute client.
If omitted, the
regionargument of the provider is used. - Resource
Type string - Flavor resource type.
- Rx
Tx doubleFactor - The
rx_tx_factorof the flavor. - Swap double
- The amount of swap (in gigabytes).
- Vcpus double
- The amount of VCPUs.
- Availability
Zone string - Whether flavor should be in
normalstate. - Disk float64
- The exact amount of disk (in gigabytes).
- Flavor
Id string - The ID of the flavor. Conflicts with the
name,min_ramandmin_disk - Id string
- Min
Disk float64 - The minimum amount of disk (in gigabytes). Conflicts
with the
flavor_id. - Min
Ram float64 - The minimum amount of RAM (in megabytes). Conflicts
with the
flavor_id. - Name string
- The name of the flavor. Conflicts with the
flavor_id. - Ram float64
- The exact amount of RAM (in megabytes).
- Region string
- The region in which to obtain the V2 Compute client.
If omitted, the
regionargument of the provider is used. - Resource
Type string - Flavor resource type.
- Rx
Tx float64Factor - The
rx_tx_factorof the flavor. - Swap float64
- The amount of swap (in gigabytes).
- Vcpus float64
- The amount of VCPUs.
- availability
Zone String - Whether flavor should be in
normalstate. - disk Double
- The exact amount of disk (in gigabytes).
- flavor
Id String - The ID of the flavor. Conflicts with the
name,min_ramandmin_disk - id String
- min
Disk Double - The minimum amount of disk (in gigabytes). Conflicts
with the
flavor_id. - min
Ram Double - The minimum amount of RAM (in megabytes). Conflicts
with the
flavor_id. - name String
- The name of the flavor. Conflicts with the
flavor_id. - ram Double
- The exact amount of RAM (in megabytes).
- region String
- The region in which to obtain the V2 Compute client.
If omitted, the
regionargument of the provider is used. - resource
Type String - Flavor resource type.
- rx
Tx DoubleFactor - The
rx_tx_factorof the flavor. - swap Double
- The amount of swap (in gigabytes).
- vcpus Double
- The amount of VCPUs.
- availability
Zone string - Whether flavor should be in
normalstate. - disk number
- The exact amount of disk (in gigabytes).
- flavor
Id string - The ID of the flavor. Conflicts with the
name,min_ramandmin_disk - id string
- min
Disk number - The minimum amount of disk (in gigabytes). Conflicts
with the
flavor_id. - min
Ram number - The minimum amount of RAM (in megabytes). Conflicts
with the
flavor_id. - name string
- The name of the flavor. Conflicts with the
flavor_id. - ram number
- The exact amount of RAM (in megabytes).
- region string
- The region in which to obtain the V2 Compute client.
If omitted, the
regionargument of the provider is used. - resource
Type string - Flavor resource type.
- rx
Tx numberFactor - The
rx_tx_factorof the flavor. - swap number
- The amount of swap (in gigabytes).
- vcpus number
- The amount of VCPUs.
- availability_
zone str - Whether flavor should be in
normalstate. - disk float
- The exact amount of disk (in gigabytes).
- flavor_
id str - The ID of the flavor. Conflicts with the
name,min_ramandmin_disk - id str
- min_
disk float - The minimum amount of disk (in gigabytes). Conflicts
with the
flavor_id. - min_
ram float - The minimum amount of RAM (in megabytes). Conflicts
with the
flavor_id. - name str
- The name of the flavor. Conflicts with the
flavor_id. - ram float
- The exact amount of RAM (in megabytes).
- region str
- The region in which to obtain the V2 Compute client.
If omitted, the
regionargument of the provider is used. - resource_
type str - Flavor resource type.
- rx_
tx_ floatfactor - The
rx_tx_factorof the flavor. - swap float
- The amount of swap (in gigabytes).
- vcpus float
- The amount of VCPUs.
- availability
Zone String - Whether flavor should be in
normalstate. - disk Number
- The exact amount of disk (in gigabytes).
- flavor
Id String - The ID of the flavor. Conflicts with the
name,min_ramandmin_disk - id String
- min
Disk Number - The minimum amount of disk (in gigabytes). Conflicts
with the
flavor_id. - min
Ram Number - The minimum amount of RAM (in megabytes). Conflicts
with the
flavor_id. - name String
- The name of the flavor. Conflicts with the
flavor_id. - ram Number
- The exact amount of RAM (in megabytes).
- region String
- The region in which to obtain the V2 Compute client.
If omitted, the
regionargument of the provider is used. - resource
Type String - Flavor resource type.
- rx
Tx NumberFactor - The
rx_tx_factorof the flavor. - swap Number
- The amount of swap (in gigabytes).
- vcpus Number
- The amount of VCPUs.
getComputeFlavorV2 Result
The following output properties are available:
- Extra
Specs Dictionary<string, string> - Key/Value pairs of metadata for the flavor.
- Id string
- Region string
- Availability
Zone string - Disk double
- Flavor
Id string - Min
Disk double - Min
Ram double - Name string
- Ram double
- Resource
Type string - Rx
Tx doubleFactor - Swap double
- Vcpus double
- Extra
Specs map[string]string - Key/Value pairs of metadata for the flavor.
- Id string
- Region string
- Availability
Zone string - Disk float64
- Flavor
Id string - Min
Disk float64 - Min
Ram float64 - Name string
- Ram float64
- Resource
Type string - Rx
Tx float64Factor - Swap float64
- Vcpus float64
- extra
Specs Map<String,String> - Key/Value pairs of metadata for the flavor.
- id String
- region String
- availability
Zone String - disk Double
- flavor
Id String - min
Disk Double - min
Ram Double - name String
- ram Double
- resource
Type String - rx
Tx DoubleFactor - swap Double
- vcpus Double
- extra
Specs {[key: string]: string} - Key/Value pairs of metadata for the flavor.
- id string
- region string
- availability
Zone string - disk number
- flavor
Id string - min
Disk number - min
Ram number - name string
- ram number
- resource
Type string - rx
Tx numberFactor - swap number
- vcpus number
- extra_
specs Mapping[str, str] - Key/Value pairs of metadata for the flavor.
- id str
- region str
- availability_
zone str - disk float
- flavor_
id str - min_
disk float - min_
ram float - name str
- ram float
- resource_
type str - rx_
tx_ floatfactor - swap float
- vcpus float
- extra
Specs Map<String> - Key/Value pairs of metadata for the flavor.
- id String
- region String
- availability
Zone String - disk Number
- flavor
Id String - min
Disk Number - min
Ram Number - name String
- ram Number
- resource
Type String - rx
Tx NumberFactor - swap Number
- vcpus Number
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
Viewing docs for opentelekomcloud 1.36.60
published on Thursday, Feb 26, 2026 by opentelekomcloud
published on Thursday, Feb 26, 2026 by opentelekomcloud
