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

opentelekomcloud.getComputeBmsServerV2

Explore with Pulumi AI

Up-to-date reference of API arguments for BMS you can get at documentation portal

Use this data source to get details about a BMS or BMSs from OpenTelekomCloud.

Example Usage

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

const config = new pulumi.Config();
const bmsId = config.requireObject("bmsId");
const bmsName = config.requireObject("bmsName");
const queryBms = opentelekomcloud.getComputeBmsServerV2({
    id: bmsId,
    name: bmsName,
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
bms_id = config.require_object("bmsId")
bms_name = config.require_object("bmsName")
query_bms = opentelekomcloud.get_compute_bms_server_v2(id=bms_id,
    name=bms_name)
Copy
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, "")
		bmsId := cfg.RequireObject("bmsId")
		bmsName := cfg.RequireObject("bmsName")
		_, err := opentelekomcloud.LookupComputeBmsServerV2(ctx, &opentelekomcloud.LookupComputeBmsServerV2Args{
			Id:   pulumi.StringRef(bmsId),
			Name: pulumi.StringRef(bmsName),
		}, 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 config = new Config();
    var bmsId = config.RequireObject<dynamic>("bmsId");
    var bmsName = config.RequireObject<dynamic>("bmsName");
    var queryBms = Opentelekomcloud.GetComputeBmsServerV2.Invoke(new()
    {
        Id = bmsId,
        Name = bmsName,
    });

});
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.GetComputeBmsServerV2Args;
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 bmsId = config.get("bmsId");
        final var bmsName = config.get("bmsName");
        final var queryBms = OpentelekomcloudFunctions.getComputeBmsServerV2(GetComputeBmsServerV2Args.builder()
            .id(bmsId)
            .name(bmsName)
            .build());

    }
}
Copy
configuration:
  bmsId:
    type: dynamic
  bmsName:
    type: dynamic
variables:
  queryBms:
    fn::invoke:
      function: opentelekomcloud:getComputeBmsServerV2
      arguments:
        id: ${bmsId}
        name: ${bmsName}
Copy

Using getComputeBmsServerV2

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 getComputeBmsServerV2(args: GetComputeBmsServerV2Args, opts?: InvokeOptions): Promise<GetComputeBmsServerV2Result>
function getComputeBmsServerV2Output(args: GetComputeBmsServerV2OutputArgs, opts?: InvokeOptions): Output<GetComputeBmsServerV2Result>
Copy
def get_compute_bms_server_v2(flavor_id: Optional[str] = None,
                              host_status: Optional[str] = None,
                              id: Optional[str] = None,
                              image_id: Optional[str] = None,
                              key_name: Optional[str] = None,
                              name: Optional[str] = None,
                              region: Optional[str] = None,
                              status: Optional[str] = None,
                              user_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetComputeBmsServerV2Result
def get_compute_bms_server_v2_output(flavor_id: Optional[pulumi.Input[str]] = None,
                              host_status: Optional[pulumi.Input[str]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              image_id: Optional[pulumi.Input[str]] = None,
                              key_name: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              region: Optional[pulumi.Input[str]] = None,
                              status: Optional[pulumi.Input[str]] = None,
                              user_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetComputeBmsServerV2Result]
Copy
func LookupComputeBmsServerV2(ctx *Context, args *LookupComputeBmsServerV2Args, opts ...InvokeOption) (*LookupComputeBmsServerV2Result, error)
func LookupComputeBmsServerV2Output(ctx *Context, args *LookupComputeBmsServerV2OutputArgs, opts ...InvokeOption) LookupComputeBmsServerV2ResultOutput
Copy

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

public static class GetComputeBmsServerV2 
{
    public static Task<GetComputeBmsServerV2Result> InvokeAsync(GetComputeBmsServerV2Args args, InvokeOptions? opts = null)
    public static Output<GetComputeBmsServerV2Result> Invoke(GetComputeBmsServerV2InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetComputeBmsServerV2Result> getComputeBmsServerV2(GetComputeBmsServerV2Args args, InvokeOptions options)
public static Output<GetComputeBmsServerV2Result> getComputeBmsServerV2(GetComputeBmsServerV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getComputeBmsServerV2:getComputeBmsServerV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

FlavorId string
It gives the BMS flavor information.
HostStatus string
The nova-compute status: UP, UNKNOWN, DOWN, MAINTENANCE and Null.
Id string
The unique ID of the BMS.
ImageId string
The BMS image.
KeyName string
It is the SSH key name.
Name string
The name of BMS.
Region string
Status string
The BMS status.
UserId string
The ID of the user to which the BMS belongs.
FlavorId string
It gives the BMS flavor information.
HostStatus string
The nova-compute status: UP, UNKNOWN, DOWN, MAINTENANCE and Null.
Id string
The unique ID of the BMS.
ImageId string
The BMS image.
KeyName string
It is the SSH key name.
Name string
The name of BMS.
Region string
Status string
The BMS status.
UserId string
The ID of the user to which the BMS belongs.
flavorId String
It gives the BMS flavor information.
hostStatus String
The nova-compute status: UP, UNKNOWN, DOWN, MAINTENANCE and Null.
id String
The unique ID of the BMS.
imageId String
The BMS image.
keyName String
It is the SSH key name.
name String
The name of BMS.
region String
status String
The BMS status.
userId String
The ID of the user to which the BMS belongs.
flavorId string
It gives the BMS flavor information.
hostStatus string
The nova-compute status: UP, UNKNOWN, DOWN, MAINTENANCE and Null.
id string
The unique ID of the BMS.
imageId string
The BMS image.
keyName string
It is the SSH key name.
name string
The name of BMS.
region string
status string
The BMS status.
userId string
The ID of the user to which the BMS belongs.
flavor_id str
It gives the BMS flavor information.
host_status str
The nova-compute status: UP, UNKNOWN, DOWN, MAINTENANCE and Null.
id str
The unique ID of the BMS.
image_id str
The BMS image.
key_name str
It is the SSH key name.
name str
The name of BMS.
region str
status str
The BMS status.
user_id str
The ID of the user to which the BMS belongs.
flavorId String
It gives the BMS flavor information.
hostStatus String
The nova-compute status: UP, UNKNOWN, DOWN, MAINTENANCE and Null.
id String
The unique ID of the BMS.
imageId String
The BMS image.
keyName String
It is the SSH key name.
name String
The name of BMS.
region String
status String
The BMS status.
userId String
The ID of the user to which the BMS belongs.

getComputeBmsServerV2 Result

The following output properties are available:

AccessIpV4 string
This is a reserved attribute.
AccessIpV6 string
This is a reserved attribute.
AvailabilityZone string
Specifies the AZ ID.
ConfigDrive string
This is a reserved attribute.
Description string
Provides supplementary information about the pool.
HostId string
It is the host ID of the BMS.
HypervisorHostname string
It is the name of a host on the hypervisor.
InstanceName string
Instance name is specified.
KernelId string
The UUID of the kernel image when the AMI image is used.
Locked bool
It specifies whether a BMS is locked, true: The BMS is locked, false: The BMS is not locked.
Metadata Dictionary<string, string>
The BMS metadata is specified.
Networks List<GetComputeBmsServerV2Network>
Progress double
This is a reserved attribute.
Region string
SecurityGroups List<GetComputeBmsServerV2SecurityGroup>
The list of security groups to which the BMS belongs.
Tags List<string>
Specifies the BMS tag.
TenantId string
FlavorId string
HostStatus string
Id string
ImageId string
KeyName string
Name string
Status string
UserId string
AccessIpV4 string
This is a reserved attribute.
AccessIpV6 string
This is a reserved attribute.
AvailabilityZone string
Specifies the AZ ID.
ConfigDrive string
This is a reserved attribute.
Description string
Provides supplementary information about the pool.
HostId string
It is the host ID of the BMS.
HypervisorHostname string
It is the name of a host on the hypervisor.
InstanceName string
Instance name is specified.
KernelId string
The UUID of the kernel image when the AMI image is used.
Locked bool
It specifies whether a BMS is locked, true: The BMS is locked, false: The BMS is not locked.
Metadata map[string]string
The BMS metadata is specified.
Networks []GetComputeBmsServerV2Network
Progress float64
This is a reserved attribute.
Region string
SecurityGroups []GetComputeBmsServerV2SecurityGroup
The list of security groups to which the BMS belongs.
Tags []string
Specifies the BMS tag.
TenantId string
FlavorId string
HostStatus string
Id string
ImageId string
KeyName string
Name string
Status string
UserId string
accessIpV4 String
This is a reserved attribute.
accessIpV6 String
This is a reserved attribute.
availabilityZone String
Specifies the AZ ID.
configDrive String
This is a reserved attribute.
description String
Provides supplementary information about the pool.
hostId String
It is the host ID of the BMS.
hypervisorHostname String
It is the name of a host on the hypervisor.
instanceName String
Instance name is specified.
kernelId String
The UUID of the kernel image when the AMI image is used.
locked Boolean
It specifies whether a BMS is locked, true: The BMS is locked, false: The BMS is not locked.
metadata Map<String,String>
The BMS metadata is specified.
networks List<GetComputeBmsServerV2Network>
progress Double
This is a reserved attribute.
region String
securityGroups List<GetComputeBmsServerV2SecurityGroup>
The list of security groups to which the BMS belongs.
tags List<String>
Specifies the BMS tag.
tenantId String
flavorId String
hostStatus String
id String
imageId String
keyName String
name String
status String
userId String
accessIpV4 string
This is a reserved attribute.
accessIpV6 string
This is a reserved attribute.
availabilityZone string
Specifies the AZ ID.
configDrive string
This is a reserved attribute.
description string
Provides supplementary information about the pool.
hostId string
It is the host ID of the BMS.
hypervisorHostname string
It is the name of a host on the hypervisor.
instanceName string
Instance name is specified.
kernelId string
The UUID of the kernel image when the AMI image is used.
locked boolean
It specifies whether a BMS is locked, true: The BMS is locked, false: The BMS is not locked.
metadata {[key: string]: string}
The BMS metadata is specified.
networks GetComputeBmsServerV2Network[]
progress number
This is a reserved attribute.
region string
securityGroups GetComputeBmsServerV2SecurityGroup[]
The list of security groups to which the BMS belongs.
tags string[]
Specifies the BMS tag.
tenantId string
flavorId string
hostStatus string
id string
imageId string
keyName string
name string
status string
userId string
access_ip_v4 str
This is a reserved attribute.
access_ip_v6 str
This is a reserved attribute.
availability_zone str
Specifies the AZ ID.
config_drive str
This is a reserved attribute.
description str
Provides supplementary information about the pool.
host_id str
It is the host ID of the BMS.
hypervisor_hostname str
It is the name of a host on the hypervisor.
instance_name str
Instance name is specified.
kernel_id str
The UUID of the kernel image when the AMI image is used.
locked bool
It specifies whether a BMS is locked, true: The BMS is locked, false: The BMS is not locked.
metadata Mapping[str, str]
The BMS metadata is specified.
networks Sequence[GetComputeBmsServerV2Network]
progress float
This is a reserved attribute.
region str
security_groups Sequence[GetComputeBmsServerV2SecurityGroup]
The list of security groups to which the BMS belongs.
tags Sequence[str]
Specifies the BMS tag.
tenant_id str
flavor_id str
host_status str
id str
image_id str
key_name str
name str
status str
user_id str
accessIpV4 String
This is a reserved attribute.
accessIpV6 String
This is a reserved attribute.
availabilityZone String
Specifies the AZ ID.
configDrive String
This is a reserved attribute.
description String
Provides supplementary information about the pool.
hostId String
It is the host ID of the BMS.
hypervisorHostname String
It is the name of a host on the hypervisor.
instanceName String
Instance name is specified.
kernelId String
The UUID of the kernel image when the AMI image is used.
locked Boolean
It specifies whether a BMS is locked, true: The BMS is locked, false: The BMS is not locked.
metadata Map<String>
The BMS metadata is specified.
networks List<Property Map>
progress Number
This is a reserved attribute.
region String
securityGroups List<Property Map>
The list of security groups to which the BMS belongs.
tags List<String>
Specifies the BMS tag.
tenantId String
flavorId String
hostStatus String
id String
imageId String
keyName String
name String
status String
userId String

Supporting Types

GetComputeBmsServerV2Network

Ip This property is required. string
Mac This property is required. string
Name This property is required. string
The name of BMS.
Type This property is required. string
Version This property is required. double
Ip This property is required. string
Mac This property is required. string
Name This property is required. string
The name of BMS.
Type This property is required. string
Version This property is required. float64
ip This property is required. String
mac This property is required. String
name This property is required. String
The name of BMS.
type This property is required. String
version This property is required. Double
ip This property is required. string
mac This property is required. string
name This property is required. string
The name of BMS.
type This property is required. string
version This property is required. number
ip This property is required. str
mac This property is required. str
name This property is required. str
The name of BMS.
type This property is required. str
version This property is required. float
ip This property is required. String
mac This property is required. String
name This property is required. String
The name of BMS.
type This property is required. String
version This property is required. Number

GetComputeBmsServerV2SecurityGroup

Name This property is required. string
The name of BMS.
Name This property is required. string
The name of BMS.
name This property is required. String
The name of BMS.
name This property is required. string
The name of BMS.
name This property is required. str
The name of BMS.
name This property is required. String
The name of BMS.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.