1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getComputeBmsFlavorsV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getComputeBmsFlavorsV2

Explore with Pulumi AI

flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

Use this data source to get an available BMS Flavor.

Example Usage

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

const bMSFlavor = flexibleengine.getComputeBmsFlavorsV2({
    vcpus: 32,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

b_ms_flavor = flexibleengine.get_compute_bms_flavors_v2(vcpus=32)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.GetComputeBmsFlavorsV2(ctx, &flexibleengine.GetComputeBmsFlavorsV2Args{
			Vcpus: pulumi.Float64Ref(32),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var bMSFlavor = Flexibleengine.GetComputeBmsFlavorsV2.Invoke(new()
    {
        Vcpus = 32,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.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 bMSFlavor = FlexibleengineFunctions.getComputeBmsFlavorsV2(GetComputeBmsFlavorsV2Args.builder()
            .vcpus(32)
            .build());

    }
}
Copy
variables:
  bMSFlavor:
    fn::invoke:
      function: flexibleengine:getComputeBmsFlavorsV2
      arguments:
        vcpus: 32
Copy

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>
Copy
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,
                               vcpus: Optional[float] = 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,
                               vcpus: Optional[pulumi.Input[float]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetComputeBmsFlavorsV2Result]
Copy
func GetComputeBmsFlavorsV2(ctx *Context, args *GetComputeBmsFlavorsV2Args, opts ...InvokeOption) (*GetComputeBmsFlavorsV2Result, error)
func GetComputeBmsFlavorsV2Output(ctx *Context, args *GetComputeBmsFlavorsV2OutputArgs, opts ...InvokeOption) GetComputeBmsFlavorsV2ResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetComputeBmsFlavorsV2Result> getComputeBmsFlavorsV2(GetComputeBmsFlavorsV2Args args, InvokeOptions options)
public static Output<GetComputeBmsFlavorsV2Result> getComputeBmsFlavorsV2(GetComputeBmsFlavorsV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getComputeBmsFlavorsV2:getComputeBmsFlavorsV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
The ID of the flavor.
MinDisk double
Specifies 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
Specifies 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
Specifies the name of the BMS flavor.
Region string
The region in which to query the data source. If omitted, the provider-level region will be used.
SortDir string
The sorting order, which can be asc (ascending) or desc (descending). The default value is asc.
SortKey string
The sorting field. The default value is flavorid. The available values are name, memory_mb, vcpus, root_gb, or flavorid.
Vcpus double
Specifies the number of CPU cores in the BMS flavor.
Id string
The ID of the flavor.
MinDisk float64
Specifies 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
Specifies 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
Specifies the name of the BMS flavor.
Region string
The region in which to query the data source. If omitted, the provider-level region will be used.
SortDir string
The sorting order, which can be asc (ascending) or desc (descending). The default value is asc.
SortKey string
The sorting field. The default value is flavorid. The available values are name, memory_mb, vcpus, root_gb, or flavorid.
Vcpus float64
Specifies the number of CPU cores in the BMS flavor.
id String
The ID of the flavor.
minDisk Double
Specifies 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
Specifies 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
Specifies the name of the BMS flavor.
region String
The region in which to query the data source. If omitted, the provider-level region will be used.
sortDir String
The sorting order, which can be asc (ascending) or desc (descending). The default value is asc.
sortKey String
The sorting field. The default value is flavorid. The available values are name, memory_mb, vcpus, root_gb, or flavorid.
vcpus Double
Specifies the number of CPU cores in the BMS flavor.
id string
The ID of the flavor.
minDisk number
Specifies 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
Specifies 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
Specifies the name of the BMS flavor.
region string
The region in which to query the data source. If omitted, the provider-level region will be used.
sortDir string
The sorting order, which can be asc (ascending) or desc (descending). The default value is asc.
sortKey string
The sorting field. The default value is flavorid. The available values are name, memory_mb, vcpus, root_gb, or flavorid.
vcpus number
Specifies the number of CPU cores in the BMS flavor.
id str
The ID of the flavor.
min_disk float
Specifies 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
Specifies 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
Specifies the name of the BMS flavor.
region str
The region in which to query the data source. If omitted, the provider-level region will be used.
sort_dir str
The sorting order, which can be asc (ascending) or desc (descending). The default value is asc.
sort_key str
The sorting field. The default value is flavorid. The available values are name, memory_mb, vcpus, root_gb, or flavorid.
vcpus float
Specifies the number of CPU cores in the BMS flavor.
id String
The ID of the flavor.
minDisk Number
Specifies 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
Specifies 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
Specifies the name of the BMS flavor.
region String
The region in which to query the data source. If omitted, the provider-level region will be used.
sortDir String
The sorting order, which can be asc (ascending) or desc (descending). The default value is asc.
sortKey String
The sorting field. The default value is flavorid. The available values are name, memory_mb, vcpus, root_gb, or flavorid.
vcpus Number
Specifies the number of CPU cores in the BMS flavor.

getComputeBmsFlavorsV2 Result

The following output properties are available:

Disk double
The disk size (GB) in the BMS flavor.
Ram double
The memory size (in MB) of the BMS flavor.
Region string
RxTxFactor double
This is a reserved attribute.
Swap double
This is a reserved attribute.
Id string
The BMS flavor id.
MinDisk double
MinRam double
Name string
SortDir string
SortKey string
Vcpus double
Disk float64
The disk size (GB) in the BMS flavor.
Ram float64
The memory size (in MB) of the BMS flavor.
Region string
RxTxFactor float64
This is a reserved attribute.
Swap float64
This is a reserved attribute.
Id string
The BMS flavor id.
MinDisk float64
MinRam float64
Name string
SortDir string
SortKey string
Vcpus float64
disk Double
The disk size (GB) in the BMS flavor.
ram Double
The memory size (in MB) of the BMS flavor.
region String
rxTxFactor Double
This is a reserved attribute.
swap Double
This is a reserved attribute.
id String
The BMS flavor id.
minDisk Double
minRam Double
name String
sortDir String
sortKey String
vcpus Double
disk number
The disk size (GB) in the BMS flavor.
ram number
The memory size (in MB) of the BMS flavor.
region string
rxTxFactor number
This is a reserved attribute.
swap number
This is a reserved attribute.
id string
The BMS flavor id.
minDisk number
minRam number
name string
sortDir string
sortKey string
vcpus number
disk float
The disk size (GB) in the BMS flavor.
ram float
The memory size (in MB) of the BMS flavor.
region str
rx_tx_factor float
This is a reserved attribute.
swap float
This is a reserved attribute.
id str
The BMS flavor id.
min_disk float
min_ram float
name str
sort_dir str
sort_key str
vcpus float
disk Number
The disk size (GB) in the BMS flavor.
ram Number
The memory size (in MB) of the BMS flavor.
region String
rxTxFactor Number
This is a reserved attribute.
swap Number
This is a reserved attribute.
id String
The BMS flavor id.
minDisk Number
minRam Number
name String
sortDir String
sortKey String
vcpus Number

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud