1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsBareMetalServerNetworkInterfaceReservedIps
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getIsBareMetalServerNetworkInterfaceReservedIps

Explore with Pulumi AI

Import the details of all the Reserved IPs in a network interface of an bare metal server as a read-only data source. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const dataReservedIps = ibm.getIsBareMetalServerNetworkInterfaceReservedIps({
    bareMetalServer: ibm_is_bare_metal_server.test_bare_metal_server.id,
    networkInterface: ibm_is_bare_metal_server.test_bare_metal_server.network_interfaces[0].id,
});
Copy
import pulumi
import pulumi_ibm as ibm

data_reserved_ips = ibm.get_is_bare_metal_server_network_interface_reserved_ips(bare_metal_server=ibm_is_bare_metal_server["test_bare_metal_server"]["id"],
    network_interface=ibm_is_bare_metal_server["test_bare_metal_server"]["network_interfaces"][0]["id"])
Copy
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.GetIsBareMetalServerNetworkInterfaceReservedIps(ctx, &ibm.GetIsBareMetalServerNetworkInterfaceReservedIpsArgs{
			BareMetalServer:  ibm_is_bare_metal_server.Test_bare_metal_server.Id,
			NetworkInterface: ibm_is_bare_metal_server.Test_bare_metal_server.Network_interfaces[0].Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var dataReservedIps = Ibm.GetIsBareMetalServerNetworkInterfaceReservedIps.Invoke(new()
    {
        BareMetalServer = ibm_is_bare_metal_server.Test_bare_metal_server.Id,
        NetworkInterface = ibm_is_bare_metal_server.Test_bare_metal_server.Network_interfaces[0].Id,
    });

});
Copy
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.GetIsBareMetalServerNetworkInterfaceReservedIpsArgs;
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 dataReservedIps = IbmFunctions.getIsBareMetalServerNetworkInterfaceReservedIps(GetIsBareMetalServerNetworkInterfaceReservedIpsArgs.builder()
            .bareMetalServer(ibm_is_bare_metal_server.test_bare_metal_server().id())
            .networkInterface(ibm_is_bare_metal_server.test_bare_metal_server().network_interfaces()[0].id())
            .build());

    }
}
Copy
variables:
  dataReservedIps:
    fn::invoke:
      function: ibm:getIsBareMetalServerNetworkInterfaceReservedIps
      arguments:
        bareMetalServer: ${ibm_is_bare_metal_server.test_bare_metal_server.id}
        networkInterface: ${ibm_is_bare_metal_server.test_bare_metal_server.network_interfaces[0].id}
Copy

Using getIsBareMetalServerNetworkInterfaceReservedIps

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 getIsBareMetalServerNetworkInterfaceReservedIps(args: GetIsBareMetalServerNetworkInterfaceReservedIpsArgs, opts?: InvokeOptions): Promise<GetIsBareMetalServerNetworkInterfaceReservedIpsResult>
function getIsBareMetalServerNetworkInterfaceReservedIpsOutput(args: GetIsBareMetalServerNetworkInterfaceReservedIpsOutputArgs, opts?: InvokeOptions): Output<GetIsBareMetalServerNetworkInterfaceReservedIpsResult>
Copy
def get_is_bare_metal_server_network_interface_reserved_ips(bare_metal_server: Optional[str] = None,
                                                            id: Optional[str] = None,
                                                            network_interface: Optional[str] = None,
                                                            opts: Optional[InvokeOptions] = None) -> GetIsBareMetalServerNetworkInterfaceReservedIpsResult
def get_is_bare_metal_server_network_interface_reserved_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[GetIsBareMetalServerNetworkInterfaceReservedIpsResult]
Copy
func GetIsBareMetalServerNetworkInterfaceReservedIps(ctx *Context, args *GetIsBareMetalServerNetworkInterfaceReservedIpsArgs, opts ...InvokeOption) (*GetIsBareMetalServerNetworkInterfaceReservedIpsResult, error)
func GetIsBareMetalServerNetworkInterfaceReservedIpsOutput(ctx *Context, args *GetIsBareMetalServerNetworkInterfaceReservedIpsOutputArgs, opts ...InvokeOption) GetIsBareMetalServerNetworkInterfaceReservedIpsResultOutput
Copy

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

public static class GetIsBareMetalServerNetworkInterfaceReservedIps 
{
    public static Task<GetIsBareMetalServerNetworkInterfaceReservedIpsResult> InvokeAsync(GetIsBareMetalServerNetworkInterfaceReservedIpsArgs args, InvokeOptions? opts = null)
    public static Output<GetIsBareMetalServerNetworkInterfaceReservedIpsResult> Invoke(GetIsBareMetalServerNetworkInterfaceReservedIpsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIsBareMetalServerNetworkInterfaceReservedIpsResult> getIsBareMetalServerNetworkInterfaceReservedIps(GetIsBareMetalServerNetworkInterfaceReservedIpsArgs args, InvokeOptions options)
public static Output<GetIsBareMetalServerNetworkInterfaceReservedIpsResult> getIsBareMetalServerNetworkInterfaceReservedIps(GetIsBareMetalServerNetworkInterfaceReservedIpsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getIsBareMetalServerNetworkInterfaceReservedIps:getIsBareMetalServerNetworkInterfaceReservedIps
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

BareMetalServer This property is required. string
The id for the bare metal server.
NetworkInterface This property is required. string
The id for the network interface.
Id string
The id for the all the reserved ID (current timestamp)
BareMetalServer This property is required. string
The id for the bare metal server.
NetworkInterface This property is required. string
The id for the network interface.
Id string
The id for the all the reserved ID (current timestamp)
bareMetalServer This property is required. String
The id for the bare metal server.
networkInterface This property is required. String
The id for the network interface.
id String
The id for the all the reserved ID (current timestamp)
bareMetalServer This property is required. string
The id for the bare metal server.
networkInterface This property is required. string
The id for the network interface.
id string
The id for the all the reserved ID (current timestamp)
bare_metal_server This property is required. str
The id for the bare metal server.
network_interface This property is required. str
The id for the network interface.
id str
The id for the all the reserved ID (current timestamp)
bareMetalServer This property is required. String
The id for the bare metal server.
networkInterface This property is required. String
The id for the network interface.
id String
The id for the all the reserved ID (current timestamp)

getIsBareMetalServerNetworkInterfaceReservedIps Result

The following output properties are available:

BareMetalServer string
Id string
The id for the all the reserved ID (current timestamp)
NetworkInterface string
ReservedIps List<GetIsBareMetalServerNetworkInterfaceReservedIpsReservedIp>
The collection of all the reserved IPs in the network interface
TotalCount double
The number of reserved IP in the network interface of the bare metal server
BareMetalServer string
Id string
The id for the all the reserved ID (current timestamp)
NetworkInterface string
ReservedIps []GetIsBareMetalServerNetworkInterfaceReservedIpsReservedIp
The collection of all the reserved IPs in the network interface
TotalCount float64
The number of reserved IP in the network interface of the bare metal server
bareMetalServer String
id String
The id for the all the reserved ID (current timestamp)
networkInterface String
reservedIps List<GetIsBareMetalServerNetworkInterfaceReservedIpsReservedIp>
The collection of all the reserved IPs in the network interface
totalCount Double
The number of reserved IP in the network interface of the bare metal server
bareMetalServer string
id string
The id for the all the reserved ID (current timestamp)
networkInterface string
reservedIps GetIsBareMetalServerNetworkInterfaceReservedIpsReservedIp[]
The collection of all the reserved IPs in the network interface
totalCount number
The number of reserved IP in the network interface of the bare metal server
bare_metal_server str
id str
The id for the all the reserved ID (current timestamp)
network_interface str
reserved_ips Sequence[GetIsBareMetalServerNetworkInterfaceReservedIpsReservedIp]
The collection of all the reserved IPs in the network interface
total_count float
The number of reserved IP in the network interface of the bare metal server
bareMetalServer String
id String
The id for the all the reserved ID (current timestamp)
networkInterface String
reservedIps List<Property Map>
The collection of all the reserved IPs in the network interface
totalCount Number
The number of reserved IP in the network interface of the bare metal server

Supporting Types

GetIsBareMetalServerNetworkInterfaceReservedIpsReservedIp

Address This property is required. string
(String) The IP bound for the reserved IP
AutoDelete This property is required. bool
(Bool) If reserved ip shall be deleted automatically
CreatedAt This property is required. string
(String) The date and time that the reserved IP was created
Href This property is required. string
(String) The URL for this reserved IP
Name This property is required. string
(String) The user-defined or system-provided name for this reserved IP
Owner This property is required. string
(String) The owner of a reserved IP, defining whether it is managed by the user or the provider
ReservedIp This property is required. string
(String) The unique identifier for this reserved IP
ResourceType This property is required. string
(String) The resource type
Target This property is required. string
(String) The id for the target for the reserved IP.
Address This property is required. string
(String) The IP bound for the reserved IP
AutoDelete This property is required. bool
(Bool) If reserved ip shall be deleted automatically
CreatedAt This property is required. string
(String) The date and time that the reserved IP was created
Href This property is required. string
(String) The URL for this reserved IP
Name This property is required. string
(String) The user-defined or system-provided name for this reserved IP
Owner This property is required. string
(String) The owner of a reserved IP, defining whether it is managed by the user or the provider
ReservedIp This property is required. string
(String) The unique identifier for this reserved IP
ResourceType This property is required. string
(String) The resource type
Target This property is required. string
(String) The id for the target for the reserved IP.
address This property is required. String
(String) The IP bound for the reserved IP
autoDelete This property is required. Boolean
(Bool) If reserved ip shall be deleted automatically
createdAt This property is required. String
(String) The date and time that the reserved IP was created
href This property is required. String
(String) The URL for this reserved IP
name This property is required. String
(String) The user-defined or system-provided name for this reserved IP
owner This property is required. String
(String) The owner of a reserved IP, defining whether it is managed by the user or the provider
reservedIp This property is required. String
(String) The unique identifier for this reserved IP
resourceType This property is required. String
(String) The resource type
target This property is required. String
(String) The id for the target for the reserved IP.
address This property is required. string
(String) The IP bound for the reserved IP
autoDelete This property is required. boolean
(Bool) If reserved ip shall be deleted automatically
createdAt This property is required. string
(String) The date and time that the reserved IP was created
href This property is required. string
(String) The URL for this reserved IP
name This property is required. string
(String) The user-defined or system-provided name for this reserved IP
owner This property is required. string
(String) The owner of a reserved IP, defining whether it is managed by the user or the provider
reservedIp This property is required. string
(String) The unique identifier for this reserved IP
resourceType This property is required. string
(String) The resource type
target This property is required. string
(String) The id for the target for the reserved IP.
address This property is required. str
(String) The IP bound for the reserved IP
auto_delete This property is required. bool
(Bool) If reserved ip shall be deleted automatically
created_at This property is required. str
(String) The date and time that the reserved IP was created
href This property is required. str
(String) The URL for this reserved IP
name This property is required. str
(String) The user-defined or system-provided name for this reserved IP
owner This property is required. str
(String) The owner of a reserved IP, defining whether it is managed by the user or the provider
reserved_ip This property is required. str
(String) The unique identifier for this reserved IP
resource_type This property is required. str
(String) The resource type
target This property is required. str
(String) The id for the target for the reserved IP.
address This property is required. String
(String) The IP bound for the reserved IP
autoDelete This property is required. Boolean
(Bool) If reserved ip shall be deleted automatically
createdAt This property is required. String
(String) The date and time that the reserved IP was created
href This property is required. String
(String) The URL for this reserved IP
name This property is required. String
(String) The user-defined or system-provided name for this reserved IP
owner This property is required. String
(String) The owner of a reserved IP, defining whether it is managed by the user or the provider
reservedIp This property is required. String
(String) The unique identifier for this reserved IP
resourceType This property is required. String
(String) The resource type
target This property is required. String
(String) The id for the target for the reserved IP.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.