1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsBareMetalServerNetworkInterfaceFloatingIp
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsBareMetalServerNetworkInterfaceFloatingIp

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve an information of VPC floating IP associated with network interface of a bare metal server as a read-only data source. For more information, about floating IP, see about floating IP.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const test = ibm.getIsBareMetalServerNetworkInterfaceFloatingIp({
        bareMetalServer: ibm_is_bare_metal_server.example.id,
        floatingIp: ibm_is_floating_ip.example.id,
        networkInterface: ibm_is_bare_metal_server_network_interface.example.id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    test = ibm.get_is_bare_metal_server_network_interface_floating_ip(bare_metal_server=ibm_is_bare_metal_server["example"]["id"],
        floating_ip=ibm_is_floating_ip["example"]["id"],
        network_interface=ibm_is_bare_metal_server_network_interface["example"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.LookupIsBareMetalServerNetworkInterfaceFloatingIp(ctx, &ibm.LookupIsBareMetalServerNetworkInterfaceFloatingIpArgs{
    			BareMetalServer:  ibm_is_bare_metal_server.Example.Id,
    			FloatingIp:       ibm_is_floating_ip.Example.Id,
    			NetworkInterface: ibm_is_bare_metal_server_network_interface.Example.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Ibm.GetIsBareMetalServerNetworkInterfaceFloatingIp.Invoke(new()
        {
            BareMetalServer = ibm_is_bare_metal_server.Example.Id,
            FloatingIp = ibm_is_floating_ip.Example.Id,
            NetworkInterface = ibm_is_bare_metal_server_network_interface.Example.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsBareMetalServerNetworkInterfaceFloatingIpArgs;
    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 test = IbmFunctions.getIsBareMetalServerNetworkInterfaceFloatingIp(GetIsBareMetalServerNetworkInterfaceFloatingIpArgs.builder()
                .bareMetalServer(ibm_is_bare_metal_server.example().id())
                .floatingIp(ibm_is_floating_ip.example().id())
                .networkInterface(ibm_is_bare_metal_server_network_interface.example().id())
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: ibm:getIsBareMetalServerNetworkInterfaceFloatingIp
          arguments:
            bareMetalServer: ${ibm_is_bare_metal_server.example.id}
            floatingIp: ${ibm_is_floating_ip.example.id}
            networkInterface: ${ibm_is_bare_metal_server_network_interface.example.id}
    

    Using getIsBareMetalServerNetworkInterfaceFloatingIp

    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 getIsBareMetalServerNetworkInterfaceFloatingIp(args: GetIsBareMetalServerNetworkInterfaceFloatingIpArgs, opts?: InvokeOptions): Promise<GetIsBareMetalServerNetworkInterfaceFloatingIpResult>
    function getIsBareMetalServerNetworkInterfaceFloatingIpOutput(args: GetIsBareMetalServerNetworkInterfaceFloatingIpOutputArgs, opts?: InvokeOptions): Output<GetIsBareMetalServerNetworkInterfaceFloatingIpResult>
    def get_is_bare_metal_server_network_interface_floating_ip(bare_metal_server: Optional[str] = None,
                                                               floating_ip: Optional[str] = None,
                                                               id: Optional[str] = None,
                                                               network_interface: Optional[str] = None,
                                                               opts: Optional[InvokeOptions] = None) -> GetIsBareMetalServerNetworkInterfaceFloatingIpResult
    def get_is_bare_metal_server_network_interface_floating_ip_output(bare_metal_server: Optional[pulumi.Input[str]] = None,
                                                               floating_ip: Optional[pulumi.Input[str]] = None,
                                                               id: Optional[pulumi.Input[str]] = None,
                                                               network_interface: Optional[pulumi.Input[str]] = None,
                                                               opts: Optional[InvokeOptions] = None) -> Output[GetIsBareMetalServerNetworkInterfaceFloatingIpResult]
    func LookupIsBareMetalServerNetworkInterfaceFloatingIp(ctx *Context, args *LookupIsBareMetalServerNetworkInterfaceFloatingIpArgs, opts ...InvokeOption) (*LookupIsBareMetalServerNetworkInterfaceFloatingIpResult, error)
    func LookupIsBareMetalServerNetworkInterfaceFloatingIpOutput(ctx *Context, args *LookupIsBareMetalServerNetworkInterfaceFloatingIpOutputArgs, opts ...InvokeOption) LookupIsBareMetalServerNetworkInterfaceFloatingIpResultOutput

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

    public static class GetIsBareMetalServerNetworkInterfaceFloatingIp 
    {
        public static Task<GetIsBareMetalServerNetworkInterfaceFloatingIpResult> InvokeAsync(GetIsBareMetalServerNetworkInterfaceFloatingIpArgs args, InvokeOptions? opts = null)
        public static Output<GetIsBareMetalServerNetworkInterfaceFloatingIpResult> Invoke(GetIsBareMetalServerNetworkInterfaceFloatingIpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsBareMetalServerNetworkInterfaceFloatingIpResult> getIsBareMetalServerNetworkInterfaceFloatingIp(GetIsBareMetalServerNetworkInterfaceFloatingIpArgs args, InvokeOptions options)
    public static Output<GetIsBareMetalServerNetworkInterfaceFloatingIpResult> getIsBareMetalServerNetworkInterfaceFloatingIp(GetIsBareMetalServerNetworkInterfaceFloatingIpArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsBareMetalServerNetworkInterfaceFloatingIp:getIsBareMetalServerNetworkInterfaceFloatingIp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BareMetalServer string
    The bare metal server id.
    FloatingIp string
    The identifier of the floating ip.
    NetworkInterface string
    The identifier of the bare metal server network interface.
    Id string
    (String) The unique identifier of the floating IP.
    BareMetalServer string
    The bare metal server id.
    FloatingIp string
    The identifier of the floating ip.
    NetworkInterface string
    The identifier of the bare metal server network interface.
    Id string
    (String) The unique identifier of the floating IP.
    bareMetalServer String
    The bare metal server id.
    floatingIp String
    The identifier of the floating ip.
    networkInterface String
    The identifier of the bare metal server network interface.
    id String
    (String) The unique identifier of the floating IP.
    bareMetalServer string
    The bare metal server id.
    floatingIp string
    The identifier of the floating ip.
    networkInterface string
    The identifier of the bare metal server network interface.
    id string
    (String) The unique identifier of the floating IP.
    bare_metal_server str
    The bare metal server id.
    floating_ip str
    The identifier of the floating ip.
    network_interface str
    The identifier of the bare metal server network interface.
    id str
    (String) The unique identifier of the floating IP.
    bareMetalServer String
    The bare metal server id.
    floatingIp String
    The identifier of the floating ip.
    networkInterface String
    The identifier of the bare metal server network interface.
    id String
    (String) The unique identifier of the floating IP.

    getIsBareMetalServerNetworkInterfaceFloatingIp Result

    The following output properties are available:

    Address string
    (String) The floating IP address.
    BareMetalServer string
    Crn string
    (String) The CRN for this floating IP.
    FloatingIp string
    Id string
    (String) The unique identifier of the floating IP.
    Name string
    NetworkInterface string
    Status string
    (String) Provisioning status of the floating IP address.
    Target string
    (String) The ID of the network interface used to allocate the floating IP address.
    Zone string
    (String) The zone name where to create the floating IP address.
    Address string
    (String) The floating IP address.
    BareMetalServer string
    Crn string
    (String) The CRN for this floating IP.
    FloatingIp string
    Id string
    (String) The unique identifier of the floating IP.
    Name string
    NetworkInterface string
    Status string
    (String) Provisioning status of the floating IP address.
    Target string
    (String) The ID of the network interface used to allocate the floating IP address.
    Zone string
    (String) The zone name where to create the floating IP address.
    address String
    (String) The floating IP address.
    bareMetalServer String
    crn String
    (String) The CRN for this floating IP.
    floatingIp String
    id String
    (String) The unique identifier of the floating IP.
    name String
    networkInterface String
    status String
    (String) Provisioning status of the floating IP address.
    target String
    (String) The ID of the network interface used to allocate the floating IP address.
    zone String
    (String) The zone name where to create the floating IP address.
    address string
    (String) The floating IP address.
    bareMetalServer string
    crn string
    (String) The CRN for this floating IP.
    floatingIp string
    id string
    (String) The unique identifier of the floating IP.
    name string
    networkInterface string
    status string
    (String) Provisioning status of the floating IP address.
    target string
    (String) The ID of the network interface used to allocate the floating IP address.
    zone string
    (String) The zone name where to create the floating IP address.
    address str
    (String) The floating IP address.
    bare_metal_server str
    crn str
    (String) The CRN for this floating IP.
    floating_ip str
    id str
    (String) The unique identifier of the floating IP.
    name str
    network_interface str
    status str
    (String) Provisioning status of the floating IP address.
    target str
    (String) The ID of the network interface used to allocate the floating IP address.
    zone str
    (String) The zone name where to create the floating IP address.
    address String
    (String) The floating IP address.
    bareMetalServer String
    crn String
    (String) The CRN for this floating IP.
    floatingIp String
    id String
    (String) The unique identifier of the floating IP.
    name String
    networkInterface String
    status String
    (String) Provisioning status of the floating IP address.
    target String
    (String) The ID of the network interface used to allocate the floating IP address.
    zone String
    (String) The zone name where to create the floating IP address.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud