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

ibm.getIsBareMetalServerNetworkInterfaceReservedIps

Explore with Pulumi AI

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

    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,
    });
    
    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"])
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    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}
    

    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>
    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]
    func GetIsBareMetalServerNetworkInterfaceReservedIps(ctx *Context, args *GetIsBareMetalServerNetworkInterfaceReservedIpsArgs, opts ...InvokeOption) (*GetIsBareMetalServerNetworkInterfaceReservedIpsResult, error)
    func GetIsBareMetalServerNetworkInterfaceReservedIpsOutput(ctx *Context, args *GetIsBareMetalServerNetworkInterfaceReservedIpsOutputArgs, opts ...InvokeOption) GetIsBareMetalServerNetworkInterfaceReservedIpsResultOutput

    > 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)
    }
    public static CompletableFuture<GetIsBareMetalServerNetworkInterfaceReservedIpsResult> getIsBareMetalServerNetworkInterfaceReservedIps(GetIsBareMetalServerNetworkInterfaceReservedIpsArgs args, InvokeOptions options)
    public static Output<GetIsBareMetalServerNetworkInterfaceReservedIpsResult> getIsBareMetalServerNetworkInterfaceReservedIps(GetIsBareMetalServerNetworkInterfaceReservedIpsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsBareMetalServerNetworkInterfaceReservedIps:getIsBareMetalServerNetworkInterfaceReservedIps
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BareMetalServer string
    The id for the bare metal server.
    NetworkInterface string
    The id for the network interface.
    Id string
    The id for the all the reserved ID (current timestamp)
    BareMetalServer string
    The id for the bare metal server.
    NetworkInterface string
    The id for the network interface.
    Id string
    The id for the all the reserved ID (current timestamp)
    bareMetalServer String
    The id for the bare metal server.
    networkInterface String
    The id for the network interface.
    id String
    The id for the all the reserved ID (current timestamp)
    bareMetalServer string
    The id for the bare metal server.
    networkInterface string
    The id for the network interface.
    id string
    The id for the all the reserved ID (current timestamp)
    bare_metal_server str
    The id for the bare metal server.
    network_interface str
    The id for the network interface.
    id str
    The id for the all the reserved ID (current timestamp)
    bareMetalServer String
    The id for the bare metal server.
    networkInterface 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 string
    (String) The IP bound for the reserved IP
    AutoDelete bool
    (Bool) If reserved ip shall be deleted automatically
    CreatedAt string
    (String) The date and time that the reserved IP was created
    Href string
    (String) The URL for this reserved IP
    Name string
    (String) The user-defined or system-provided name for this reserved IP
    Owner string
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
    ReservedIp string
    (String) The unique identifier for this reserved IP
    ResourceType string
    (String) The resource type
    Target string
    (String) The id for the target for the reserved IP.
    Address string
    (String) The IP bound for the reserved IP
    AutoDelete bool
    (Bool) If reserved ip shall be deleted automatically
    CreatedAt string
    (String) The date and time that the reserved IP was created
    Href string
    (String) The URL for this reserved IP
    Name string
    (String) The user-defined or system-provided name for this reserved IP
    Owner string
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
    ReservedIp string
    (String) The unique identifier for this reserved IP
    ResourceType string
    (String) The resource type
    Target string
    (String) The id for the target for the reserved IP.
    address String
    (String) The IP bound for the reserved IP
    autoDelete Boolean
    (Bool) If reserved ip shall be deleted automatically
    createdAt String
    (String) The date and time that the reserved IP was created
    href String
    (String) The URL for this reserved IP
    name String
    (String) The user-defined or system-provided name for this reserved IP
    owner String
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
    reservedIp String
    (String) The unique identifier for this reserved IP
    resourceType String
    (String) The resource type
    target String
    (String) The id for the target for the reserved IP.
    address string
    (String) The IP bound for the reserved IP
    autoDelete boolean
    (Bool) If reserved ip shall be deleted automatically
    createdAt string
    (String) The date and time that the reserved IP was created
    href string
    (String) The URL for this reserved IP
    name string
    (String) The user-defined or system-provided name for this reserved IP
    owner string
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
    reservedIp string
    (String) The unique identifier for this reserved IP
    resourceType string
    (String) The resource type
    target string
    (String) The id for the target for the reserved IP.
    address str
    (String) The IP bound for the reserved IP
    auto_delete bool
    (Bool) If reserved ip shall be deleted automatically
    created_at str
    (String) The date and time that the reserved IP was created
    href str
    (String) The URL for this reserved IP
    name str
    (String) The user-defined or system-provided name for this reserved IP
    owner str
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
    reserved_ip str
    (String) The unique identifier for this reserved IP
    resource_type str
    (String) The resource type
    target str
    (String) The id for the target for the reserved IP.
    address String
    (String) The IP bound for the reserved IP
    autoDelete Boolean
    (Bool) If reserved ip shall be deleted automatically
    createdAt String
    (String) The date and time that the reserved IP was created
    href String
    (String) The URL for this reserved IP
    name String
    (String) The user-defined or system-provided name for this reserved IP
    owner String
    (String) The owner of a reserved IP, defining whether it is managed by the user or the provider
    reservedIp String
    (String) The unique identifier for this reserved IP
    resourceType String
    (String) The resource type
    target 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud