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,
});
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"])
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
})
}
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,
});
});
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());
}
}
resources:
isReservedIpInstance:
type: ibm:IsVirtualNetworkInterfaceIp
properties:
reservedIp: ${ibm_is_subnet_reserved_ip.example.reserved_ip}
virtualNetworkInterface: ${ibm_is_virtual_network_interface.example.id}
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 string
- The unique name of the resource.
- args IsVirtualNetworkInterfaceIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args IsVirtualNetworkInterfaceIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsVirtualNetworkInterfaceIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := ibm.NewIsVirtualNetworkInterfaceIp(ctx, "isVirtualNetworkInterfaceIpResource", &ibm.IsVirtualNetworkInterfaceIpArgs{
ReservedIp: pulumi.String("string"),
VirtualNetworkInterface: pulumi.String("string"),
IsVirtualNetworkInterfaceIpId: pulumi.String("string"),
})
var isVirtualNetworkInterfaceIpResource = new IsVirtualNetworkInterfaceIp("isVirtualNetworkInterfaceIpResource", IsVirtualNetworkInterfaceIpArgs.builder()
.reservedIp("string")
.virtualNetworkInterface("string")
.isVirtualNetworkInterfaceIpId("string")
.build());
is_virtual_network_interface_ip_resource = ibm.IsVirtualNetworkInterfaceIp("isVirtualNetworkInterfaceIpResource",
reserved_ip="string",
virtual_network_interface="string",
is_virtual_network_interface_ip_id="string")
const isVirtualNetworkInterfaceIpResource = new ibm.IsVirtualNetworkInterfaceIp("isVirtualNetworkInterfaceIpResource", {
reservedIp: "string",
virtualNetworkInterface: "string",
isVirtualNetworkInterfaceIpId: "string",
});
type: ibm:IsVirtualNetworkInterfaceIp
properties:
isVirtualNetworkInterfaceIpId: string
reservedIp: string
virtualNetworkInterface: string
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:
- Reserved
Ip string - The reserved IP identifier.
- Virtual
Network stringInterface - The virtual network interface identifier.
- Is
Virtual stringNetwork Interface Ip Id - (String) The unique identifier for this reserved IP.
- Reserved
Ip string - The reserved IP identifier.
- Virtual
Network stringInterface - The virtual network interface identifier.
- Is
Virtual stringNetwork Interface Ip Id - (String) The unique identifier for this reserved IP.
- reserved
Ip String - The reserved IP identifier.
- virtual
Network StringInterface - The virtual network interface identifier.
- is
Virtual StringNetwork Interface Ip Id - (String) The unique identifier for this reserved IP.
- reserved
Ip string - The reserved IP identifier.
- virtual
Network stringInterface - The virtual network interface identifier.
- is
Virtual stringNetwork Interface Ip Id - (String) The unique identifier for this reserved IP.
- reserved_
ip str - The reserved IP identifier.
- virtual_
network_ strinterface - The virtual network interface identifier.
- is_
virtual_ strnetwork_ interface_ ip_ id - (String) The unique identifier for this reserved IP.
- reserved
Ip String - The reserved IP identifier.
- virtual
Network StringInterface - The virtual network interface identifier.
- is
Virtual StringNetwork Interface Ip Id - (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.
- Resource
Type 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.
- Resource
Type 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.
- resource
Type 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.
- resource
Type 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.
- resource
Type 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- 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.
- Is
Virtual stringNetwork Interface Ip Id - (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 - The reserved IP identifier.
- Resource
Type string - (String) The resource type.
- Virtual
Network stringInterface - 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.
- Is
Virtual stringNetwork Interface Ip Id - (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 - The reserved IP identifier.
- Resource
Type string - (String) The resource type.
- Virtual
Network stringInterface - 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.
- is
Virtual StringNetwork Interface Ip Id - (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 - The reserved IP identifier.
- resource
Type String - (String) The resource type.
- virtual
Network StringInterface - 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.
- is
Virtual stringNetwork Interface Ip Id - (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 - The reserved IP identifier.
- resource
Type string - (String) The resource type.
- virtual
Network stringInterface - 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_ strnetwork_ interface_ ip_ id - (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_ strinterface - 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.
- is
Virtual StringNetwork Interface Ip Id - (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 - The reserved IP identifier.
- resource
Type String - (String) The resource type.
- virtual
Network StringInterface - 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>
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.