opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getComputeBmsFlavorsV2
Explore with Pulumi AI
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 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 dictionary
The following arguments are supported:
- Id string
- The BMS flavor id.
- Min
Disk 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.
- Min
Ram 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
- Sort
Dir string - The sorting order, which can be ascending (asc) or descending (desc). The default value is asc.
- Sort
Key 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.
- Min
Disk 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.
- Min
Ram 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
- Sort
Dir string - The sorting order, which can be ascending (asc) or descending (desc). The default value is asc.
- Sort
Key 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.
- min
Disk 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.
- min
Ram 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
- sort
Dir String - The sorting order, which can be ascending (asc) or descending (desc). The default value is asc.
- sort
Key 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.
- min
Disk 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.
- min
Ram 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
- sort
Dir string - The sorting order, which can be ascending (asc) or descending (desc). The default value is asc.
- sort
Key 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.
- min
Disk 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.
- min
Ram 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
- sort
Dir String - The sorting order, which can be ascending (asc) or descending (desc). The default value is asc.
- sort
Key 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
- Rx
Tx 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
- Min
Disk double - Min
Ram double - Name string
- Sort
Dir string - Sort
Key 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
- Rx
Tx 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
- Min
Disk float64 - Min
Ram float64 - Name string
- Sort
Dir string - Sort
Key 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
- rx
Tx 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
- min
Disk Double - min
Ram Double - name String
- sort
Dir String - sort
Key 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
- rx
Tx 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
- min
Disk number - min
Ram number - name string
- sort
Dir string - sort
Key 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
- rx
Tx 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
- min
Disk Number - min
Ram Number - name String
- sort
Dir String - sort
Key String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud