ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getIsVirtualNetworkInterfaceIp
Explore with Pulumi AI
Provides a read-only data source to retrieve information about a Virtual Network Interface Reserved Ip. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const isReservedIp = ibm.getIsVirtualNetworkInterfaceIp({
reservedIp: "id",
virtualNetworkInterface: ibm_is_virtual_network_interface_ip.is_reserved_ip.subnet_id,
});
import pulumi
import pulumi_ibm as ibm
is_reserved_ip = ibm.get_is_virtual_network_interface_ip(reserved_ip="id",
virtual_network_interface=ibm_is_virtual_network_interface_ip["is_reserved_ip"]["subnet_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.LookupIsVirtualNetworkInterfaceIp(ctx, &ibm.LookupIsVirtualNetworkInterfaceIpArgs{
ReservedIp: "id",
VirtualNetworkInterface: ibm_is_virtual_network_interface_ip.Is_reserved_ip.Subnet_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 isReservedIp = Ibm.GetIsVirtualNetworkInterfaceIp.Invoke(new()
{
ReservedIp = "id",
VirtualNetworkInterface = ibm_is_virtual_network_interface_ip.Is_reserved_ip.Subnet_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.GetIsVirtualNetworkInterfaceIpArgs;
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 isReservedIp = IbmFunctions.getIsVirtualNetworkInterfaceIp(GetIsVirtualNetworkInterfaceIpArgs.builder()
.reservedIp("id")
.virtualNetworkInterface(ibm_is_virtual_network_interface_ip.is_reserved_ip().subnet_id())
.build());
}
}
variables:
isReservedIp:
fn::invoke:
function: ibm:getIsVirtualNetworkInterfaceIp
arguments:
reservedIp: id
virtualNetworkInterface: ${ibm_is_virtual_network_interface_ip.is_reserved_ip.subnet_id}
Using getIsVirtualNetworkInterfaceIp
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 getIsVirtualNetworkInterfaceIp(args: GetIsVirtualNetworkInterfaceIpArgs, opts?: InvokeOptions): Promise<GetIsVirtualNetworkInterfaceIpResult>
function getIsVirtualNetworkInterfaceIpOutput(args: GetIsVirtualNetworkInterfaceIpOutputArgs, opts?: InvokeOptions): Output<GetIsVirtualNetworkInterfaceIpResult>
def get_is_virtual_network_interface_ip(reserved_ip: Optional[str] = None,
virtual_network_interface: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsVirtualNetworkInterfaceIpResult
def get_is_virtual_network_interface_ip_output(reserved_ip: Optional[pulumi.Input[str]] = None,
virtual_network_interface: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsVirtualNetworkInterfaceIpResult]
func LookupIsVirtualNetworkInterfaceIp(ctx *Context, args *LookupIsVirtualNetworkInterfaceIpArgs, opts ...InvokeOption) (*LookupIsVirtualNetworkInterfaceIpResult, error)
func LookupIsVirtualNetworkInterfaceIpOutput(ctx *Context, args *LookupIsVirtualNetworkInterfaceIpOutputArgs, opts ...InvokeOption) LookupIsVirtualNetworkInterfaceIpResultOutput
> Note: This function is named LookupIsVirtualNetworkInterfaceIp
in the Go SDK.
public static class GetIsVirtualNetworkInterfaceIp
{
public static Task<GetIsVirtualNetworkInterfaceIpResult> InvokeAsync(GetIsVirtualNetworkInterfaceIpArgs args, InvokeOptions? opts = null)
public static Output<GetIsVirtualNetworkInterfaceIpResult> Invoke(GetIsVirtualNetworkInterfaceIpInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsVirtualNetworkInterfaceIpResult> getIsVirtualNetworkInterfaceIp(GetIsVirtualNetworkInterfaceIpArgs args, InvokeOptions options)
public static Output<GetIsVirtualNetworkInterfaceIpResult> getIsVirtualNetworkInterfaceIp(GetIsVirtualNetworkInterfaceIpArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsVirtualNetworkInterfaceIp:getIsVirtualNetworkInterfaceIp
arguments:
# arguments dictionary
The following arguments are supported:
- Reserved
Ip string - The reserved IP identifier.
- Virtual
Network stringInterface - The virtual network interface identifier.
- Reserved
Ip string - The reserved IP identifier.
- Virtual
Network stringInterface - The virtual network interface identifier.
- reserved
Ip String - The reserved IP identifier.
- virtual
Network StringInterface - The virtual network interface identifier.
- reserved
Ip string - The reserved IP identifier.
- virtual
Network stringInterface - The virtual network interface identifier.
- reserved_
ip str - The reserved IP identifier.
- virtual_
network_ strinterface - The virtual network interface identifier.
- reserved
Ip String - The reserved IP identifier.
- virtual
Network StringInterface - The virtual network interface identifier.
getIsVirtualNetworkInterfaceIp Result
The following output properties are available:
- Address string
- (String) The IP address.If the address has not yet been selected, the value will be
0.0.0.0
.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered. - Href string
- (String) The URL for this reserved IP.
- Id string
- (String) The unique identifier for this reserved IP.
- Name string
- (String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- Reserved
Ip string - Resource
Type string - (String) The resource type.
- Virtual
Network stringInterface
- Address string
- (String) The IP address.If the address has not yet been selected, the value will be
0.0.0.0
.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered. - Href string
- (String) The URL for this reserved IP.
- Id string
- (String) The unique identifier for this reserved IP.
- Name string
- (String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- Reserved
Ip string - Resource
Type string - (String) The resource type.
- Virtual
Network stringInterface
- address String
- (String) The IP address.If the address has not yet been selected, the value will be
0.0.0.0
.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered. - href String
- (String) The URL for this reserved IP.
- id String
- (String) The unique identifier for this reserved IP.
- name String
- (String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- reserved
Ip String - resource
Type String - (String) The resource type.
- virtual
Network StringInterface
- address string
- (String) The IP address.If the address has not yet been selected, the value will be
0.0.0.0
.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered. - href string
- (String) The URL for this reserved IP.
- id string
- (String) The unique identifier for this reserved IP.
- name string
- (String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- reserved
Ip string - resource
Type string - (String) The resource type.
- virtual
Network stringInterface
- address str
- (String) The IP address.If the address has not yet been selected, the value will be
0.0.0.0
.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered. - href str
- (String) The URL for this reserved IP.
- id str
- (String) The unique identifier for this reserved IP.
- name str
- (String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- reserved_
ip str - resource_
type str - (String) The resource type.
- virtual_
network_ strinterface
- address String
- (String) The IP address.If the address has not yet been selected, the value will be
0.0.0.0
.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered. - href String
- (String) The URL for this reserved IP.
- id String
- (String) The unique identifier for this reserved IP.
- name String
- (String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- reserved
Ip String - resource
Type String - (String) The resource type.
- virtual
Network StringInterface
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.