ibm.getIsBareMetalServerNetworkInterfaceFloatingIps
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 dictionaryThe following arguments are supported:
- BareMetal stringServer 
- 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.
- BareMetal stringServer 
- 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.
- bareMetal StringServer 
- 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.
- bareMetal stringServer 
- 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_ strserver 
- 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.
- bareMetal StringServer 
- 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:
- BareMetal stringServer 
- FloatingIps List<GetIs Bare Metal Server Network Interface Floating Ips Floating Ip> 
- (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
- BareMetal stringServer 
- FloatingIps []GetIs Bare Metal Server Network Interface Floating Ips Floating Ip 
- (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
- bareMetal StringServer 
- floatingIps List<GetIs Bare Metal Server Network Interface Floating Ips Floating Ip> 
- (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
- bareMetal stringServer 
- floatingIps GetIs Bare Metal Server Network Interface Floating Ips Floating Ip[] 
- (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_ strserver 
- floating_ips Sequence[GetIs Bare Metal Server Network Interface Floating Ips Floating Ip] 
- (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
- bareMetal StringServer 
- 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 ibmTerraform Provider.
