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

flexibleengine.getComputeBmsNicV2

Explore with Pulumi AI

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

    flexibleengine.getComputeBmsNicV2 used to query information about a BMS NIC based on the NIC ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const bmsId = config.requireObject("bmsId");
    const nicId = config.requireObject("nicId");
    const nic = flexibleengine.getComputeBmsNicV2({
        serverId: bmsId,
        id: nicId,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    bms_id = config.require_object("bmsId")
    nic_id = config.require_object("nicId")
    nic = flexibleengine.get_compute_bms_nic_v2(server_id=bms_id,
        id=nic_id)
    
    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, "")
    		bmsId := cfg.RequireObject("bmsId")
    		nicId := cfg.RequireObject("nicId")
    		_, err := flexibleengine.GetComputeBmsNicV2(ctx, &flexibleengine.GetComputeBmsNicV2Args{
    			ServerId: bmsId,
    			Id:       pulumi.StringRef(nicId),
    		}, 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 bmsId = config.RequireObject<dynamic>("bmsId");
        var nicId = config.RequireObject<dynamic>("nicId");
        var nic = Flexibleengine.GetComputeBmsNicV2.Invoke(new()
        {
            ServerId = bmsId,
            Id = nicId,
        });
    
    });
    
    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.GetComputeBmsNicV2Args;
    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 nicId = config.get("nicId");
            final var nic = FlexibleengineFunctions.getComputeBmsNicV2(GetComputeBmsNicV2Args.builder()
                .serverId(bmsId)
                .id(nicId)
                .build());
    
        }
    }
    
    configuration:
      bmsId:
        type: dynamic
      nicId:
        type: dynamic
    variables:
      nic:
        fn::invoke:
          function: flexibleengine:getComputeBmsNicV2
          arguments:
            serverId: ${bmsId}
            id: ${nicId}
    

    Using getComputeBmsNicV2

    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 getComputeBmsNicV2(args: GetComputeBmsNicV2Args, opts?: InvokeOptions): Promise<GetComputeBmsNicV2Result>
    function getComputeBmsNicV2Output(args: GetComputeBmsNicV2OutputArgs, opts?: InvokeOptions): Output<GetComputeBmsNicV2Result>
    def get_compute_bms_nic_v2(id: Optional[str] = None,
                               region: Optional[str] = None,
                               server_id: Optional[str] = None,
                               status: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetComputeBmsNicV2Result
    def get_compute_bms_nic_v2_output(id: Optional[pulumi.Input[str]] = None,
                               region: Optional[pulumi.Input[str]] = None,
                               server_id: Optional[pulumi.Input[str]] = None,
                               status: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetComputeBmsNicV2Result]
    func GetComputeBmsNicV2(ctx *Context, args *GetComputeBmsNicV2Args, opts ...InvokeOption) (*GetComputeBmsNicV2Result, error)
    func GetComputeBmsNicV2Output(ctx *Context, args *GetComputeBmsNicV2OutputArgs, opts ...InvokeOption) GetComputeBmsNicV2ResultOutput

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

    public static class GetComputeBmsNicV2 
    {
        public static Task<GetComputeBmsNicV2Result> InvokeAsync(GetComputeBmsNicV2Args args, InvokeOptions? opts = null)
        public static Output<GetComputeBmsNicV2Result> Invoke(GetComputeBmsNicV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetComputeBmsNicV2Result> getComputeBmsNicV2(GetComputeBmsNicV2Args args, InvokeOptions options)
    public static Output<GetComputeBmsNicV2Result> getComputeBmsNicV2(GetComputeBmsNicV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getComputeBmsNicV2:getComputeBmsNicV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServerId string
    This is the unique BMS id.
    Id string
    The ID of the NIC.
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    Status string
    The NIC port status.
    ServerId string
    This is the unique BMS id.
    Id string
    The ID of the NIC.
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    Status string
    The NIC port status.
    serverId String
    This is the unique BMS id.
    id String
    The ID of the NIC.
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.
    status String
    The NIC port status.
    serverId string
    This is the unique BMS id.
    id string
    The ID of the NIC.
    region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    status string
    The NIC port status.
    server_id str
    This is the unique BMS id.
    id str
    The ID of the NIC.
    region str
    The region in which to query the data source. If omitted, the provider-level region will be used.
    status str
    The NIC port status.
    serverId String
    This is the unique BMS id.
    id String
    The ID of the NIC.
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.
    status String
    The NIC port status.

    getComputeBmsNicV2 Result

    The following output properties are available:

    FixedIps List<GetComputeBmsNicV2FixedIp>
    The NIC IP address. The fixed_ips object structure is documented below.
    MacAddress string
    It is NIC's mac address.
    NetworkId string
    The ID of the network to which the NIC port belongs.
    Region string
    ServerId string
    Id string
    Status string
    FixedIps []GetComputeBmsNicV2FixedIp
    The NIC IP address. The fixed_ips object structure is documented below.
    MacAddress string
    It is NIC's mac address.
    NetworkId string
    The ID of the network to which the NIC port belongs.
    Region string
    ServerId string
    Id string
    Status string
    fixedIps List<GetComputeBmsNicV2FixedIp>
    The NIC IP address. The fixed_ips object structure is documented below.
    macAddress String
    It is NIC's mac address.
    networkId String
    The ID of the network to which the NIC port belongs.
    region String
    serverId String
    id String
    status String
    fixedIps GetComputeBmsNicV2FixedIp[]
    The NIC IP address. The fixed_ips object structure is documented below.
    macAddress string
    It is NIC's mac address.
    networkId string
    The ID of the network to which the NIC port belongs.
    region string
    serverId string
    id string
    status string
    fixed_ips Sequence[GetComputeBmsNicV2FixedIp]
    The NIC IP address. The fixed_ips object structure is documented below.
    mac_address str
    It is NIC's mac address.
    network_id str
    The ID of the network to which the NIC port belongs.
    region str
    server_id str
    id str
    status str
    fixedIps List<Property Map>
    The NIC IP address. The fixed_ips object structure is documented below.
    macAddress String
    It is NIC's mac address.
    networkId String
    The ID of the network to which the NIC port belongs.
    region String
    serverId String
    id String
    status String

    Supporting Types

    GetComputeBmsNicV2FixedIp

    IpAddress string
    Specifies the NIC private IP address.
    SubnetId string
    Specifies the ID of the subnet (subnet_id) corresponding to the private IP address of the NIC.
    IpAddress string
    Specifies the NIC private IP address.
    SubnetId string
    Specifies the ID of the subnet (subnet_id) corresponding to the private IP address of the NIC.
    ipAddress String
    Specifies the NIC private IP address.
    subnetId String
    Specifies the ID of the subnet (subnet_id) corresponding to the private IP address of the NIC.
    ipAddress string
    Specifies the NIC private IP address.
    subnetId string
    Specifies the ID of the subnet (subnet_id) corresponding to the private IP address of the NIC.
    ip_address str
    Specifies the NIC private IP address.
    subnet_id str
    Specifies the ID of the subnet (subnet_id) corresponding to the private IP address of the NIC.
    ipAddress String
    Specifies the NIC private IP address.
    subnetId String
    Specifies the ID of the subnet (subnet_id) corresponding to the private IP address of the NIC.

    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