opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud
opentelekomcloud.getComputeBmsServerV2
Explore with Pulumi AI
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud
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,
});
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)
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
	})
}
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,
    });
});
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());
    }
}
configuration:
  bmsId:
    type: dynamic
  bmsName:
    type: dynamic
variables:
  queryBms:
    fn::invoke:
      function: opentelekomcloud:getComputeBmsServerV2
      arguments:
        id: ${bmsId}
        name: ${bmsName}
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>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]func LookupComputeBmsServerV2(ctx *Context, args *LookupComputeBmsServerV2Args, opts ...InvokeOption) (*LookupComputeBmsServerV2Result, error)
func LookupComputeBmsServerV2Output(ctx *Context, args *LookupComputeBmsServerV2OutputArgs, opts ...InvokeOption) LookupComputeBmsServerV2ResultOutput> 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)
}public static CompletableFuture<GetComputeBmsServerV2Result> getComputeBmsServerV2(GetComputeBmsServerV2Args args, InvokeOptions options)
public static Output<GetComputeBmsServerV2Result> getComputeBmsServerV2(GetComputeBmsServerV2Args args, InvokeOptions options)
fn::invoke:
  function: opentelekomcloud:index/getComputeBmsServerV2:getComputeBmsServerV2
  arguments:
    # arguments dictionaryThe following arguments are supported:
- FlavorId string
- It gives the BMS flavor information.
- HostStatus string
- The nova-compute status: UP,UNKNOWN,DOWN,MAINTENANCEandNull.
- 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,MAINTENANCEandNull.
- 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,MAINTENANCEandNull.
- 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,MAINTENANCEandNull.
- 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,MAINTENANCEandNull.
- 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,MAINTENANCEandNull.
- 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:
- AccessIp stringV4 
- This is a reserved attribute.
- AccessIp stringV6 
- 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<GetCompute Bms Server V2Network> 
- Progress double
- This is a reserved attribute.
- Region string
- SecurityGroups List<GetCompute Bms Server V2Security Group> 
- The list of security groups to which the BMS belongs.
- List<string>
- Specifies the BMS tag.
- TenantId string
- FlavorId string
- HostStatus string
- Id string
- ImageId string
- KeyName string
- Name string
- Status string
- UserId string
- AccessIp stringV4 
- This is a reserved attribute.
- AccessIp stringV6 
- 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
[]GetCompute Bms Server V2Network 
- Progress float64
- This is a reserved attribute.
- Region string
- SecurityGroups []GetCompute Bms Server V2Security Group 
- The list of security groups to which the BMS belongs.
- []string
- Specifies the BMS tag.
- TenantId string
- FlavorId string
- HostStatus string
- Id string
- ImageId string
- KeyName string
- Name string
- Status string
- UserId string
- accessIp StringV4 
- This is a reserved attribute.
- accessIp StringV6 
- 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<GetCompute Bms Server V2Network> 
- progress Double
- This is a reserved attribute.
- region String
- securityGroups List<GetCompute Bms Server V2Security Group> 
- The list of security groups to which the BMS belongs.
- List<String>
- Specifies the BMS tag.
- tenantId String
- flavorId String
- hostStatus String
- id String
- imageId String
- keyName String
- name String
- status String
- userId String
- accessIp stringV4 
- This is a reserved attribute.
- accessIp stringV6 
- 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
GetCompute Bms Server V2Network[] 
- progress number
- This is a reserved attribute.
- region string
- securityGroups GetCompute Bms Server V2Security Group[] 
- The list of security groups to which the BMS belongs.
- 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_ strv4 
- This is a reserved attribute.
- access_ip_ strv6 
- 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[GetCompute Bms Server V2Network] 
- progress float
- This is a reserved attribute.
- region str
- security_groups Sequence[GetCompute Bms Server V2Security Group] 
- The list of security groups to which the BMS belongs.
- 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
- accessIp StringV4 
- This is a reserved attribute.
- accessIp StringV6 
- 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.
- 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    
GetComputeBmsServerV2SecurityGroup     
- Name string
- The name of BMS.
- Name string
- The name of BMS.
- name String
- The name of BMS.
- name string
- The name of BMS.
- name str
- The name of BMS.
- name String
- The name of BMS.
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