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

opentelekomcloud.getDwsFlavorsV2

Explore with Pulumi AI

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

Use this data source to get details about flavors from OpenTelekomCloud.

Example Usage

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

const flavor = opentelekomcloud.getDwsFlavorsV2({
    vcpus: 32,
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

flavor = opentelekomcloud.get_dws_flavors_v2(vcpus=32)
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 {
		_, err := opentelekomcloud.GetDwsFlavorsV2(ctx, &opentelekomcloud.GetDwsFlavorsV2Args{
			Vcpus: pulumi.Float64Ref(32),
		}, 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 flavor = Opentelekomcloud.GetDwsFlavorsV2.Invoke(new()
    {
        Vcpus = 32,
    });

});
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.GetDwsFlavorsV2Args;
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 flavor = OpentelekomcloudFunctions.getDwsFlavorsV2(GetDwsFlavorsV2Args.builder()
            .vcpus(32)
            .build());

    }
}
Copy
variables:
  flavor:
    fn::invoke:
      function: opentelekomcloud:getDwsFlavorsV2
      arguments:
        vcpus: 32
Copy

Using getDwsFlavorsV2

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 getDwsFlavorsV2(args: GetDwsFlavorsV2Args, opts?: InvokeOptions): Promise<GetDwsFlavorsV2Result>
function getDwsFlavorsV2Output(args: GetDwsFlavorsV2OutputArgs, opts?: InvokeOptions): Output<GetDwsFlavorsV2Result>
Copy
def get_dws_flavors_v2(availability_zone: Optional[str] = None,
                       id: Optional[str] = None,
                       memory: Optional[float] = None,
                       region: Optional[str] = None,
                       vcpus: Optional[float] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDwsFlavorsV2Result
def get_dws_flavors_v2_output(availability_zone: 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[GetDwsFlavorsV2Result]
Copy
func GetDwsFlavorsV2(ctx *Context, args *GetDwsFlavorsV2Args, opts ...InvokeOption) (*GetDwsFlavorsV2Result, error)
func GetDwsFlavorsV2Output(ctx *Context, args *GetDwsFlavorsV2OutputArgs, opts ...InvokeOption) GetDwsFlavorsV2ResultOutput
Copy

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

public static class GetDwsFlavorsV2 
{
    public static Task<GetDwsFlavorsV2Result> InvokeAsync(GetDwsFlavorsV2Args args, InvokeOptions? opts = null)
    public static Output<GetDwsFlavorsV2Result> Invoke(GetDwsFlavorsV2InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDwsFlavorsV2Result> getDwsFlavorsV2(GetDwsFlavorsV2Args args, InvokeOptions options)
public static Output<GetDwsFlavorsV2Result> getDwsFlavorsV2(GetDwsFlavorsV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getDwsFlavorsV2:getDwsFlavorsV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AvailabilityZone string
Specifies the availability zone name.
Id string
Indicates a data source ID in UUID format.
Memory double
Specifies the ram of the dws node flavor in GB.
Region string
Specifies the region in which to obtain the dws cluster client. If omitted, the provider-level region will be used.
Vcpus double
Specifies the vcpus of the dws node flavor.
AvailabilityZone string
Specifies the availability zone name.
Id string
Indicates a data source ID in UUID format.
Memory float64
Specifies the ram of the dws node flavor in GB.
Region string
Specifies the region in which to obtain the dws cluster client. If omitted, the provider-level region will be used.
Vcpus float64
Specifies the vcpus of the dws node flavor.
availabilityZone String
Specifies the availability zone name.
id String
Indicates a data source ID in UUID format.
memory Double
Specifies the ram of the dws node flavor in GB.
region String
Specifies the region in which to obtain the dws cluster client. If omitted, the provider-level region will be used.
vcpus Double
Specifies the vcpus of the dws node flavor.
availabilityZone string
Specifies the availability zone name.
id string
Indicates a data source ID in UUID format.
memory number
Specifies the ram of the dws node flavor in GB.
region string
Specifies the region in which to obtain the dws cluster client. If omitted, the provider-level region will be used.
vcpus number
Specifies the vcpus of the dws node flavor.
availability_zone str
Specifies the availability zone name.
id str
Indicates a data source ID in UUID format.
memory float
Specifies the ram of the dws node flavor in GB.
region str
Specifies the region in which to obtain the dws cluster client. If omitted, the provider-level region will be used.
vcpus float
Specifies the vcpus of the dws node flavor.
availabilityZone String
Specifies the availability zone name.
id String
Indicates a data source ID in UUID format.
memory Number
Specifies the ram of the dws node flavor in GB.
region String
Specifies the region in which to obtain the dws cluster client. If omitted, the provider-level region will be used.
vcpus Number
Specifies the vcpus of the dws node flavor.

getDwsFlavorsV2 Result

The following output properties are available:

Flavors List<GetDwsFlavorsV2Flavor>
Indicates the flavors information. Structure is documented below.
Id string
Indicates a data source ID in UUID format.
Region string
AvailabilityZone string
Indicates the availability zone where the node resides.
Memory double
Indicates the ram of the dws node flavor in GB.
Vcpus double
Indicates the vcpus of the dws node flavor.
Flavors []GetDwsFlavorsV2Flavor
Indicates the flavors information. Structure is documented below.
Id string
Indicates a data source ID in UUID format.
Region string
AvailabilityZone string
Indicates the availability zone where the node resides.
Memory float64
Indicates the ram of the dws node flavor in GB.
Vcpus float64
Indicates the vcpus of the dws node flavor.
flavors List<GetDwsFlavorsV2Flavor>
Indicates the flavors information. Structure is documented below.
id String
Indicates a data source ID in UUID format.
region String
availabilityZone String
Indicates the availability zone where the node resides.
memory Double
Indicates the ram of the dws node flavor in GB.
vcpus Double
Indicates the vcpus of the dws node flavor.
flavors GetDwsFlavorsV2Flavor[]
Indicates the flavors information. Structure is documented below.
id string
Indicates a data source ID in UUID format.
region string
availabilityZone string
Indicates the availability zone where the node resides.
memory number
Indicates the ram of the dws node flavor in GB.
vcpus number
Indicates the vcpus of the dws node flavor.
flavors Sequence[GetDwsFlavorsV2Flavor]
Indicates the flavors information. Structure is documented below.
id str
Indicates a data source ID in UUID format.
region str
availability_zone str
Indicates the availability zone where the node resides.
memory float
Indicates the ram of the dws node flavor in GB.
vcpus float
Indicates the vcpus of the dws node flavor.
flavors List<Property Map>
Indicates the flavors information. Structure is documented below.
id String
Indicates a data source ID in UUID format.
region String
availabilityZone String
Indicates the availability zone where the node resides.
memory Number
Indicates the ram of the dws node flavor in GB.
vcpus Number
Indicates the vcpus of the dws node flavor.

Supporting Types

GetDwsFlavorsV2Flavor

AvailabilityZone This property is required. string
Specifies the availability zone name.
FlavorId This property is required. string
The name of the dws node flavor. It is referenced by node_type in opentelekomcloud.getDwsFlavorsV2.
Memory This property is required. double
Specifies the ram of the dws node flavor in GB.
Size This property is required. double
Indicates the Disk size in GB.
Vcpus This property is required. double
Specifies the vcpus of the dws node flavor.
Volumetype This property is required. string
Indicates Disk type.

  • LOCAL_DISK: common I/O disk
  • SSD: ultra-high I/O disk
AvailabilityZone This property is required. string
Specifies the availability zone name.
FlavorId This property is required. string
The name of the dws node flavor. It is referenced by node_type in opentelekomcloud.getDwsFlavorsV2.
Memory This property is required. float64
Specifies the ram of the dws node flavor in GB.
Size This property is required. float64
Indicates the Disk size in GB.
Vcpus This property is required. float64
Specifies the vcpus of the dws node flavor.
Volumetype This property is required. string
Indicates Disk type.

  • LOCAL_DISK: common I/O disk
  • SSD: ultra-high I/O disk
availabilityZone This property is required. String
Specifies the availability zone name.
flavorId This property is required. String
The name of the dws node flavor. It is referenced by node_type in opentelekomcloud.getDwsFlavorsV2.
memory This property is required. Double
Specifies the ram of the dws node flavor in GB.
size This property is required. Double
Indicates the Disk size in GB.
vcpus This property is required. Double
Specifies the vcpus of the dws node flavor.
volumetype This property is required. String
Indicates Disk type.

  • LOCAL_DISK: common I/O disk
  • SSD: ultra-high I/O disk
availabilityZone This property is required. string
Specifies the availability zone name.
flavorId This property is required. string
The name of the dws node flavor. It is referenced by node_type in opentelekomcloud.getDwsFlavorsV2.
memory This property is required. number
Specifies the ram of the dws node flavor in GB.
size This property is required. number
Indicates the Disk size in GB.
vcpus This property is required. number
Specifies the vcpus of the dws node flavor.
volumetype This property is required. string
Indicates Disk type.

  • LOCAL_DISK: common I/O disk
  • SSD: ultra-high I/O disk
availability_zone This property is required. str
Specifies the availability zone name.
flavor_id This property is required. str
The name of the dws node flavor. It is referenced by node_type in opentelekomcloud.getDwsFlavorsV2.
memory This property is required. float
Specifies the ram of the dws node flavor in GB.
size This property is required. float
Indicates the Disk size in GB.
vcpus This property is required. float
Specifies the vcpus of the dws node flavor.
volumetype This property is required. str
Indicates Disk type.

  • LOCAL_DISK: common I/O disk
  • SSD: ultra-high I/O disk
availabilityZone This property is required. String
Specifies the availability zone name.
flavorId This property is required. String
The name of the dws node flavor. It is referenced by node_type in opentelekomcloud.getDwsFlavorsV2.
memory This property is required. Number
Specifies the ram of the dws node flavor in GB.
size This property is required. Number
Indicates the Disk size in GB.
vcpus This property is required. Number
Specifies the vcpus of the dws node flavor.
volumetype This property is required. String
Indicates Disk type.

  • LOCAL_DISK: common I/O disk
  • SSD: ultra-high I/O disk

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