1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getComputeBmsServerV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getComputeBmsServerV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    flexibleengine.ComputeBmsServerV2 used to query a BMS or BMSs details.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const bmsName = config.requireObject("bmsName");
    const server = flexibleengine.getComputeBmsServerV2({
        name: bmsName,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    bms_name = config.require_object("bmsName")
    server = flexibleengine.get_compute_bms_server_v2(name=bms_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		bmsName := cfg.RequireObject("bmsName")
    		_, err := flexibleengine.LookupComputeBmsServerV2(ctx, &flexibleengine.LookupComputeBmsServerV2Args{
    			Name: pulumi.StringRef(bmsName),
    		}, 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 config = new Config();
        var bmsName = config.RequireObject<dynamic>("bmsName");
        var server = Flexibleengine.GetComputeBmsServerV2.Invoke(new()
        {
            Name = bmsName,
        });
    
    });
    
    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.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 bmsName = config.get("bmsName");
            final var server = FlexibleengineFunctions.getComputeBmsServerV2(GetComputeBmsServerV2Args.builder()
                .name(bmsName)
                .build());
    
        }
    }
    
    configuration:
      bmsName:
        type: dynamic
    variables:
      server:
        fn::invoke:
          function: flexibleengine:getComputeBmsServerV2
          arguments:
            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: flexibleengine:index/getComputeBmsServerV2:getComputeBmsServerV2
      arguments:
        # arguments dictionary

    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
    The region in which to query the data source. If omitted, the provider-level region will be used.
    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
    The region in which to query the data source. If omitted, the provider-level region will be used.
    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
    The region in which to query the data source. If omitted, the provider-level region will be used.
    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
    The region in which to query the data source. If omitted, the provider-level region will be used.
    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
    The region in which to query the data source. If omitted, the provider-level region will be used.
    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
    The region in which to query the data source. If omitted, the provider-level region will be used.
    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. The security_groups object structure is documented below.
    Tags List<string>
    Specifies the BMS tag.
    TenantId string
    Specifies the ID of the tenant owning the BMS. The value is in UUID format. This parameter specifies the same meaning as project_id.
    FlavorId string
    HostStatus string
    Id string
    ImageId string
    KeyName string
    Name string
    The name of security_groups.
    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. The security_groups object structure is documented below.
    Tags []string
    Specifies the BMS tag.
    TenantId string
    Specifies the ID of the tenant owning the BMS. The value is in UUID format. This parameter specifies the same meaning as project_id.
    FlavorId string
    HostStatus string
    Id string
    ImageId string
    KeyName string
    Name string
    The name of security_groups.
    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. The security_groups object structure is documented below.
    tags List<String>
    Specifies the BMS tag.
    tenantId String
    Specifies the ID of the tenant owning the BMS. The value is in UUID format. This parameter specifies the same meaning as project_id.
    flavorId String
    hostStatus String
    id String
    imageId String
    keyName String
    name String
    The name of security_groups.
    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. The security_groups object structure is documented below.
    tags string[]
    Specifies the BMS tag.
    tenantId string
    Specifies the ID of the tenant owning the BMS. The value is in UUID format. This parameter specifies the same meaning as project_id.
    flavorId string
    hostStatus string
    id string
    imageId string
    keyName string
    name string
    The name of security_groups.
    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. The security_groups object structure is documented below.
    tags Sequence[str]
    Specifies the BMS tag.
    tenant_id str
    Specifies the ID of the tenant owning the BMS. The value is in UUID format. This parameter specifies the same meaning as project_id.
    flavor_id str
    host_status str
    id str
    image_id str
    key_name str
    name str
    The name of security_groups.
    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. The security_groups object structure is documented below.
    tags List<String>
    Specifies the BMS tag.
    tenantId String
    Specifies the ID of the tenant owning the BMS. The value is in UUID format. This parameter specifies the same meaning as project_id.
    flavorId String
    hostStatus String
    id String
    imageId String
    keyName String
    name String
    The name of security_groups.
    status String
    userId String

    Supporting Types

    GetComputeBmsServerV2Network

    FixedIpV4 string
    FixedIpV6 string
    Mac string
    Name string
    The name of BMS.
    Port string
    Uuid string
    FixedIpV4 string
    FixedIpV6 string
    Mac string
    Name string
    The name of BMS.
    Port string
    Uuid string
    fixedIpV4 String
    fixedIpV6 String
    mac String
    name String
    The name of BMS.
    port String
    uuid String
    fixedIpV4 string
    fixedIpV6 string
    mac string
    name string
    The name of BMS.
    port string
    uuid string
    fixed_ip_v4 str
    fixed_ip_v6 str
    mac str
    name str
    The name of BMS.
    port str
    uuid str
    fixedIpV4 String
    fixedIpV6 String
    mac String
    name String
    The name of BMS.
    port String
    uuid String

    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
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud