opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getComputeBmsServerV2
Explore with Pulumi AI
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 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 dictionary
The following arguments are supported:
- Flavor
Id string - It gives the BMS flavor information.
- Host
Status string - The nova-compute status:
UP
,UNKNOWN
,DOWN
,MAINTENANCE
andNull
. - Id string
- The unique ID of the BMS.
- Image
Id string - The BMS image.
- Key
Name string - It is the SSH key name.
- Name string
- The name of BMS.
- Region string
- Status string
- The BMS status.
- User
Id string - The ID of the user to which the BMS belongs.
- Flavor
Id string - It gives the BMS flavor information.
- Host
Status string - The nova-compute status:
UP
,UNKNOWN
,DOWN
,MAINTENANCE
andNull
. - Id string
- The unique ID of the BMS.
- Image
Id string - The BMS image.
- Key
Name string - It is the SSH key name.
- Name string
- The name of BMS.
- Region string
- Status string
- The BMS status.
- User
Id string - The ID of the user to which the BMS belongs.
- flavor
Id String - It gives the BMS flavor information.
- host
Status String - The nova-compute status:
UP
,UNKNOWN
,DOWN
,MAINTENANCE
andNull
. - id String
- The unique ID of the BMS.
- image
Id String - The BMS image.
- key
Name String - It is the SSH key name.
- name String
- The name of BMS.
- region String
- status String
- The BMS status.
- user
Id String - The ID of the user to which the BMS belongs.
- flavor
Id string - It gives the BMS flavor information.
- host
Status string - The nova-compute status:
UP
,UNKNOWN
,DOWN
,MAINTENANCE
andNull
. - id string
- The unique ID of the BMS.
- image
Id string - The BMS image.
- key
Name string - It is the SSH key name.
- name string
- The name of BMS.
- region string
- status string
- The BMS status.
- user
Id 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
andNull
. - 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.
- flavor
Id String - It gives the BMS flavor information.
- host
Status String - The nova-compute status:
UP
,UNKNOWN
,DOWN
,MAINTENANCE
andNull
. - id String
- The unique ID of the BMS.
- image
Id String - The BMS image.
- key
Name String - It is the SSH key name.
- name String
- The name of BMS.
- region String
- status String
- The BMS status.
- user
Id String - The ID of the user to which the BMS belongs.
getComputeBmsServerV2 Result
The following output properties are available:
- Access
Ip stringV4 - This is a reserved attribute.
- Access
Ip stringV6 - This is a reserved attribute.
- Availability
Zone string - Specifies the AZ ID.
- Config
Drive string - This is a reserved attribute.
- Description string
- Provides supplementary information about the pool.
- Host
Id string - It is the host ID of the BMS.
- Hypervisor
Hostname string - It is the name of a host on the hypervisor.
- Instance
Name string - Instance name is specified.
- Kernel
Id 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<Get
Compute Bms Server V2Network> - Progress double
- This is a reserved attribute.
- Region string
- Security
Groups List<GetCompute Bms Server V2Security Group> - The list of security groups to which the BMS belongs.
- List<string>
- Specifies the BMS tag.
- Tenant
Id string - Flavor
Id string - Host
Status string - Id string
- Image
Id string - Key
Name string - Name string
- Status string
- User
Id string
- Access
Ip stringV4 - This is a reserved attribute.
- Access
Ip stringV6 - This is a reserved attribute.
- Availability
Zone string - Specifies the AZ ID.
- Config
Drive string - This is a reserved attribute.
- Description string
- Provides supplementary information about the pool.
- Host
Id string - It is the host ID of the BMS.
- Hypervisor
Hostname string - It is the name of a host on the hypervisor.
- Instance
Name string - Instance name is specified.
- Kernel
Id 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
[]Get
Compute Bms Server V2Network - Progress float64
- This is a reserved attribute.
- Region string
- Security
Groups []GetCompute Bms Server V2Security Group - The list of security groups to which the BMS belongs.
- []string
- Specifies the BMS tag.
- Tenant
Id string - Flavor
Id string - Host
Status string - Id string
- Image
Id string - Key
Name string - Name string
- Status string
- User
Id string
- access
Ip StringV4 - This is a reserved attribute.
- access
Ip StringV6 - This is a reserved attribute.
- availability
Zone String - Specifies the AZ ID.
- config
Drive String - This is a reserved attribute.
- description String
- Provides supplementary information about the pool.
- host
Id String - It is the host ID of the BMS.
- hypervisor
Hostname String - It is the name of a host on the hypervisor.
- instance
Name String - Instance name is specified.
- kernel
Id 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<Get
Compute Bms Server V2Network> - progress Double
- This is a reserved attribute.
- region String
- security
Groups List<GetCompute Bms Server V2Security Group> - The list of security groups to which the BMS belongs.
- List<String>
- Specifies the BMS tag.
- tenant
Id String - flavor
Id String - host
Status String - id String
- image
Id String - key
Name String - name String
- status String
- user
Id String
- access
Ip stringV4 - This is a reserved attribute.
- access
Ip stringV6 - This is a reserved attribute.
- availability
Zone string - Specifies the AZ ID.
- config
Drive string - This is a reserved attribute.
- description string
- Provides supplementary information about the pool.
- host
Id string - It is the host ID of the BMS.
- hypervisor
Hostname string - It is the name of a host on the hypervisor.
- instance
Name string - Instance name is specified.
- kernel
Id 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
Get
Compute Bms Server V2Network[] - progress number
- This is a reserved attribute.
- region string
- security
Groups GetCompute Bms Server V2Security Group[] - The list of security groups to which the BMS belongs.
- string[]
- Specifies the BMS tag.
- tenant
Id string - flavor
Id string - host
Status string - id string
- image
Id string - key
Name string - name string
- status string
- user
Id 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[Get
Compute 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
- access
Ip StringV4 - This is a reserved attribute.
- access
Ip StringV6 - This is a reserved attribute.
- availability
Zone String - Specifies the AZ ID.
- config
Drive String - This is a reserved attribute.
- description String
- Provides supplementary information about the pool.
- host
Id String - It is the host ID of the BMS.
- hypervisor
Hostname String - It is the name of a host on the hypervisor.
- instance
Name String - Instance name is specified.
- kernel
Id 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
- security
Groups List<Property Map> - The list of security groups to which the BMS belongs.
- List<String>
- Specifies the BMS tag.
- tenant
Id String - flavor
Id String - host
Status String - id String
- image
Id String - key
Name String - name String
- status String
- user
Id 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
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud