ibm.IsInstanceNetworkAttachment
Explore with Pulumi AI
Create, update, and delete Instance Network Attachment with this resource. Instance network attachments allow you to create and manage additional virtual network interfaces to your compute instances using virtual service instance network attachment.
Example Usage
Basic usage with existing virtual network interface
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = new ibm.IsInstanceNetworkAttachment("example", {
instance: ibm_is_instance.example.id,
virtualNetworkInterface: {
id: ibm_is_virtual_network_interface.example.id,
},
});
import pulumi
import pulumi_ibm as ibm
example = ibm.IsInstanceNetworkAttachment("example",
instance=ibm_is_instance["example"]["id"],
virtual_network_interface={
"id": 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.NewIsInstanceNetworkAttachment(ctx, "example", &ibm.IsInstanceNetworkAttachmentArgs{
Instance: pulumi.Any(ibm_is_instance.Example.Id),
VirtualNetworkInterface: &ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs{
Id: 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 example = new Ibm.IsInstanceNetworkAttachment("example", new()
{
Instance = ibm_is_instance.Example.Id,
VirtualNetworkInterface = new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs
{
Id = 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.IsInstanceNetworkAttachment;
import com.pulumi.ibm.IsInstanceNetworkAttachmentArgs;
import com.pulumi.ibm.inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs;
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 example = new IsInstanceNetworkAttachment("example", IsInstanceNetworkAttachmentArgs.builder()
.instance(ibm_is_instance.example().id())
.virtualNetworkInterface(IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs.builder()
.id(ibm_is_virtual_network_interface.example().id())
.build())
.build());
}
}
resources:
example:
type: ibm:IsInstanceNetworkAttachment
properties:
instance: ${ibm_is_instance.example.id}
virtualNetworkInterface:
id: ${ibm_is_virtual_network_interface.example.id}
Inline virtual network interface with auto-assigned IP
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example2 = new ibm.IsInstanceNetworkAttachment("example2", {
instance: ibm_is_instance.example.id,
virtualNetworkInterface: {
name: "example-vni-2",
subnet: ibm_is_subnet.example.id,
autoDelete: true,
allowIpSpoofing: false,
enableInfrastructureNat: true,
securityGroups: [ibm_is_security_group.example.id],
},
});
import pulumi
import pulumi_ibm as ibm
example2 = ibm.IsInstanceNetworkAttachment("example2",
instance=ibm_is_instance["example"]["id"],
virtual_network_interface={
"name": "example-vni-2",
"subnet": ibm_is_subnet["example"]["id"],
"auto_delete": True,
"allow_ip_spoofing": False,
"enable_infrastructure_nat": True,
"security_groups": [ibm_is_security_group["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.NewIsInstanceNetworkAttachment(ctx, "example2", &ibm.IsInstanceNetworkAttachmentArgs{
Instance: pulumi.Any(ibm_is_instance.Example.Id),
VirtualNetworkInterface: &ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs{
Name: pulumi.String("example-vni-2"),
Subnet: pulumi.Any(ibm_is_subnet.Example.Id),
AutoDelete: pulumi.Bool(true),
AllowIpSpoofing: pulumi.Bool(false),
EnableInfrastructureNat: pulumi.Bool(true),
SecurityGroups: pulumi.StringArray{
ibm_is_security_group.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 example2 = new Ibm.IsInstanceNetworkAttachment("example2", new()
{
Instance = ibm_is_instance.Example.Id,
VirtualNetworkInterface = new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs
{
Name = "example-vni-2",
Subnet = ibm_is_subnet.Example.Id,
AutoDelete = true,
AllowIpSpoofing = false,
EnableInfrastructureNat = true,
SecurityGroups = new[]
{
ibm_is_security_group.Example.Id,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsInstanceNetworkAttachment;
import com.pulumi.ibm.IsInstanceNetworkAttachmentArgs;
import com.pulumi.ibm.inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs;
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 example2 = new IsInstanceNetworkAttachment("example2", IsInstanceNetworkAttachmentArgs.builder()
.instance(ibm_is_instance.example().id())
.virtualNetworkInterface(IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs.builder()
.name("example-vni-2")
.subnet(ibm_is_subnet.example().id())
.autoDelete(true)
.allowIpSpoofing(false)
.enableInfrastructureNat(true)
.securityGroups(ibm_is_security_group.example().id())
.build())
.build());
}
}
resources:
example2:
type: ibm:IsInstanceNetworkAttachment
properties:
instance: ${ibm_is_instance.example.id}
virtualNetworkInterface:
name: example-vni-2
subnet: ${ibm_is_subnet.example.id}
autoDelete: true
allowIpSpoofing: false
enableInfrastructureNat: true
securityGroups:
- ${ibm_is_security_group.example.id}
Inline virtual network interface with specific primary IP address
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example3 = new ibm.IsInstanceNetworkAttachment("example3", {
instance: ibm_is_instance.example.id,
virtualNetworkInterface: {
name: "example-vni-3",
subnet: ibm_is_subnet.example.id,
autoDelete: true,
allowIpSpoofing: false,
enableInfrastructureNat: true,
primaryIp: {
address: "10.240.64.100",
autoDelete: true,
name: "example-primary-ip-1",
},
},
});
import pulumi
import pulumi_ibm as ibm
example3 = ibm.IsInstanceNetworkAttachment("example3",
instance=ibm_is_instance["example"]["id"],
virtual_network_interface={
"name": "example-vni-3",
"subnet": ibm_is_subnet["example"]["id"],
"auto_delete": True,
"allow_ip_spoofing": False,
"enable_infrastructure_nat": True,
"primary_ip": {
"address": "10.240.64.100",
"auto_delete": True,
"name": "example-primary-ip-1",
},
})
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.NewIsInstanceNetworkAttachment(ctx, "example3", &ibm.IsInstanceNetworkAttachmentArgs{
Instance: pulumi.Any(ibm_is_instance.Example.Id),
VirtualNetworkInterface: &ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs{
Name: pulumi.String("example-vni-3"),
Subnet: pulumi.Any(ibm_is_subnet.Example.Id),
AutoDelete: pulumi.Bool(true),
AllowIpSpoofing: pulumi.Bool(false),
EnableInfrastructureNat: pulumi.Bool(true),
PrimaryIp: &ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs{
Address: pulumi.String("10.240.64.100"),
AutoDelete: pulumi.Bool(true),
Name: pulumi.String("example-primary-ip-1"),
},
},
})
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 example3 = new Ibm.IsInstanceNetworkAttachment("example3", new()
{
Instance = ibm_is_instance.Example.Id,
VirtualNetworkInterface = new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs
{
Name = "example-vni-3",
Subnet = ibm_is_subnet.Example.Id,
AutoDelete = true,
AllowIpSpoofing = false,
EnableInfrastructureNat = true,
PrimaryIp = new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs
{
Address = "10.240.64.100",
AutoDelete = true,
Name = "example-primary-ip-1",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsInstanceNetworkAttachment;
import com.pulumi.ibm.IsInstanceNetworkAttachmentArgs;
import com.pulumi.ibm.inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs;
import com.pulumi.ibm.inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs;
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 example3 = new IsInstanceNetworkAttachment("example3", IsInstanceNetworkAttachmentArgs.builder()
.instance(ibm_is_instance.example().id())
.virtualNetworkInterface(IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs.builder()
.name("example-vni-3")
.subnet(ibm_is_subnet.example().id())
.autoDelete(true)
.allowIpSpoofing(false)
.enableInfrastructureNat(true)
.primaryIp(IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs.builder()
.address("10.240.64.100")
.autoDelete(true)
.name("example-primary-ip-1")
.build())
.build())
.build());
}
}
resources:
example3:
type: ibm:IsInstanceNetworkAttachment
properties:
instance: ${ibm_is_instance.example.id}
virtualNetworkInterface:
name: example-vni-3
subnet: ${ibm_is_subnet.example.id}
autoDelete: true
allowIpSpoofing: false
enableInfrastructureNat: true
primaryIp:
address: 10.240.64.100
autoDelete: true
name: example-primary-ip-1
Advanced configuration with reserved IPs
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const examplePrimary = new ibm.IsSubnetReservedIp("examplePrimary", {
subnet: ibm_is_subnet.example.id,
address: "10.240.65.50",
});
const exampleAdditional = new ibm.IsSubnetReservedIp("exampleAdditional", {
subnet: ibm_is_subnet.example.id,
address: "10.240.65.51",
});
const example4 = new ibm.IsInstanceNetworkAttachment("example4", {
instance: ibm_is_instance.example.id,
virtualNetworkInterface: {
name: "example-vni-5",
subnet: ibm_is_subnet.example.id,
autoDelete: true,
allowIpSpoofing: false,
enableInfrastructureNat: true,
primaryIp: {
reservedIp: examplePrimary.reservedIp,
},
ips: [{
reservedIp: exampleAdditional.reservedIp,
}],
},
});
import pulumi
import pulumi_ibm as ibm
example_primary = ibm.IsSubnetReservedIp("examplePrimary",
subnet=ibm_is_subnet["example"]["id"],
address="10.240.65.50")
example_additional = ibm.IsSubnetReservedIp("exampleAdditional",
subnet=ibm_is_subnet["example"]["id"],
address="10.240.65.51")
example4 = ibm.IsInstanceNetworkAttachment("example4",
instance=ibm_is_instance["example"]["id"],
virtual_network_interface={
"name": "example-vni-5",
"subnet": ibm_is_subnet["example"]["id"],
"auto_delete": True,
"allow_ip_spoofing": False,
"enable_infrastructure_nat": True,
"primary_ip": {
"reserved_ip": example_primary.reserved_ip,
},
"ips": [{
"reserved_ip": example_additional.reserved_ip,
}],
})
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 {
examplePrimary, err := ibm.NewIsSubnetReservedIp(ctx, "examplePrimary", &ibm.IsSubnetReservedIpArgs{
Subnet: pulumi.Any(ibm_is_subnet.Example.Id),
Address: pulumi.String("10.240.65.50"),
})
if err != nil {
return err
}
exampleAdditional, err := ibm.NewIsSubnetReservedIp(ctx, "exampleAdditional", &ibm.IsSubnetReservedIpArgs{
Subnet: pulumi.Any(ibm_is_subnet.Example.Id),
Address: pulumi.String("10.240.65.51"),
})
if err != nil {
return err
}
_, err = ibm.NewIsInstanceNetworkAttachment(ctx, "example4", &ibm.IsInstanceNetworkAttachmentArgs{
Instance: pulumi.Any(ibm_is_instance.Example.Id),
VirtualNetworkInterface: &ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs{
Name: pulumi.String("example-vni-5"),
Subnet: pulumi.Any(ibm_is_subnet.Example.Id),
AutoDelete: pulumi.Bool(true),
AllowIpSpoofing: pulumi.Bool(false),
EnableInfrastructureNat: pulumi.Bool(true),
PrimaryIp: &ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs{
ReservedIp: examplePrimary.ReservedIp,
},
Ips: ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpArray{
&ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpArgs{
ReservedIp: exampleAdditional.ReservedIp,
},
},
},
})
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 examplePrimary = new Ibm.IsSubnetReservedIp("examplePrimary", new()
{
Subnet = ibm_is_subnet.Example.Id,
Address = "10.240.65.50",
});
var exampleAdditional = new Ibm.IsSubnetReservedIp("exampleAdditional", new()
{
Subnet = ibm_is_subnet.Example.Id,
Address = "10.240.65.51",
});
var example4 = new Ibm.IsInstanceNetworkAttachment("example4", new()
{
Instance = ibm_is_instance.Example.Id,
VirtualNetworkInterface = new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs
{
Name = "example-vni-5",
Subnet = ibm_is_subnet.Example.Id,
AutoDelete = true,
AllowIpSpoofing = false,
EnableInfrastructureNat = true,
PrimaryIp = new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs
{
ReservedIp = examplePrimary.ReservedIp,
},
Ips = new[]
{
new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpArgs
{
ReservedIp = exampleAdditional.ReservedIp,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsSubnetReservedIp;
import com.pulumi.ibm.IsSubnetReservedIpArgs;
import com.pulumi.ibm.IsInstanceNetworkAttachment;
import com.pulumi.ibm.IsInstanceNetworkAttachmentArgs;
import com.pulumi.ibm.inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs;
import com.pulumi.ibm.inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs;
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 examplePrimary = new IsSubnetReservedIp("examplePrimary", IsSubnetReservedIpArgs.builder()
.subnet(ibm_is_subnet.example().id())
.address("10.240.65.50")
.build());
var exampleAdditional = new IsSubnetReservedIp("exampleAdditional", IsSubnetReservedIpArgs.builder()
.subnet(ibm_is_subnet.example().id())
.address("10.240.65.51")
.build());
var example4 = new IsInstanceNetworkAttachment("example4", IsInstanceNetworkAttachmentArgs.builder()
.instance(ibm_is_instance.example().id())
.virtualNetworkInterface(IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs.builder()
.name("example-vni-5")
.subnet(ibm_is_subnet.example().id())
.autoDelete(true)
.allowIpSpoofing(false)
.enableInfrastructureNat(true)
.primaryIp(IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs.builder()
.reservedIp(examplePrimary.reservedIp())
.build())
.ips(IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpArgs.builder()
.reservedIp(exampleAdditional.reservedIp())
.build())
.build())
.build());
}
}
resources:
examplePrimary:
type: ibm:IsSubnetReservedIp
properties:
subnet: ${ibm_is_subnet.example.id}
address: 10.240.65.50
exampleAdditional:
type: ibm:IsSubnetReservedIp
properties:
subnet: ${ibm_is_subnet.example.id}
address: 10.240.65.51
example4:
type: ibm:IsInstanceNetworkAttachment
properties:
instance: ${ibm_is_instance.example.id}
virtualNetworkInterface:
name: example-vni-5
subnet: ${ibm_is_subnet.example.id}
autoDelete: true
allowIpSpoofing: false
enableInfrastructureNat: true
primaryIp:
reservedIp: ${examplePrimary.reservedIp}
ips:
- reservedIp: ${exampleAdditional.reservedIp}
Create IsInstanceNetworkAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsInstanceNetworkAttachment(name: string, args: IsInstanceNetworkAttachmentArgs, opts?: CustomResourceOptions);
@overload
def IsInstanceNetworkAttachment(resource_name: str,
args: IsInstanceNetworkAttachmentInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsInstanceNetworkAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance: Optional[str] = None,
is_instance_network_attachment_id: Optional[str] = None,
name: Optional[str] = None,
virtual_network_interface: Optional[IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs] = None)
func NewIsInstanceNetworkAttachment(ctx *Context, name string, args IsInstanceNetworkAttachmentArgs, opts ...ResourceOption) (*IsInstanceNetworkAttachment, error)
public IsInstanceNetworkAttachment(string name, IsInstanceNetworkAttachmentArgs args, CustomResourceOptions? opts = null)
public IsInstanceNetworkAttachment(String name, IsInstanceNetworkAttachmentArgs args)
public IsInstanceNetworkAttachment(String name, IsInstanceNetworkAttachmentArgs args, CustomResourceOptions options)
type: ibm:IsInstanceNetworkAttachment
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 IsInstanceNetworkAttachmentArgs
- 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 IsInstanceNetworkAttachmentInitArgs
- 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 IsInstanceNetworkAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsInstanceNetworkAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsInstanceNetworkAttachmentArgs
- 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 isInstanceNetworkAttachmentResource = new Ibm.IsInstanceNetworkAttachment("isInstanceNetworkAttachmentResource", new()
{
Instance = "string",
IsInstanceNetworkAttachmentId = "string",
Name = "string",
VirtualNetworkInterface = new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs
{
AllowIpSpoofing = false,
AutoDelete = false,
EnableInfrastructureNat = false,
Id = "string",
Ips = new[]
{
new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpArgs
{
ReservedIp = "string",
Address = "string",
AutoDelete = false,
Deleteds = new[]
{
new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpDeletedArgs
{
MoreInfo = "string",
},
},
Href = "string",
Name = "string",
ResourceType = "string",
},
},
Name = "string",
PrimaryIp = new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs
{
Address = "string",
AutoDelete = false,
Deleteds = new[]
{
new Ibm.Inputs.IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpDeletedArgs
{
MoreInfo = "string",
},
},
Href = "string",
Name = "string",
ReservedIp = "string",
ResourceType = "string",
},
ProtocolStateFilteringMode = "string",
ResourceGroup = "string",
ResourceType = "string",
SecurityGroups = new[]
{
"string",
},
Subnet = "string",
},
});
example, err := ibm.NewIsInstanceNetworkAttachment(ctx, "isInstanceNetworkAttachmentResource", &ibm.IsInstanceNetworkAttachmentArgs{
Instance: pulumi.String("string"),
IsInstanceNetworkAttachmentId: pulumi.String("string"),
Name: pulumi.String("string"),
VirtualNetworkInterface: &ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs{
AllowIpSpoofing: pulumi.Bool(false),
AutoDelete: pulumi.Bool(false),
EnableInfrastructureNat: pulumi.Bool(false),
Id: pulumi.String("string"),
Ips: ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpArray{
&ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpArgs{
ReservedIp: pulumi.String("string"),
Address: pulumi.String("string"),
AutoDelete: pulumi.Bool(false),
Deleteds: ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpDeletedArray{
&ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpDeletedArgs{
MoreInfo: pulumi.String("string"),
},
},
Href: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceType: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
PrimaryIp: &ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs{
Address: pulumi.String("string"),
AutoDelete: pulumi.Bool(false),
Deleteds: ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpDeletedArray{
&ibm.IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpDeletedArgs{
MoreInfo: pulumi.String("string"),
},
},
Href: pulumi.String("string"),
Name: pulumi.String("string"),
ReservedIp: pulumi.String("string"),
ResourceType: pulumi.String("string"),
},
ProtocolStateFilteringMode: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
ResourceType: pulumi.String("string"),
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
Subnet: pulumi.String("string"),
},
})
var isInstanceNetworkAttachmentResource = new IsInstanceNetworkAttachment("isInstanceNetworkAttachmentResource", IsInstanceNetworkAttachmentArgs.builder()
.instance("string")
.isInstanceNetworkAttachmentId("string")
.name("string")
.virtualNetworkInterface(IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs.builder()
.allowIpSpoofing(false)
.autoDelete(false)
.enableInfrastructureNat(false)
.id("string")
.ips(IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpArgs.builder()
.reservedIp("string")
.address("string")
.autoDelete(false)
.deleteds(IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpDeletedArgs.builder()
.moreInfo("string")
.build())
.href("string")
.name("string")
.resourceType("string")
.build())
.name("string")
.primaryIp(IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs.builder()
.address("string")
.autoDelete(false)
.deleteds(IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpDeletedArgs.builder()
.moreInfo("string")
.build())
.href("string")
.name("string")
.reservedIp("string")
.resourceType("string")
.build())
.protocolStateFilteringMode("string")
.resourceGroup("string")
.resourceType("string")
.securityGroups("string")
.subnet("string")
.build())
.build());
is_instance_network_attachment_resource = ibm.IsInstanceNetworkAttachment("isInstanceNetworkAttachmentResource",
instance="string",
is_instance_network_attachment_id="string",
name="string",
virtual_network_interface={
"allow_ip_spoofing": False,
"auto_delete": False,
"enable_infrastructure_nat": False,
"id": "string",
"ips": [{
"reserved_ip": "string",
"address": "string",
"auto_delete": False,
"deleteds": [{
"more_info": "string",
}],
"href": "string",
"name": "string",
"resource_type": "string",
}],
"name": "string",
"primary_ip": {
"address": "string",
"auto_delete": False,
"deleteds": [{
"more_info": "string",
}],
"href": "string",
"name": "string",
"reserved_ip": "string",
"resource_type": "string",
},
"protocol_state_filtering_mode": "string",
"resource_group": "string",
"resource_type": "string",
"security_groups": ["string"],
"subnet": "string",
})
const isInstanceNetworkAttachmentResource = new ibm.IsInstanceNetworkAttachment("isInstanceNetworkAttachmentResource", {
instance: "string",
isInstanceNetworkAttachmentId: "string",
name: "string",
virtualNetworkInterface: {
allowIpSpoofing: false,
autoDelete: false,
enableInfrastructureNat: false,
id: "string",
ips: [{
reservedIp: "string",
address: "string",
autoDelete: false,
deleteds: [{
moreInfo: "string",
}],
href: "string",
name: "string",
resourceType: "string",
}],
name: "string",
primaryIp: {
address: "string",
autoDelete: false,
deleteds: [{
moreInfo: "string",
}],
href: "string",
name: "string",
reservedIp: "string",
resourceType: "string",
},
protocolStateFilteringMode: "string",
resourceGroup: "string",
resourceType: "string",
securityGroups: ["string"],
subnet: "string",
},
});
type: ibm:IsInstanceNetworkAttachment
properties:
instance: string
isInstanceNetworkAttachmentId: string
name: string
virtualNetworkInterface:
allowIpSpoofing: false
autoDelete: false
enableInfrastructureNat: false
id: string
ips:
- address: string
autoDelete: false
deleteds:
- moreInfo: string
href: string
name: string
reservedIp: string
resourceType: string
name: string
primaryIp:
address: string
autoDelete: false
deleteds:
- moreInfo: string
href: string
name: string
reservedIp: string
resourceType: string
protocolStateFilteringMode: string
resourceGroup: string
resourceType: string
securityGroups:
- string
subnet: string
IsInstanceNetworkAttachment 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 IsInstanceNetworkAttachment resource accepts the following input properties:
- Instance string
- The virtual server instance identifier.
- Is
Instance stringNetwork Attachment Id - (String) The unique identifier for this subnet.
- Name string
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- Virtual
Network IsInterface Instance Network Attachment Virtual Network Interface The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
- Instance string
- The virtual server instance identifier.
- Is
Instance stringNetwork Attachment Id - (String) The unique identifier for this subnet.
- Name string
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- Virtual
Network IsInterface Instance Network Attachment Virtual Network Interface Args The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
- instance String
- The virtual server instance identifier.
- is
Instance StringNetwork Attachment Id - (String) The unique identifier for this subnet.
- name String
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- virtual
Network IsInterface Instance Network Attachment Virtual Network Interface The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
- instance string
- The virtual server instance identifier.
- is
Instance stringNetwork Attachment Id - (String) The unique identifier for this subnet.
- name string
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- virtual
Network IsInterface Instance Network Attachment Virtual Network Interface The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
- instance str
- The virtual server instance identifier.
- is_
instance_ strnetwork_ attachment_ id - (String) The unique identifier for this subnet.
- name str
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- virtual_
network_ Isinterface Instance Network Attachment Virtual Network Interface Args The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
- instance String
- The virtual server instance identifier.
- is
Instance StringNetwork Attachment Id - (String) The unique identifier for this subnet.
- name String
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- virtual
Network Property MapInterface The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
Outputs
All input properties are implicitly available as output properties. Additionally, the IsInstanceNetworkAttachment resource produces the following output properties:
- Created
At string - (String) The date and time that the instance network attachment was created.
- Href string
- (String) The URL for this subnet.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- Network
Attachment string - (String) The id of the network attachment.
- Port
Speed double - (Integer) The port speed for this instance network attachment in Mbps.
- Resource
Type string - (String) The resource type.
- Type string
- (String) The instance network attachment type.
- Created
At string - (String) The date and time that the instance network attachment was created.
- Href string
- (String) The URL for this subnet.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- Network
Attachment string - (String) The id of the network attachment.
- Port
Speed float64 - (Integer) The port speed for this instance network attachment in Mbps.
- Resource
Type string - (String) The resource type.
- Type string
- (String) The instance network attachment type.
- created
At String - (String) The date and time that the instance network attachment was created.
- href String
- (String) The URL for this subnet.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- network
Attachment String - (String) The id of the network attachment.
- port
Speed Double - (Integer) The port speed for this instance network attachment in Mbps.
- resource
Type String - (String) The resource type.
- type String
- (String) The instance network attachment type.
- created
At string - (String) The date and time that the instance network attachment was created.
- href string
- (String) The URL for this subnet.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
State string - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- network
Attachment string - (String) The id of the network attachment.
- port
Speed number - (Integer) The port speed for this instance network attachment in Mbps.
- resource
Type string - (String) The resource type.
- type string
- (String) The instance network attachment type.
- created_
at str - (String) The date and time that the instance network attachment was created.
- href str
- (String) The URL for this subnet.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
state str - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- network_
attachment str - (String) The id of the network attachment.
- port_
speed float - (Integer) The port speed for this instance network attachment in Mbps.
- resource_
type str - (String) The resource type.
- type str
- (String) The instance network attachment type.
- created
At String - (String) The date and time that the instance network attachment was created.
- href String
- (String) The URL for this subnet.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- network
Attachment String - (String) The id of the network attachment.
- port
Speed Number - (Integer) The port speed for this instance network attachment in Mbps.
- resource
Type String - (String) The resource type.
- type String
- (String) The instance network attachment type.
Look up Existing IsInstanceNetworkAttachment Resource
Get an existing IsInstanceNetworkAttachment 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?: IsInstanceNetworkAttachmentState, opts?: CustomResourceOptions): IsInstanceNetworkAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
href: Optional[str] = None,
instance: Optional[str] = None,
is_instance_network_attachment_id: Optional[str] = None,
lifecycle_state: Optional[str] = None,
name: Optional[str] = None,
network_attachment: Optional[str] = None,
port_speed: Optional[float] = None,
resource_type: Optional[str] = None,
type: Optional[str] = None,
virtual_network_interface: Optional[IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs] = None) -> IsInstanceNetworkAttachment
func GetIsInstanceNetworkAttachment(ctx *Context, name string, id IDInput, state *IsInstanceNetworkAttachmentState, opts ...ResourceOption) (*IsInstanceNetworkAttachment, error)
public static IsInstanceNetworkAttachment Get(string name, Input<string> id, IsInstanceNetworkAttachmentState? state, CustomResourceOptions? opts = null)
public static IsInstanceNetworkAttachment get(String name, Output<String> id, IsInstanceNetworkAttachmentState state, CustomResourceOptions options)
resources: _: type: ibm:IsInstanceNetworkAttachment 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.
- Created
At string - (String) The date and time that the instance network attachment was created.
- Href string
- (String) The URL for this subnet.
- Instance string
- The virtual server instance identifier.
- Is
Instance stringNetwork Attachment Id - (String) The unique identifier for this subnet.
- Lifecycle
State string - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- Name string
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- Network
Attachment string - (String) The id of the network attachment.
- Port
Speed double - (Integer) The port speed for this instance network attachment in Mbps.
- Resource
Type string - (String) The resource type.
- Type string
- (String) The instance network attachment type.
- Virtual
Network IsInterface Instance Network Attachment Virtual Network Interface The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
- Created
At string - (String) The date and time that the instance network attachment was created.
- Href string
- (String) The URL for this subnet.
- Instance string
- The virtual server instance identifier.
- Is
Instance stringNetwork Attachment Id - (String) The unique identifier for this subnet.
- Lifecycle
State string - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- Name string
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- Network
Attachment string - (String) The id of the network attachment.
- Port
Speed float64 - (Integer) The port speed for this instance network attachment in Mbps.
- Resource
Type string - (String) The resource type.
- Type string
- (String) The instance network attachment type.
- Virtual
Network IsInterface Instance Network Attachment Virtual Network Interface Args The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
- created
At String - (String) The date and time that the instance network attachment was created.
- href String
- (String) The URL for this subnet.
- instance String
- The virtual server instance identifier.
- is
Instance StringNetwork Attachment Id - (String) The unique identifier for this subnet.
- lifecycle
State String - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- name String
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- network
Attachment String - (String) The id of the network attachment.
- port
Speed Double - (Integer) The port speed for this instance network attachment in Mbps.
- resource
Type String - (String) The resource type.
- type String
- (String) The instance network attachment type.
- virtual
Network IsInterface Instance Network Attachment Virtual Network Interface The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
- created
At string - (String) The date and time that the instance network attachment was created.
- href string
- (String) The URL for this subnet.
- instance string
- The virtual server instance identifier.
- is
Instance stringNetwork Attachment Id - (String) The unique identifier for this subnet.
- lifecycle
State string - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- name string
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- network
Attachment string - (String) The id of the network attachment.
- port
Speed number - (Integer) The port speed for this instance network attachment in Mbps.
- resource
Type string - (String) The resource type.
- type string
- (String) The instance network attachment type.
- virtual
Network IsInterface Instance Network Attachment Virtual Network Interface The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
- created_
at str - (String) The date and time that the instance network attachment was created.
- href str
- (String) The URL for this subnet.
- instance str
- The virtual server instance identifier.
- is_
instance_ strnetwork_ attachment_ id - (String) The unique identifier for this subnet.
- lifecycle_
state str - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- name str
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- network_
attachment str - (String) The id of the network attachment.
- port_
speed float - (Integer) The port speed for this instance network attachment in Mbps.
- resource_
type str - (String) The resource type.
- type str
- (String) The instance network attachment type.
- virtual_
network_ Isinterface Instance Network Attachment Virtual Network Interface Args The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
- created
At String - (String) The date and time that the instance network attachment was created.
- href String
- (String) The URL for this subnet.
- instance String
- The virtual server instance identifier.
- is
Instance StringNetwork Attachment Id - (String) The unique identifier for this subnet.
- lifecycle
State String - (String) The lifecycle state of the instance network attachment.
- Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
.
- Allowable values are:
- name String
- The name for this instance network attachment. The name is unique across all network attachments for the instance.
- network
Attachment String - (String) The id of the network attachment.
- port
Speed Number - (Integer) The port speed for this instance network attachment in Mbps.
- resource
Type String - (String) The resource type.
- type String
- (String) The instance network attachment type.
- virtual
Network Property MapInterface The virtual network interface for this instance network attachment. This can be specified using an existing virtual network interface ID, or a prototype object for a new virtual network interface.
Nested schema for virtual_network_interface:
Supporting Types
IsInstanceNetworkAttachmentVirtualNetworkInterface, IsInstanceNetworkAttachmentVirtualNetworkInterfaceArgs
- Allow
Ip boolSpoofing - Indicates whether source IP spoofing is allowed on this interface. If
false
, source IP spoofing is prevented on this interface. Iftrue
, source IP spoofing is allowed on this interface. Conflicts withid
. - Auto
Delete bool - Indicates whether this virtual network interface will be automatically deleted when
target
is deleted. Conflicts withid
. - Enable
Infrastructure boolNat - If
true
: The VPC infrastructure performs any needed NAT operations.floating_ips
must not have more than one floating IP. Iffalse
: Packets are passed unchanged to/from the network interface, allowing the workload to perform any needed NAT operations.allow_ip_spoofing
must befalse
. If the virtual network interface is attached: The targetresource_type
must bebare_metal_server_network_attachment
. The targetinterface_type
must not behipersocket
. Conflicts withid
. - Id string
- The unique identifier for an existing virtual network interface. When specified, all other nested arguments are ignored and will conflict if provided.
- Ips
List<Is
Instance Network Attachment Virtual Network Interface Ip> The reserved IPs bound to this virtual network interface. May be empty when
lifecycle_state
ispending
. Conflicts withid
.NOTE to add
ips
only existingreserved_ip
is supported, new reserved_ip creation is not supported as it leads to unmanaged(dangling) reserved ips. Useibm.IsSubnetReservedIp
to create a reserved_ipNested schema for ips:
- Name string
- The name for this virtual network interface. The name is unique across all virtual network interfaces in the VPC. Conflicts with
id
. - Primary
Ip IsInstance Network Attachment Virtual Network Interface Primary Ip - The primary IP address of the virtual network interface for the instance network attachment. Conflicts with
id
. Nested schema for primary_ip: - Protocol
State stringFiltering Mode - The protocol state filtering mode used for this virtual network interface.
- Resource
Group string - The resource group id for this virtual network interface. Conflicts with
id
. - Resource
Type string - The resource type.
- Security
Groups List<string> - The security groups for this virtual network interface. Conflicts with
id
. - Subnet string
- The associated subnet id. Conflicts with
id
.
- Allow
Ip boolSpoofing - Indicates whether source IP spoofing is allowed on this interface. If
false
, source IP spoofing is prevented on this interface. Iftrue
, source IP spoofing is allowed on this interface. Conflicts withid
. - Auto
Delete bool - Indicates whether this virtual network interface will be automatically deleted when
target
is deleted. Conflicts withid
. - Enable
Infrastructure boolNat - If
true
: The VPC infrastructure performs any needed NAT operations.floating_ips
must not have more than one floating IP. Iffalse
: Packets are passed unchanged to/from the network interface, allowing the workload to perform any needed NAT operations.allow_ip_spoofing
must befalse
. If the virtual network interface is attached: The targetresource_type
must bebare_metal_server_network_attachment
. The targetinterface_type
must not behipersocket
. Conflicts withid
. - Id string
- The unique identifier for an existing virtual network interface. When specified, all other nested arguments are ignored and will conflict if provided.
- Ips
[]Is
Instance Network Attachment Virtual Network Interface Ip The reserved IPs bound to this virtual network interface. May be empty when
lifecycle_state
ispending
. Conflicts withid
.NOTE to add
ips
only existingreserved_ip
is supported, new reserved_ip creation is not supported as it leads to unmanaged(dangling) reserved ips. Useibm.IsSubnetReservedIp
to create a reserved_ipNested schema for ips:
- Name string
- The name for this virtual network interface. The name is unique across all virtual network interfaces in the VPC. Conflicts with
id
. - Primary
Ip IsInstance Network Attachment Virtual Network Interface Primary Ip - The primary IP address of the virtual network interface for the instance network attachment. Conflicts with
id
. Nested schema for primary_ip: - Protocol
State stringFiltering Mode - The protocol state filtering mode used for this virtual network interface.
- Resource
Group string - The resource group id for this virtual network interface. Conflicts with
id
. - Resource
Type string - The resource type.
- Security
Groups []string - The security groups for this virtual network interface. Conflicts with
id
. - Subnet string
- The associated subnet id. Conflicts with
id
.
- allow
Ip BooleanSpoofing - Indicates whether source IP spoofing is allowed on this interface. If
false
, source IP spoofing is prevented on this interface. Iftrue
, source IP spoofing is allowed on this interface. Conflicts withid
. - auto
Delete Boolean - Indicates whether this virtual network interface will be automatically deleted when
target
is deleted. Conflicts withid
. - enable
Infrastructure BooleanNat - If
true
: The VPC infrastructure performs any needed NAT operations.floating_ips
must not have more than one floating IP. Iffalse
: Packets are passed unchanged to/from the network interface, allowing the workload to perform any needed NAT operations.allow_ip_spoofing
must befalse
. If the virtual network interface is attached: The targetresource_type
must bebare_metal_server_network_attachment
. The targetinterface_type
must not behipersocket
. Conflicts withid
. - id String
- The unique identifier for an existing virtual network interface. When specified, all other nested arguments are ignored and will conflict if provided.
- ips
List<Is
Instance Network Attachment Virtual Network Interface Ip> The reserved IPs bound to this virtual network interface. May be empty when
lifecycle_state
ispending
. Conflicts withid
.NOTE to add
ips
only existingreserved_ip
is supported, new reserved_ip creation is not supported as it leads to unmanaged(dangling) reserved ips. Useibm.IsSubnetReservedIp
to create a reserved_ipNested schema for ips:
- name String
- The name for this virtual network interface. The name is unique across all virtual network interfaces in the VPC. Conflicts with
id
. - primary
Ip IsInstance Network Attachment Virtual Network Interface Primary Ip - The primary IP address of the virtual network interface for the instance network attachment. Conflicts with
id
. Nested schema for primary_ip: - protocol
State StringFiltering Mode - The protocol state filtering mode used for this virtual network interface.
- resource
Group String - The resource group id for this virtual network interface. Conflicts with
id
. - resource
Type String - The resource type.
- security
Groups List<String> - The security groups for this virtual network interface. Conflicts with
id
. - subnet String
- The associated subnet id. Conflicts with
id
.
- allow
Ip booleanSpoofing - Indicates whether source IP spoofing is allowed on this interface. If
false
, source IP spoofing is prevented on this interface. Iftrue
, source IP spoofing is allowed on this interface. Conflicts withid
. - auto
Delete boolean - Indicates whether this virtual network interface will be automatically deleted when
target
is deleted. Conflicts withid
. - enable
Infrastructure booleanNat - If
true
: The VPC infrastructure performs any needed NAT operations.floating_ips
must not have more than one floating IP. Iffalse
: Packets are passed unchanged to/from the network interface, allowing the workload to perform any needed NAT operations.allow_ip_spoofing
must befalse
. If the virtual network interface is attached: The targetresource_type
must bebare_metal_server_network_attachment
. The targetinterface_type
must not behipersocket
. Conflicts withid
. - id string
- The unique identifier for an existing virtual network interface. When specified, all other nested arguments are ignored and will conflict if provided.
- ips
Is
Instance Network Attachment Virtual Network Interface Ip[] The reserved IPs bound to this virtual network interface. May be empty when
lifecycle_state
ispending
. Conflicts withid
.NOTE to add
ips
only existingreserved_ip
is supported, new reserved_ip creation is not supported as it leads to unmanaged(dangling) reserved ips. Useibm.IsSubnetReservedIp
to create a reserved_ipNested schema for ips:
- name string
- The name for this virtual network interface. The name is unique across all virtual network interfaces in the VPC. Conflicts with
id
. - primary
Ip IsInstance Network Attachment Virtual Network Interface Primary Ip - The primary IP address of the virtual network interface for the instance network attachment. Conflicts with
id
. Nested schema for primary_ip: - protocol
State stringFiltering Mode - The protocol state filtering mode used for this virtual network interface.
- resource
Group string - The resource group id for this virtual network interface. Conflicts with
id
. - resource
Type string - The resource type.
- security
Groups string[] - The security groups for this virtual network interface. Conflicts with
id
. - subnet string
- The associated subnet id. Conflicts with
id
.
- allow_
ip_ boolspoofing - Indicates whether source IP spoofing is allowed on this interface. If
false
, source IP spoofing is prevented on this interface. Iftrue
, source IP spoofing is allowed on this interface. Conflicts withid
. - auto_
delete bool - Indicates whether this virtual network interface will be automatically deleted when
target
is deleted. Conflicts withid
. - enable_
infrastructure_ boolnat - If
true
: The VPC infrastructure performs any needed NAT operations.floating_ips
must not have more than one floating IP. Iffalse
: Packets are passed unchanged to/from the network interface, allowing the workload to perform any needed NAT operations.allow_ip_spoofing
must befalse
. If the virtual network interface is attached: The targetresource_type
must bebare_metal_server_network_attachment
. The targetinterface_type
must not behipersocket
. Conflicts withid
. - id str
- The unique identifier for an existing virtual network interface. When specified, all other nested arguments are ignored and will conflict if provided.
- ips
Sequence[Is
Instance Network Attachment Virtual Network Interface Ip] The reserved IPs bound to this virtual network interface. May be empty when
lifecycle_state
ispending
. Conflicts withid
.NOTE to add
ips
only existingreserved_ip
is supported, new reserved_ip creation is not supported as it leads to unmanaged(dangling) reserved ips. Useibm.IsSubnetReservedIp
to create a reserved_ipNested schema for ips:
- name str
- The name for this virtual network interface. The name is unique across all virtual network interfaces in the VPC. Conflicts with
id
. - primary_
ip IsInstance Network Attachment Virtual Network Interface Primary Ip - The primary IP address of the virtual network interface for the instance network attachment. Conflicts with
id
. Nested schema for primary_ip: - protocol_
state_ strfiltering_ mode - The protocol state filtering mode used for this virtual network interface.
- resource_
group str - The resource group id for this virtual network interface. Conflicts with
id
. - resource_
type str - The resource type.
- security_
groups Sequence[str] - The security groups for this virtual network interface. Conflicts with
id
. - subnet str
- The associated subnet id. Conflicts with
id
.
- allow
Ip BooleanSpoofing - Indicates whether source IP spoofing is allowed on this interface. If
false
, source IP spoofing is prevented on this interface. Iftrue
, source IP spoofing is allowed on this interface. Conflicts withid
. - auto
Delete Boolean - Indicates whether this virtual network interface will be automatically deleted when
target
is deleted. Conflicts withid
. - enable
Infrastructure BooleanNat - If
true
: The VPC infrastructure performs any needed NAT operations.floating_ips
must not have more than one floating IP. Iffalse
: Packets are passed unchanged to/from the network interface, allowing the workload to perform any needed NAT operations.allow_ip_spoofing
must befalse
. If the virtual network interface is attached: The targetresource_type
must bebare_metal_server_network_attachment
. The targetinterface_type
must not behipersocket
. Conflicts withid
. - id String
- The unique identifier for an existing virtual network interface. When specified, all other nested arguments are ignored and will conflict if provided.
- ips List<Property Map>
The reserved IPs bound to this virtual network interface. May be empty when
lifecycle_state
ispending
. Conflicts withid
.NOTE to add
ips
only existingreserved_ip
is supported, new reserved_ip creation is not supported as it leads to unmanaged(dangling) reserved ips. Useibm.IsSubnetReservedIp
to create a reserved_ipNested schema for ips:
- name String
- The name for this virtual network interface. The name is unique across all virtual network interfaces in the VPC. Conflicts with
id
. - primary
Ip Property Map - The primary IP address of the virtual network interface for the instance network attachment. Conflicts with
id
. Nested schema for primary_ip: - protocol
State StringFiltering Mode - The protocol state filtering mode used for this virtual network interface.
- resource
Group String - The resource group id for this virtual network interface. Conflicts with
id
. - resource
Type String - The resource type.
- security
Groups List<String> - The security groups for this virtual network interface. Conflicts with
id
. - subnet String
- The associated subnet id. Conflicts with
id
.
IsInstanceNetworkAttachmentVirtualNetworkInterfaceIp, IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpArgs
- Reserved
Ip string - The unique identifier for this reserved IP.
- Address 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. - Auto
Delete bool - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- Deleteds
List<Is
Instance Network Attachment Virtual Network Interface Ip Deleted> - If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- Href string
- The URL for this reserved IP.
- Name string
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- Resource
Type string - The resource type.
- Reserved
Ip string - The unique identifier for this reserved IP.
- Address 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. - Auto
Delete bool - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- Deleteds
[]Is
Instance Network Attachment Virtual Network Interface Ip Deleted - If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- Href string
- The URL for this reserved IP.
- Name string
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- Resource
Type string - The resource type.
- reserved
Ip String - The unique identifier for this reserved IP.
- address 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. - auto
Delete Boolean - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- deleteds
List<Is
Instance Network Attachment Virtual Network Interface Ip Deleted> - If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- href String
- The URL for this reserved IP.
- name String
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- resource
Type String - The resource type.
- reserved
Ip string - The unique identifier for this reserved IP.
- address 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. - auto
Delete boolean - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- deleteds
Is
Instance Network Attachment Virtual Network Interface Ip Deleted[] - If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- href string
- The URL for this reserved IP.
- name string
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- resource
Type string - The resource type.
- reserved_
ip str - The unique identifier for this reserved IP.
- address str
- 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. - auto_
delete bool - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- deleteds
Sequence[Is
Instance Network Attachment Virtual Network Interface Ip Deleted] - If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- href str
- The URL for this reserved IP.
- name str
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- resource_
type str - The resource type.
- reserved
Ip String - The unique identifier for this reserved IP.
- address 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. - auto
Delete Boolean - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- deleteds List<Property Map>
- If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- href String
- The URL for this reserved IP.
- name String
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- resource
Type String - The resource type.
IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpDeleted, IsInstanceNetworkAttachmentVirtualNetworkInterfaceIpDeletedArgs
- More
Info string - Link to documentation about deleted resources.
- More
Info string - Link to documentation about deleted resources.
- more
Info String - Link to documentation about deleted resources.
- more
Info string - Link to documentation about deleted resources.
- more_
info str - Link to documentation about deleted resources.
- more
Info String - Link to documentation about deleted resources.
IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIp, IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpArgs
- Address 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. - Auto
Delete bool - Indicates whether this primary_ip will be automatically deleted when
vni
is deleted. Default value:true
. - Deleteds
List<Is
Instance Network Attachment Virtual Network Interface Primary Ip Deleted> - If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- Href string
- The URL for this reserved IP.
- Name string
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- Reserved
Ip string - The unique identifier for this reserved IP.
- Resource
Type string - The resource type.
- Address 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. - Auto
Delete bool - Indicates whether this primary_ip will be automatically deleted when
vni
is deleted. Default value:true
. - Deleteds
[]Is
Instance Network Attachment Virtual Network Interface Primary Ip Deleted - If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- Href string
- The URL for this reserved IP.
- Name string
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- Reserved
Ip string - The unique identifier for this reserved IP.
- Resource
Type string - The resource type.
- address 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. - auto
Delete Boolean - Indicates whether this primary_ip will be automatically deleted when
vni
is deleted. Default value:true
. - deleteds
List<Is
Instance Network Attachment Virtual Network Interface Primary Ip Deleted> - If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- href String
- The URL for this reserved IP.
- name String
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- reserved
Ip String - The unique identifier for this reserved IP.
- resource
Type String - The resource type.
- address 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. - auto
Delete boolean - Indicates whether this primary_ip will be automatically deleted when
vni
is deleted. Default value:true
. - deleteds
Is
Instance Network Attachment Virtual Network Interface Primary Ip Deleted[] - If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- href string
- The URL for this reserved IP.
- name string
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- reserved
Ip string - The unique identifier for this reserved IP.
- resource
Type string - The resource type.
- address str
- 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. - auto_
delete bool - Indicates whether this primary_ip will be automatically deleted when
vni
is deleted. Default value:true
. - deleteds
Sequence[Is
Instance Network Attachment Virtual Network Interface Primary Ip Deleted] - If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- href str
- The URL for this reserved IP.
- name str
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- reserved_
ip str - The unique identifier for this reserved IP.
- resource_
type str - The resource type.
- address 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. - auto
Delete Boolean - Indicates whether this primary_ip will be automatically deleted when
vni
is deleted. Default value:true
. - deleteds List<Property Map>
- If present, this property indicates the referenced resource has been deleted, and provides some supplementary information. Nested schema for deleted:
- href String
- The URL for this reserved IP.
- name String
- The name for this reserved IP. The name is unique across all reserved IPs in a subnet.
- reserved
Ip String - The unique identifier for this reserved IP.
- resource
Type String - The resource type.
IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpDeleted, IsInstanceNetworkAttachmentVirtualNetworkInterfacePrimaryIpDeletedArgs
- More
Info string - Link to documentation about deleted resources.
- More
Info string - Link to documentation about deleted resources.
- more
Info String - Link to documentation about deleted resources.
- more
Info string - Link to documentation about deleted resources.
- more_
info str - Link to documentation about deleted resources.
- more
Info String - Link to documentation about deleted resources.
Import
You can import the ibm_is_instance_network_attachment
resource by using id
.
The id
property can be formed from instance
, and id
in the following format:
instance
: A string. The virtual server instance identifier.id
: A string. The instance network attachment identifier.
Syntax
$ pulumi import ibm:index/isInstanceNetworkAttachment:IsInstanceNetworkAttachment is_instance_network_attachment <instance>/<id>
Example
$ pulumi import ibm:index/isInstanceNetworkAttachment:IsInstanceNetworkAttachment is_instance_network_attachment 0716-a4c2c0c6-65c2-4b6a-8293-3f3bded0a5c6/0716-f92b-456a-a162-7a8c26dd5c6
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.