ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getIsInstanceNetworkInterfaceReservedIp
Explore with Pulumi AI
Import the details of an existing Reserved IP 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 dataReservedIp = ibm.getIsInstanceNetworkInterfaceReservedIp({
instance: ibm_is_instance.test_instance.id,
networkInterface: ibm_is_instance.test_instance.network_interfaces[0].id,
reservedIp: ibm_is_instance.test_instance.network_interfaces[0].ips[0].id,
});
import pulumi
import pulumi_ibm as ibm
data_reserved_ip = ibm.get_is_instance_network_interface_reserved_ip(instance=ibm_is_instance["test_instance"]["id"],
network_interface=ibm_is_instance["test_instance"]["network_interfaces"][0]["id"],
reserved_ip=ibm_is_instance["test_instance"]["network_interfaces"][0]["ips"][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.GetIsInstanceNetworkInterfaceReservedIp(ctx, &ibm.GetIsInstanceNetworkInterfaceReservedIpArgs{
Instance: ibm_is_instance.Test_instance.Id,
NetworkInterface: ibm_is_instance.Test_instance.Network_interfaces[0].Id,
ReservedIp: ibm_is_instance.Test_instance.Network_interfaces[0].Ips[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 dataReservedIp = Ibm.GetIsInstanceNetworkInterfaceReservedIp.Invoke(new()
{
Instance = ibm_is_instance.Test_instance.Id,
NetworkInterface = ibm_is_instance.Test_instance.Network_interfaces[0].Id,
ReservedIp = ibm_is_instance.Test_instance.Network_interfaces[0].Ips[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.GetIsInstanceNetworkInterfaceReservedIpArgs;
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 dataReservedIp = IbmFunctions.getIsInstanceNetworkInterfaceReservedIp(GetIsInstanceNetworkInterfaceReservedIpArgs.builder()
.instance(ibm_is_instance.test_instance().id())
.networkInterface(ibm_is_instance.test_instance().network_interfaces()[0].id())
.reservedIp(ibm_is_instance.test_instance().network_interfaces()[0].ips()[0].id())
.build());
}
}
variables:
dataReservedIp:
fn::invoke:
function: ibm:getIsInstanceNetworkInterfaceReservedIp
arguments:
instance: ${ibm_is_instance.test_instance.id}
networkInterface: ${ibm_is_instance.test_instance.network_interfaces[0].id}
reservedIp: ${ibm_is_instance.test_instance.network_interfaces[0].ips[0].id}
Using getIsInstanceNetworkInterfaceReservedIp
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 getIsInstanceNetworkInterfaceReservedIp(args: GetIsInstanceNetworkInterfaceReservedIpArgs, opts?: InvokeOptions): Promise<GetIsInstanceNetworkInterfaceReservedIpResult>
function getIsInstanceNetworkInterfaceReservedIpOutput(args: GetIsInstanceNetworkInterfaceReservedIpOutputArgs, opts?: InvokeOptions): Output<GetIsInstanceNetworkInterfaceReservedIpResult>
def get_is_instance_network_interface_reserved_ip(id: Optional[str] = None,
instance: Optional[str] = None,
network_interface: Optional[str] = None,
reserved_ip: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsInstanceNetworkInterfaceReservedIpResult
def get_is_instance_network_interface_reserved_ip_output(id: Optional[pulumi.Input[str]] = None,
instance: Optional[pulumi.Input[str]] = None,
network_interface: Optional[pulumi.Input[str]] = None,
reserved_ip: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsInstanceNetworkInterfaceReservedIpResult]
func GetIsInstanceNetworkInterfaceReservedIp(ctx *Context, args *GetIsInstanceNetworkInterfaceReservedIpArgs, opts ...InvokeOption) (*GetIsInstanceNetworkInterfaceReservedIpResult, error)
func GetIsInstanceNetworkInterfaceReservedIpOutput(ctx *Context, args *GetIsInstanceNetworkInterfaceReservedIpOutputArgs, opts ...InvokeOption) GetIsInstanceNetworkInterfaceReservedIpResultOutput
> Note: This function is named GetIsInstanceNetworkInterfaceReservedIp
in the Go SDK.
public static class GetIsInstanceNetworkInterfaceReservedIp
{
public static Task<GetIsInstanceNetworkInterfaceReservedIpResult> InvokeAsync(GetIsInstanceNetworkInterfaceReservedIpArgs args, InvokeOptions? opts = null)
public static Output<GetIsInstanceNetworkInterfaceReservedIpResult> Invoke(GetIsInstanceNetworkInterfaceReservedIpInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsInstanceNetworkInterfaceReservedIpResult> getIsInstanceNetworkInterfaceReservedIp(GetIsInstanceNetworkInterfaceReservedIpArgs args, InvokeOptions options)
public static Output<GetIsInstanceNetworkInterfaceReservedIpResult> getIsInstanceNetworkInterfaceReservedIp(GetIsInstanceNetworkInterfaceReservedIpArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsInstanceNetworkInterfaceReservedIp:getIsInstanceNetworkInterfaceReservedIp
arguments:
# arguments dictionary
The following arguments are supported:
- Instance string
- The id for the instance.
- Network
Interface string - The id for the network interface.
- Reserved
Ip string - The id for the Reserved IP.
- Id string
- (String) The id for the reserved IP
- Instance string
- The id for the instance.
- Network
Interface string - The id for the network interface.
- Reserved
Ip string - The id for the Reserved IP.
- Id string
- (String) The id for the reserved IP
- instance String
- The id for the instance.
- network
Interface String - The id for the network interface.
- reserved
Ip String - The id for the Reserved IP.
- id String
- (String) The id for the reserved IP
- instance string
- The id for the instance.
- network
Interface string - The id for the network interface.
- reserved
Ip string - The id for the Reserved IP.
- id string
- (String) The id for the reserved IP
- instance str
- The id for the instance.
- network_
interface str - The id for the network interface.
- reserved_
ip str - The id for the Reserved IP.
- id str
- (String) The id for the reserved IP
- instance String
- The id for the instance.
- network
Interface String - The id for the network interface.
- reserved
Ip String - The id for the Reserved IP.
- id String
- (String) The id for the reserved IP
getIsInstanceNetworkInterfaceReservedIp Result
The following output properties are available:
- Address string
- Auto
Delete bool - (String) The auto_delete boolean for reserved IP
- Created
At string - (String) The creation timestamp for the reserved IP
- Href string
- (String) The unique reference for the reserved IP
- Id string
- (String) The id for the reserved IP
- Instance string
- Name string
- (String) The name for the reserved IP
- Network
Interface string - Owner string
- (String) The owner of the reserved IP
- Reserved
Ip string - (String) Same as
id
- Resource
Type string - (String) The type of resource
- Target string
- (String) The id for the target for the reserved IP
- Address string
- Auto
Delete bool - (String) The auto_delete boolean for reserved IP
- Created
At string - (String) The creation timestamp for the reserved IP
- Href string
- (String) The unique reference for the reserved IP
- Id string
- (String) The id for the reserved IP
- Instance string
- Name string
- (String) The name for the reserved IP
- Network
Interface string - Owner string
- (String) The owner of the reserved IP
- Reserved
Ip string - (String) Same as
id
- Resource
Type string - (String) The type of resource
- Target string
- (String) The id for the target for the reserved IP
- address String
- auto
Delete Boolean - (String) The auto_delete boolean for reserved IP
- created
At String - (String) The creation timestamp for the reserved IP
- href String
- (String) The unique reference for the reserved IP
- id String
- (String) The id for the reserved IP
- instance String
- name String
- (String) The name for the reserved IP
- network
Interface String - owner String
- (String) The owner of the reserved IP
- reserved
Ip String - (String) Same as
id
- resource
Type String - (String) The type of resource
- target String
- (String) The id for the target for the reserved IP
- address string
- auto
Delete boolean - (String) The auto_delete boolean for reserved IP
- created
At string - (String) The creation timestamp for the reserved IP
- href string
- (String) The unique reference for the reserved IP
- id string
- (String) The id for the reserved IP
- instance string
- name string
- (String) The name for the reserved IP
- network
Interface string - owner string
- (String) The owner of the reserved IP
- reserved
Ip string - (String) Same as
id
- resource
Type string - (String) The type of resource
- target string
- (String) The id for the target for the reserved IP
- address str
- auto_
delete bool - (String) The auto_delete boolean for reserved IP
- created_
at str - (String) The creation timestamp for the reserved IP
- href str
- (String) The unique reference for the reserved IP
- id str
- (String) The id for the reserved IP
- instance str
- name str
- (String) The name for the reserved IP
- network_
interface str - owner str
- (String) The owner of the reserved IP
- reserved_
ip str - (String) Same as
id
- resource_
type str - (String) The type of resource
- target str
- (String) The id for the target for the reserved IP
- address String
- auto
Delete Boolean - (String) The auto_delete boolean for reserved IP
- created
At String - (String) The creation timestamp for the reserved IP
- href String
- (String) The unique reference for the reserved IP
- id String
- (String) The id for the reserved IP
- instance String
- name String
- (String) The name for the reserved IP
- network
Interface String - owner String
- (String) The owner of the reserved IP
- reserved
Ip String - (String) Same as
id
- resource
Type String - (String) The type of resource
- 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.