opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud
opentelekomcloud.getComputeBmsFlavorsV2
Explore with Pulumi AI
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud
Up-to-date reference of API arguments for BMSs flavors you can get at documentation portal
Use this data source to get details about flavors of BMSs from OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const flavorId = config.requireObject("flavorId");
const diskSize = config.requireObject("diskSize");
const queryBmsFlavors = opentelekomcloud.getComputeBmsFlavorsV2({
    id: _var.bms_id,
    minDisk: diskSize,
    sortKey: "id",
    sortDir: "desc",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
flavor_id = config.require_object("flavorId")
disk_size = config.require_object("diskSize")
query_bms_flavors = opentelekomcloud.get_compute_bms_flavors_v2(id=var["bms_id"],
    min_disk=disk_size,
    sort_key="id",
    sort_dir="desc")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		flavorId := cfg.RequireObject("flavorId")
		diskSize := cfg.RequireObject("diskSize")
		_, err := opentelekomcloud.GetComputeBmsFlavorsV2(ctx, &opentelekomcloud.GetComputeBmsFlavorsV2Args{
			Id:      pulumi.StringRef(_var.Bms_id),
			MinDisk: pulumi.Float64Ref(diskSize),
			SortKey: pulumi.StringRef("id"),
			SortDir: pulumi.StringRef("desc"),
		}, 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 config = new Config();
    var flavorId = config.RequireObject<dynamic>("flavorId");
    var diskSize = config.RequireObject<dynamic>("diskSize");
    var queryBmsFlavors = Opentelekomcloud.GetComputeBmsFlavorsV2.Invoke(new()
    {
        Id = @var.Bms_id,
        MinDisk = diskSize,
        SortKey = "id",
        SortDir = "desc",
    });
});
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.GetComputeBmsFlavorsV2Args;
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 config = ctx.config();
        final var flavorId = config.get("flavorId");
        final var diskSize = config.get("diskSize");
        final var queryBmsFlavors = OpentelekomcloudFunctions.getComputeBmsFlavorsV2(GetComputeBmsFlavorsV2Args.builder()
            .id(var_.bms_id())
            .minDisk(diskSize)
            .sortKey("id")
            .sortDir("desc")
            .build());
    }
}
configuration:
  flavorId:
    type: dynamic
  diskSize:
    type: dynamic
variables:
  queryBmsFlavors:
    fn::invoke:
      function: opentelekomcloud:getComputeBmsFlavorsV2
      arguments:
        id: ${var.bms_id}
        minDisk: ${diskSize}
        sortKey: id
        sortDir: desc
Using getComputeBmsFlavorsV2
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 getComputeBmsFlavorsV2(args: GetComputeBmsFlavorsV2Args, opts?: InvokeOptions): Promise<GetComputeBmsFlavorsV2Result>
function getComputeBmsFlavorsV2Output(args: GetComputeBmsFlavorsV2OutputArgs, opts?: InvokeOptions): Output<GetComputeBmsFlavorsV2Result>def get_compute_bms_flavors_v2(id: Optional[str] = None,
                               min_disk: Optional[float] = None,
                               min_ram: Optional[float] = None,
                               name: Optional[str] = None,
                               region: Optional[str] = None,
                               sort_dir: Optional[str] = None,
                               sort_key: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetComputeBmsFlavorsV2Result
def get_compute_bms_flavors_v2_output(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,
                               region: Optional[pulumi.Input[str]] = None,
                               sort_dir: Optional[pulumi.Input[str]] = None,
                               sort_key: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetComputeBmsFlavorsV2Result]func GetComputeBmsFlavorsV2(ctx *Context, args *GetComputeBmsFlavorsV2Args, opts ...InvokeOption) (*GetComputeBmsFlavorsV2Result, error)
func GetComputeBmsFlavorsV2Output(ctx *Context, args *GetComputeBmsFlavorsV2OutputArgs, opts ...InvokeOption) GetComputeBmsFlavorsV2ResultOutput> Note: This function is named GetComputeBmsFlavorsV2 in the Go SDK.
public static class GetComputeBmsFlavorsV2 
{
    public static Task<GetComputeBmsFlavorsV2Result> InvokeAsync(GetComputeBmsFlavorsV2Args args, InvokeOptions? opts = null)
    public static Output<GetComputeBmsFlavorsV2Result> Invoke(GetComputeBmsFlavorsV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetComputeBmsFlavorsV2Result> getComputeBmsFlavorsV2(GetComputeBmsFlavorsV2Args args, InvokeOptions options)
public static Output<GetComputeBmsFlavorsV2Result> getComputeBmsFlavorsV2(GetComputeBmsFlavorsV2Args args, InvokeOptions options)
fn::invoke:
  function: opentelekomcloud:index/getComputeBmsFlavorsV2:getComputeBmsFlavorsV2
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- The BMS flavor id.
- MinDisk double
- The minimum disk size in GB. Only the BMSs with a disk size greater than or equal to the minimum size can be queried.
- MinRam double
- The minimum memory size in MB. Only the BMSs with the memory size greater than or equal to the minimum size can be queried.
- Name string
- The name of the BMS flavor.
- Region string
- SortDir string
- The sorting order, which can be ascending (asc) or descending (desc). The default value is asc.
- SortKey string
- The sorting field. The default value is flavorid. The other values are name, memory_mb, vcpus, root_gb, or flavorid.
- Id string
- The BMS flavor id.
- MinDisk float64
- The minimum disk size in GB. Only the BMSs with a disk size greater than or equal to the minimum size can be queried.
- MinRam float64
- The minimum memory size in MB. Only the BMSs with the memory size greater than or equal to the minimum size can be queried.
- Name string
- The name of the BMS flavor.
- Region string
- SortDir string
- The sorting order, which can be ascending (asc) or descending (desc). The default value is asc.
- SortKey string
- The sorting field. The default value is flavorid. The other values are name, memory_mb, vcpus, root_gb, or flavorid.
- id String
- The BMS flavor id.
- minDisk Double
- The minimum disk size in GB. Only the BMSs with a disk size greater than or equal to the minimum size can be queried.
- minRam Double
- The minimum memory size in MB. Only the BMSs with the memory size greater than or equal to the minimum size can be queried.
- name String
- The name of the BMS flavor.
- region String
- sortDir String
- The sorting order, which can be ascending (asc) or descending (desc). The default value is asc.
- sortKey String
- The sorting field. The default value is flavorid. The other values are name, memory_mb, vcpus, root_gb, or flavorid.
- id string
- The BMS flavor id.
- minDisk number
- The minimum disk size in GB. Only the BMSs with a disk size greater than or equal to the minimum size can be queried.
- minRam number
- The minimum memory size in MB. Only the BMSs with the memory size greater than or equal to the minimum size can be queried.
- name string
- The name of the BMS flavor.
- region string
- sortDir string
- The sorting order, which can be ascending (asc) or descending (desc). The default value is asc.
- sortKey string
- The sorting field. The default value is flavorid. The other values are name, memory_mb, vcpus, root_gb, or flavorid.
- id str
- The BMS flavor id.
- min_disk float
- The minimum disk size in GB. Only the BMSs with a disk size greater than or equal to the minimum size can be queried.
- min_ram float
- The minimum memory size in MB. Only the BMSs with the memory size greater than or equal to the minimum size can be queried.
- name str
- The name of the BMS flavor.
- region str
- sort_dir str
- The sorting order, which can be ascending (asc) or descending (desc). The default value is asc.
- sort_key str
- The sorting field. The default value is flavorid. The other values are name, memory_mb, vcpus, root_gb, or flavorid.
- id String
- The BMS flavor id.
- minDisk Number
- The minimum disk size in GB. Only the BMSs with a disk size greater than or equal to the minimum size can be queried.
- minRam Number
- The minimum memory size in MB. Only the BMSs with the memory size greater than or equal to the minimum size can be queried.
- name String
- The name of the BMS flavor.
- region String
- sortDir String
- The sorting order, which can be ascending (asc) or descending (desc). The default value is asc.
- sortKey String
- The sorting field. The default value is flavorid. The other values are name, memory_mb, vcpus, root_gb, or flavorid.
getComputeBmsFlavorsV2 Result
The following output properties are available:
- Disk double
- Specifies the disk size (GB) in the BMS flavor.
- Ram double
- It is the memory size (in MB) of the flavor.
- Region string
- RxTx doubleFactor 
- This is a reserved attribute.
- Swap double
- This is a reserved attribute.
- Vcpus double
- It is the number of CPU cores in the BMS flavor.
- Id string
- MinDisk double
- MinRam double
- Name string
- SortDir string
- SortKey string
- Disk float64
- Specifies the disk size (GB) in the BMS flavor.
- Ram float64
- It is the memory size (in MB) of the flavor.
- Region string
- RxTx float64Factor 
- This is a reserved attribute.
- Swap float64
- This is a reserved attribute.
- Vcpus float64
- It is the number of CPU cores in the BMS flavor.
- Id string
- MinDisk float64
- MinRam float64
- Name string
- SortDir string
- SortKey string
- disk Double
- Specifies the disk size (GB) in the BMS flavor.
- ram Double
- It is the memory size (in MB) of the flavor.
- region String
- rxTx DoubleFactor 
- This is a reserved attribute.
- swap Double
- This is a reserved attribute.
- vcpus Double
- It is the number of CPU cores in the BMS flavor.
- id String
- minDisk Double
- minRam Double
- name String
- sortDir String
- sortKey String
- disk number
- Specifies the disk size (GB) in the BMS flavor.
- ram number
- It is the memory size (in MB) of the flavor.
- region string
- rxTx numberFactor 
- This is a reserved attribute.
- swap number
- This is a reserved attribute.
- vcpus number
- It is the number of CPU cores in the BMS flavor.
- id string
- minDisk number
- minRam number
- name string
- sortDir string
- sortKey string
- disk float
- Specifies the disk size (GB) in the BMS flavor.
- ram float
- It is the memory size (in MB) of the flavor.
- region str
- rx_tx_ floatfactor 
- This is a reserved attribute.
- swap float
- This is a reserved attribute.
- vcpus float
- It is the number of CPU cores in the BMS flavor.
- id str
- min_disk float
- min_ram float
- name str
- sort_dir str
- sort_key str
- disk Number
- Specifies the disk size (GB) in the BMS flavor.
- ram Number
- It is the memory size (in MB) of the flavor.
- region String
- rxTx NumberFactor 
- This is a reserved attribute.
- swap Number
- This is a reserved attribute.
- vcpus Number
- It is the number of CPU cores in the BMS flavor.
- id String
- minDisk Number
- minRam Number
- name String
- sortDir String
- sortKey String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the opentelekomcloudTerraform Provider.
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud