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,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
b_ms_flavor = flexibleengine.get_compute_bms_flavors_v2(vcpus=32)
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
})
}
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,
});
});
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());
}
}
variables:
bMSFlavor:
fn::invoke:
function: flexibleengine:getComputeBmsFlavorsV2
arguments:
vcpus: 32
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,
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]
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: flexibleengine:index/getComputeBmsFlavorsV2:getComputeBmsFlavorsV2
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID of the flavor.
- Min
Disk 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.
- Min
Ram 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.
- Sort
Dir string - The sorting order, which can be asc (ascending) or desc (descending). The default value is asc.
- Sort
Key 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.
- Min
Disk 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.
- Min
Ram 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.
- Sort
Dir string - The sorting order, which can be asc (ascending) or desc (descending). The default value is asc.
- Sort
Key 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.
- min
Disk 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.
- min
Ram 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.
- sort
Dir String - The sorting order, which can be asc (ascending) or desc (descending). The default value is asc.
- sort
Key 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.
- min
Disk 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.
- min
Ram 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.
- sort
Dir string - The sorting order, which can be asc (ascending) or desc (descending). The default value is asc.
- sort
Key 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.
- min
Disk 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.
- min
Ram 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.
- sort
Dir String - The sorting order, which can be asc (ascending) or desc (descending). The default value is asc.
- sort
Key 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
- Rx
Tx doubleFactor - This is a reserved attribute.
- Swap double
- This is a reserved attribute.
- Id string
- The BMS flavor id.
- Min
Disk double - Min
Ram double - Name string
- Sort
Dir string - Sort
Key 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
- Rx
Tx float64Factor - This is a reserved attribute.
- Swap float64
- This is a reserved attribute.
- Id string
- The BMS flavor id.
- Min
Disk float64 - Min
Ram float64 - Name string
- Sort
Dir string - Sort
Key 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
- rx
Tx DoubleFactor - This is a reserved attribute.
- swap Double
- This is a reserved attribute.
- id String
- The BMS flavor id.
- min
Disk Double - min
Ram Double - name String
- sort
Dir String - sort
Key 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
- rx
Tx numberFactor - This is a reserved attribute.
- swap number
- This is a reserved attribute.
- id string
- The BMS flavor id.
- min
Disk number - min
Ram number - name string
- sort
Dir string - sort
Key string - vcpus number
- disk Number
- The disk size (GB) in the BMS flavor.
- ram Number
- The memory size (in MB) of the BMS flavor.
- region String
- rx
Tx NumberFactor - This is a reserved attribute.
- swap Number
- This is a reserved attribute.
- id String
- The BMS flavor id.
- min
Disk Number - min
Ram Number - name String
- sort
Dir String - sort
Key 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