1. Packages
  2. Ibm Provider
  3. API Docs
  4. IsVirtualNetworkInterfaceIp
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.IsVirtualNetworkInterfaceIp

Explore with Pulumi AI

Create, update, and delete ReservedIP virtual network instance attachment with this resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const isReservedIpInstance = new ibm.IsVirtualNetworkInterfaceIp("isReservedIpInstance", {
    reservedIp: ibm_is_subnet_reserved_ip.example.reserved_ip,
    virtualNetworkInterface: ibm_is_virtual_network_interface.example.id,
});
Copy
import pulumi
import pulumi_ibm as ibm

is_reserved_ip_instance = ibm.IsVirtualNetworkInterfaceIp("isReservedIpInstance",
    reserved_ip=ibm_is_subnet_reserved_ip["example"]["reserved_ip"],
    virtual_network_interface=ibm_is_virtual_network_interface["example"]["id"])
Copy
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.NewIsVirtualNetworkInterfaceIp(ctx, "isReservedIpInstance", &ibm.IsVirtualNetworkInterfaceIpArgs{
			ReservedIp:              pulumi.Any(ibm_is_subnet_reserved_ip.Example.Reserved_ip),
			VirtualNetworkInterface: pulumi.Any(ibm_is_virtual_network_interface.Example.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var isReservedIpInstance = new Ibm.IsVirtualNetworkInterfaceIp("isReservedIpInstance", new()
    {
        ReservedIp = ibm_is_subnet_reserved_ip.Example.Reserved_ip,
        VirtualNetworkInterface = ibm_is_virtual_network_interface.Example.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsVirtualNetworkInterfaceIp;
import com.pulumi.ibm.IsVirtualNetworkInterfaceIpArgs;
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) {
        var isReservedIpInstance = new IsVirtualNetworkInterfaceIp("isReservedIpInstance", IsVirtualNetworkInterfaceIpArgs.builder()
            .reservedIp(ibm_is_subnet_reserved_ip.example().reserved_ip())
            .virtualNetworkInterface(ibm_is_virtual_network_interface.example().id())
            .build());

    }
}
Copy
resources:
  isReservedIpInstance:
    type: ibm:IsVirtualNetworkInterfaceIp
    properties:
      reservedIp: ${ibm_is_subnet_reserved_ip.example.reserved_ip}
      virtualNetworkInterface: ${ibm_is_virtual_network_interface.example.id}
Copy

Create IsVirtualNetworkInterfaceIp Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new IsVirtualNetworkInterfaceIp(name: string, args: IsVirtualNetworkInterfaceIpArgs, opts?: CustomResourceOptions);
@overload
def IsVirtualNetworkInterfaceIp(resource_name: str,
                                args: IsVirtualNetworkInterfaceIpInitArgs,
                                opts: Optional[ResourceOptions] = None)

@overload
def IsVirtualNetworkInterfaceIp(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                reserved_ip: Optional[str] = None,
                                virtual_network_interface: Optional[str] = None,
                                is_virtual_network_interface_ip_id: Optional[str] = None)
func NewIsVirtualNetworkInterfaceIp(ctx *Context, name string, args IsVirtualNetworkInterfaceIpArgs, opts ...ResourceOption) (*IsVirtualNetworkInterfaceIp, error)
public IsVirtualNetworkInterfaceIp(string name, IsVirtualNetworkInterfaceIpArgs args, CustomResourceOptions? opts = null)
public IsVirtualNetworkInterfaceIp(String name, IsVirtualNetworkInterfaceIpArgs args)
public IsVirtualNetworkInterfaceIp(String name, IsVirtualNetworkInterfaceIpArgs args, CustomResourceOptions options)
type: ibm:IsVirtualNetworkInterfaceIp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IsVirtualNetworkInterfaceIpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IsVirtualNetworkInterfaceIpInitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IsVirtualNetworkInterfaceIpArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IsVirtualNetworkInterfaceIpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IsVirtualNetworkInterfaceIpArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var isVirtualNetworkInterfaceIpResource = new Ibm.IsVirtualNetworkInterfaceIp("isVirtualNetworkInterfaceIpResource", new()
{
    ReservedIp = "string",
    VirtualNetworkInterface = "string",
    IsVirtualNetworkInterfaceIpId = "string",
});
Copy
example, err := ibm.NewIsVirtualNetworkInterfaceIp(ctx, "isVirtualNetworkInterfaceIpResource", &ibm.IsVirtualNetworkInterfaceIpArgs{
ReservedIp: pulumi.String("string"),
VirtualNetworkInterface: pulumi.String("string"),
IsVirtualNetworkInterfaceIpId: pulumi.String("string"),
})
Copy
var isVirtualNetworkInterfaceIpResource = new IsVirtualNetworkInterfaceIp("isVirtualNetworkInterfaceIpResource", IsVirtualNetworkInterfaceIpArgs.builder()
    .reservedIp("string")
    .virtualNetworkInterface("string")
    .isVirtualNetworkInterfaceIpId("string")
    .build());
Copy
is_virtual_network_interface_ip_resource = ibm.IsVirtualNetworkInterfaceIp("isVirtualNetworkInterfaceIpResource",
    reserved_ip="string",
    virtual_network_interface="string",
    is_virtual_network_interface_ip_id="string")
Copy
const isVirtualNetworkInterfaceIpResource = new ibm.IsVirtualNetworkInterfaceIp("isVirtualNetworkInterfaceIpResource", {
    reservedIp: "string",
    virtualNetworkInterface: "string",
    isVirtualNetworkInterfaceIpId: "string",
});
Copy
type: ibm:IsVirtualNetworkInterfaceIp
properties:
    isVirtualNetworkInterfaceIpId: string
    reservedIp: string
    virtualNetworkInterface: string
Copy

IsVirtualNetworkInterfaceIp Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The IsVirtualNetworkInterfaceIp resource accepts the following input properties:

ReservedIp This property is required. string
The reserved IP identifier.
VirtualNetworkInterface This property is required. string
The virtual network interface identifier.
IsVirtualNetworkInterfaceIpId string
(String) The unique identifier for this reserved IP.
ReservedIp This property is required. string
The reserved IP identifier.
VirtualNetworkInterface This property is required. string
The virtual network interface identifier.
IsVirtualNetworkInterfaceIpId string
(String) The unique identifier for this reserved IP.
reservedIp This property is required. String
The reserved IP identifier.
virtualNetworkInterface This property is required. String
The virtual network interface identifier.
isVirtualNetworkInterfaceIpId String
(String) The unique identifier for this reserved IP.
reservedIp This property is required. string
The reserved IP identifier.
virtualNetworkInterface This property is required. string
The virtual network interface identifier.
isVirtualNetworkInterfaceIpId string
(String) The unique identifier for this reserved IP.
reserved_ip This property is required. str
The reserved IP identifier.
virtual_network_interface This property is required. str
The virtual network interface identifier.
is_virtual_network_interface_ip_id str
(String) The unique identifier for this reserved IP.
reservedIp This property is required. String
The reserved IP identifier.
virtualNetworkInterface This property is required. String
The virtual network interface identifier.
isVirtualNetworkInterfaceIpId String
(String) The unique identifier for this reserved IP.

Outputs

All input properties are implicitly available as output properties. Additionally, the IsVirtualNetworkInterfaceIp resource produces the following output properties:

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
The provider-assigned unique ID for this managed resource.
Name string
(String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
ResourceType string
(String) The resource type.
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
The provider-assigned unique ID for this managed resource.
Name string
(String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
ResourceType string
(String) The resource type.
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
The provider-assigned unique ID for this managed resource.
name String
(String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
resourceType String
(String) The resource type.
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
The provider-assigned unique ID for this managed resource.
name string
(String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
resourceType string
(String) The resource type.
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
The provider-assigned unique ID for this managed resource.
name str
(String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
resource_type str
(String) The resource type.
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
The provider-assigned unique ID for this managed resource.
name String
(String) The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
resourceType String
(String) The resource type.

Look up Existing IsVirtualNetworkInterfaceIp Resource

Get an existing IsVirtualNetworkInterfaceIp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IsVirtualNetworkInterfaceIpState, opts?: CustomResourceOptions): IsVirtualNetworkInterfaceIp
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address: Optional[str] = None,
        href: Optional[str] = None,
        is_virtual_network_interface_ip_id: Optional[str] = None,
        name: Optional[str] = None,
        reserved_ip: Optional[str] = None,
        resource_type: Optional[str] = None,
        virtual_network_interface: Optional[str] = None) -> IsVirtualNetworkInterfaceIp
func GetIsVirtualNetworkInterfaceIp(ctx *Context, name string, id IDInput, state *IsVirtualNetworkInterfaceIpState, opts ...ResourceOption) (*IsVirtualNetworkInterfaceIp, error)
public static IsVirtualNetworkInterfaceIp Get(string name, Input<string> id, IsVirtualNetworkInterfaceIpState? state, CustomResourceOptions? opts = null)
public static IsVirtualNetworkInterfaceIp get(String name, Output<String> id, IsVirtualNetworkInterfaceIpState state, CustomResourceOptions options)
resources:  _:    type: ibm:IsVirtualNetworkInterfaceIp    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
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.
IsVirtualNetworkInterfaceIpId 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.
ReservedIp string
The reserved IP identifier.
ResourceType string
(String) The resource type.
VirtualNetworkInterface string
The virtual network interface identifier.
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.
IsVirtualNetworkInterfaceIpId 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.
ReservedIp string
The reserved IP identifier.
ResourceType string
(String) The resource type.
VirtualNetworkInterface string
The virtual network interface identifier.
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.
isVirtualNetworkInterfaceIpId 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.
reservedIp String
The reserved IP identifier.
resourceType String
(String) The resource type.
virtualNetworkInterface String
The virtual network interface identifier.
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.
isVirtualNetworkInterfaceIpId 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.
reservedIp string
The reserved IP identifier.
resourceType string
(String) The resource type.
virtualNetworkInterface string
The virtual network interface identifier.
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.
is_virtual_network_interface_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
The reserved IP identifier.
resource_type str
(String) The resource type.
virtual_network_interface str
The virtual network interface identifier.
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.
isVirtualNetworkInterfaceIpId 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.
reservedIp String
The reserved IP identifier.
resourceType String
(String) The resource type.
virtualNetworkInterface String
The virtual network interface identifier.

Import

You can import the ibm_is_virtual_network_interface_ip resource by using id.

The id property can be formed from virtual_network_interface, and reserved_ip in the following format:

<virtual_network_interface>/<reserved_ip>

  • virtual_network_interface: A string. The subnet identifier.

  • reserved_ip: A string. The reserved IP identifier.

Syntax

$ pulumi import ibm:index/isVirtualNetworkInterfaceIp:IsVirtualNetworkInterfaceIp is_reserved_ip <virtual_network_interface>/<reserved_ip>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.