ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getIsInstanceNetworkInterfaceReservedIps
Explore with Pulumi AI
Import the details of all the Reserved IPs in a network interface of an instance 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.getIsInstanceNetworkInterfaceReservedIps({
    instance: ibm_is_instance.test_instance.id,
    networkInterface: ibm_is_instance.test_instance.network_interfaces[0].id,
});
import pulumi
import pulumi_ibm as ibm
data_reserved_ips = ibm.get_is_instance_network_interface_reserved_ips(instance=ibm_is_instance["test_instance"]["id"],
    network_interface=ibm_is_instance["test_instance"]["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.GetIsInstanceNetworkInterfaceReservedIps(ctx, &ibm.GetIsInstanceNetworkInterfaceReservedIpsArgs{
			Instance:         ibm_is_instance.Test_instance.Id,
			NetworkInterface: ibm_is_instance.Test_instance.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.GetIsInstanceNetworkInterfaceReservedIps.Invoke(new()
    {
        Instance = ibm_is_instance.Test_instance.Id,
        NetworkInterface = ibm_is_instance.Test_instance.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.GetIsInstanceNetworkInterfaceReservedIpsArgs;
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.getIsInstanceNetworkInterfaceReservedIps(GetIsInstanceNetworkInterfaceReservedIpsArgs.builder()
            .instance(ibm_is_instance.test_instance().id())
            .networkInterface(ibm_is_instance.test_instance().network_interfaces()[0].id())
            .build());
    }
}
variables:
  dataReservedIps:
    fn::invoke:
      function: ibm:getIsInstanceNetworkInterfaceReservedIps
      arguments:
        instance: ${ibm_is_instance.test_instance.id}
        networkInterface: ${ibm_is_instance.test_instance.network_interfaces[0].id}
Using getIsInstanceNetworkInterfaceReservedIps
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 getIsInstanceNetworkInterfaceReservedIps(args: GetIsInstanceNetworkInterfaceReservedIpsArgs, opts?: InvokeOptions): Promise<GetIsInstanceNetworkInterfaceReservedIpsResult>
function getIsInstanceNetworkInterfaceReservedIpsOutput(args: GetIsInstanceNetworkInterfaceReservedIpsOutputArgs, opts?: InvokeOptions): Output<GetIsInstanceNetworkInterfaceReservedIpsResult>def get_is_instance_network_interface_reserved_ips(id: Optional[str] = None,
                                                   instance: Optional[str] = None,
                                                   network_interface: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetIsInstanceNetworkInterfaceReservedIpsResult
def get_is_instance_network_interface_reserved_ips_output(id: Optional[pulumi.Input[str]] = None,
                                                   instance: Optional[pulumi.Input[str]] = None,
                                                   network_interface: Optional[pulumi.Input[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetIsInstanceNetworkInterfaceReservedIpsResult]func GetIsInstanceNetworkInterfaceReservedIps(ctx *Context, args *GetIsInstanceNetworkInterfaceReservedIpsArgs, opts ...InvokeOption) (*GetIsInstanceNetworkInterfaceReservedIpsResult, error)
func GetIsInstanceNetworkInterfaceReservedIpsOutput(ctx *Context, args *GetIsInstanceNetworkInterfaceReservedIpsOutputArgs, opts ...InvokeOption) GetIsInstanceNetworkInterfaceReservedIpsResultOutput> Note: This function is named GetIsInstanceNetworkInterfaceReservedIps in the Go SDK.
public static class GetIsInstanceNetworkInterfaceReservedIps 
{
    public static Task<GetIsInstanceNetworkInterfaceReservedIpsResult> InvokeAsync(GetIsInstanceNetworkInterfaceReservedIpsArgs args, InvokeOptions? opts = null)
    public static Output<GetIsInstanceNetworkInterfaceReservedIpsResult> Invoke(GetIsInstanceNetworkInterfaceReservedIpsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIsInstanceNetworkInterfaceReservedIpsResult> getIsInstanceNetworkInterfaceReservedIps(GetIsInstanceNetworkInterfaceReservedIpsArgs args, InvokeOptions options)
public static Output<GetIsInstanceNetworkInterfaceReservedIpsResult> getIsInstanceNetworkInterfaceReservedIps(GetIsInstanceNetworkInterfaceReservedIpsArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getIsInstanceNetworkInterfaceReservedIps:getIsInstanceNetworkInterfaceReservedIps
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance string
 - The id for the instance.
 - Network
Interface string - The id for the network interface.
 - Id string
 - The id for the all the reserved ID (current timestamp)
 
- Instance string
 - The id for the instance.
 - Network
Interface string - The id for the network interface.
 - Id string
 - The id for the all the reserved ID (current timestamp)
 
- instance String
 - The id for the instance.
 - network
Interface String - The id for the network interface.
 - id String
 - The id for the all the reserved ID (current timestamp)
 
- instance string
 - The id for the instance.
 - network
Interface string - The id for the network interface.
 - id string
 - The id for the all the reserved ID (current timestamp)
 
- instance str
 - The id for the instance.
 - network_
interface str - The id for the network interface.
 - id str
 - The id for the all the reserved ID (current timestamp)
 
- instance String
 - The id for the instance.
 - network
Interface String - The id for the network interface.
 - id String
 - The id for the all the reserved ID (current timestamp)
 
getIsInstanceNetworkInterfaceReservedIps Result
The following output properties are available:
- Id string
 - The id for the all the reserved ID (current timestamp)
 - Instance string
 - Network
Interface string - Reserved
Ips List<GetIs Instance Network Interface Reserved Ips Reserved Ip>  - The collection of all the reserved IPs in the network inetrface
 - Total
Count double - The number of reserved IP in the network interface of the instance
 
- Id string
 - The id for the all the reserved ID (current timestamp)
 - Instance string
 - Network
Interface string - Reserved
Ips []GetIs Instance Network Interface Reserved Ips Reserved Ip  - The collection of all the reserved IPs in the network inetrface
 - Total
Count float64 - The number of reserved IP in the network interface of the instance
 
- id String
 - The id for the all the reserved ID (current timestamp)
 - instance String
 - network
Interface String - reserved
Ips List<GetIs Instance Network Interface Reserved Ips Reserved Ip>  - The collection of all the reserved IPs in the network inetrface
 - total
Count Double - The number of reserved IP in the network interface of the instance
 
- id string
 - The id for the all the reserved ID (current timestamp)
 - instance string
 - network
Interface string - reserved
Ips GetIs Instance Network Interface Reserved Ips Reserved Ip[]  - The collection of all the reserved IPs in the network inetrface
 - total
Count number - The number of reserved IP in the network interface of the instance
 
- id str
 - The id for the all the reserved ID (current timestamp)
 - instance str
 - network_
interface str - reserved_
ips Sequence[GetIs Instance Network Interface Reserved Ips Reserved Ip]  - The collection of all the reserved IPs in the network inetrface
 - total_
count float - The number of reserved IP in the network interface of the instance
 
- id String
 - The id for the all the reserved ID (current timestamp)
 - instance String
 - network
Interface String - reserved
Ips List<Property Map> - The collection of all the reserved IPs in the network inetrface
 - total
Count Number - The number of reserved IP in the network interface of the instance
 
Supporting Types
GetIsInstanceNetworkInterfaceReservedIpsReservedIp        
- Address string
 - (String) The IP bound for the reserved IP
 - Auto
Delete bool - (Bool) If reserved ip shall be deleted automatically
 - Created
At 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
 - Reserved
Ip string - (String) The unique identifier for this reserved IP
 - Resource
Type 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
 - Auto
Delete bool - (Bool) If reserved ip shall be deleted automatically
 - Created
At 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
 - Reserved
Ip string - (String) The unique identifier for this reserved IP
 - Resource
Type 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
 - auto
Delete Boolean - (Bool) If reserved ip shall be deleted automatically
 - created
At 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
 - reserved
Ip String - (String) The unique identifier for this reserved IP
 - resource
Type 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
 - auto
Delete boolean - (Bool) If reserved ip shall be deleted automatically
 - created
At 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
 - reserved
Ip string - (String) The unique identifier for this reserved IP
 - resource
Type 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
 - auto
Delete Boolean - (Bool) If reserved ip shall be deleted automatically
 - created
At 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
 - reserved
Ip String - (String) The unique identifier for this reserved IP
 - resource
Type 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 
ibmTerraform Provider.