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

ibm.getIsBareMetalServerNetworkInterfaceFloatingIps

Explore with Pulumi AI

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

    Retrieve an information of list of floating IPs on a bare metal network interface IBM Cloud 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.getIsBareMetalServerNetworkInterfaceFloatingIps({
        bareMetalServer: "xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
        networkInterface: "xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    test = ibm.get_is_bare_metal_server_network_interface_floating_ips(bare_metal_server="xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
        network_interface="xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx")
    
    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.GetIsBareMetalServerNetworkInterfaceFloatingIps(ctx, &ibm.GetIsBareMetalServerNetworkInterfaceFloatingIpsArgs{
    			BareMetalServer:  "xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
    			NetworkInterface: "xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
    		}, 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.GetIsBareMetalServerNetworkInterfaceFloatingIps.Invoke(new()
        {
            BareMetalServer = "xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
            NetworkInterface = "xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
        });
    
    });
    
    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.GetIsBareMetalServerNetworkInterfaceFloatingIpsArgs;
    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.getIsBareMetalServerNetworkInterfaceFloatingIps(GetIsBareMetalServerNetworkInterfaceFloatingIpsArgs.builder()
                .bareMetalServer("xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx")
                .networkInterface("xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: ibm:getIsBareMetalServerNetworkInterfaceFloatingIps
          arguments:
            bareMetalServer: xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
            networkInterface: xxxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
    

    Using getIsBareMetalServerNetworkInterfaceFloatingIps

    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 getIsBareMetalServerNetworkInterfaceFloatingIps(args: GetIsBareMetalServerNetworkInterfaceFloatingIpsArgs, opts?: InvokeOptions): Promise<GetIsBareMetalServerNetworkInterfaceFloatingIpsResult>
    function getIsBareMetalServerNetworkInterfaceFloatingIpsOutput(args: GetIsBareMetalServerNetworkInterfaceFloatingIpsOutputArgs, opts?: InvokeOptions): Output<GetIsBareMetalServerNetworkInterfaceFloatingIpsResult>
    def get_is_bare_metal_server_network_interface_floating_ips(bare_metal_server: Optional[str] = None,
                                                                id: Optional[str] = None,
                                                                network_interface: Optional[str] = None,
                                                                opts: Optional[InvokeOptions] = None) -> GetIsBareMetalServerNetworkInterfaceFloatingIpsResult
    def get_is_bare_metal_server_network_interface_floating_ips_output(bare_metal_server: Optional[pulumi.Input[str]] = None,
                                                                id: Optional[pulumi.Input[str]] = None,
                                                                network_interface: Optional[pulumi.Input[str]] = None,
                                                                opts: Optional[InvokeOptions] = None) -> Output[GetIsBareMetalServerNetworkInterfaceFloatingIpsResult]
    func GetIsBareMetalServerNetworkInterfaceFloatingIps(ctx *Context, args *GetIsBareMetalServerNetworkInterfaceFloatingIpsArgs, opts ...InvokeOption) (*GetIsBareMetalServerNetworkInterfaceFloatingIpsResult, error)
    func GetIsBareMetalServerNetworkInterfaceFloatingIpsOutput(ctx *Context, args *GetIsBareMetalServerNetworkInterfaceFloatingIpsOutputArgs, opts ...InvokeOption) GetIsBareMetalServerNetworkInterfaceFloatingIpsResultOutput

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

    public static class GetIsBareMetalServerNetworkInterfaceFloatingIps 
    {
        public static Task<GetIsBareMetalServerNetworkInterfaceFloatingIpsResult> InvokeAsync(GetIsBareMetalServerNetworkInterfaceFloatingIpsArgs args, InvokeOptions? opts = null)
        public static Output<GetIsBareMetalServerNetworkInterfaceFloatingIpsResult> Invoke(GetIsBareMetalServerNetworkInterfaceFloatingIpsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsBareMetalServerNetworkInterfaceFloatingIpsResult> getIsBareMetalServerNetworkInterfaceFloatingIps(GetIsBareMetalServerNetworkInterfaceFloatingIpsArgs args, InvokeOptions options)
    public static Output<GetIsBareMetalServerNetworkInterfaceFloatingIpsResult> getIsBareMetalServerNetworkInterfaceFloatingIps(GetIsBareMetalServerNetworkInterfaceFloatingIpsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsBareMetalServerNetworkInterfaceFloatingIps:getIsBareMetalServerNetworkInterfaceFloatingIps
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BareMetalServer string
    The bare metal server id.
    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.
    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.
    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.
    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.
    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.
    networkInterface String
    The identifier of the bare metal server network interface.
    id String
    (String) The unique identifier of the floating IP.

    getIsBareMetalServerNetworkInterfaceFloatingIps Result

    The following output properties are available:

    BareMetalServer string
    FloatingIps List<GetIsBareMetalServerNetworkInterfaceFloatingIpsFloatingIp>
    (List of objects) A list of all floating ips on the network interface of the bare metal server.
    Id string
    (String) The unique identifier of the floating IP.
    NetworkInterface string
    BareMetalServer string
    FloatingIps []GetIsBareMetalServerNetworkInterfaceFloatingIpsFloatingIp
    (List of objects) A list of all floating ips on the network interface of the bare metal server.
    Id string
    (String) The unique identifier of the floating IP.
    NetworkInterface string
    bareMetalServer String
    floatingIps List<GetIsBareMetalServerNetworkInterfaceFloatingIpsFloatingIp>
    (List of objects) A list of all floating ips on the network interface of the bare metal server.
    id String
    (String) The unique identifier of the floating IP.
    networkInterface String
    bareMetalServer string
    floatingIps GetIsBareMetalServerNetworkInterfaceFloatingIpsFloatingIp[]
    (List of objects) A list of all floating ips on the network interface of the bare metal server.
    id string
    (String) The unique identifier of the floating IP.
    networkInterface string
    bare_metal_server str
    floating_ips Sequence[GetIsBareMetalServerNetworkInterfaceFloatingIpsFloatingIp]
    (List of objects) A list of all floating ips on the network interface of the bare metal server.
    id str
    (String) The unique identifier of the floating IP.
    network_interface str
    bareMetalServer String
    floatingIps List<Property Map>
    (List of objects) A list of all floating ips on the network interface of the bare metal server.
    id String
    (String) The unique identifier of the floating IP.
    networkInterface String

    Supporting Types

    GetIsBareMetalServerNetworkInterfaceFloatingIpsFloatingIp

    Address string
    (String) The floating IP address.
    Crn string
    (String) The CRN for this floating IP.
    Id string
    (String) The unique identifier of the floating IP.
    Name 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.
    Crn string
    (String) The CRN for this floating IP.
    Id string
    (String) The unique identifier of the floating IP.
    Name 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.
    crn String
    (String) The CRN for this floating IP.
    id String
    (String) The unique identifier of the floating IP.
    name 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.
    crn string
    (String) The CRN for this floating IP.
    id string
    (String) The unique identifier of the floating IP.
    name 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.
    crn str
    (String) The CRN for this floating IP.
    id str
    (String) The unique identifier of the floating IP.
    name 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.
    crn String
    (String) The CRN for this floating IP.
    id String
    (String) The unique identifier of the floating IP.
    name 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