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

ibm.getIsInstanceNetworkInterfaceReservedIps

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 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 dictionary

    The following arguments are supported:

    Instance string
    The id for the instance.
    NetworkInterface 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.
    NetworkInterface 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.
    networkInterface 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.
    networkInterface 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.
    networkInterface 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
    NetworkInterface string
    ReservedIps List<GetIsInstanceNetworkInterfaceReservedIpsReservedIp>
    The collection of all the reserved IPs in the network inetrface
    TotalCount 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
    NetworkInterface string
    ReservedIps []GetIsInstanceNetworkInterfaceReservedIpsReservedIp
    The collection of all the reserved IPs in the network inetrface
    TotalCount 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
    networkInterface String
    reservedIps List<GetIsInstanceNetworkInterfaceReservedIpsReservedIp>
    The collection of all the reserved IPs in the network inetrface
    totalCount 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
    networkInterface string
    reservedIps GetIsInstanceNetworkInterfaceReservedIpsReservedIp[]
    The collection of all the reserved IPs in the network inetrface
    totalCount 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[GetIsInstanceNetworkInterfaceReservedIpsReservedIp]
    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
    networkInterface String
    reservedIps List<Property Map>
    The collection of all the reserved IPs in the network inetrface
    totalCount 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
    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