1. Packages
  2. Ibm Provider
  3. API Docs
  4. IsInstanceNetworkInterface
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.IsInstanceNetworkInterface

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fs from "fs";
    import * as ibm from "@pulumi/ibm";
    
    const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
    const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
        vpc: exampleIsVpc.isVpcId,
        zone: "us-south-1",
        ipv4CidrBlock: "10.240.0.0/24",
    });
    const exampleIsSshKey = new ibm.IsSshKey("exampleIsSshKey", {publicKey: fs.readFileSync("~/.ssh/id_rsa.pub", "utf8")});
    const exampleIsInstance = new ibm.IsInstance("exampleIsInstance", {
        image: "a7a0626c-f97e-4180-afbe-0331ec62f32a",
        profile: "bx2-2x8",
        primaryNetworkInterface: {
            subnet: exampleIsSubnet.isSubnetId,
        },
        networkInterfaces: [{
            name: "eth1",
            subnet: exampleIsSubnet.isSubnetId,
        }],
        vpc: exampleIsVpc.isVpcId,
        zone: "us-south-1",
        keys: [exampleIsSshKey.isSshKeyId],
    });
    const exampleIsInstanceNetworkInterface = new ibm.IsInstanceNetworkInterface("exampleIsInstanceNetworkInterface", {
        instance: exampleIsInstance.isInstanceId,
        subnet: exampleIsSubnet.isSubnetId,
        allowIpSpoofing: true,
        primaryIpv4Address: "10.0.0.5",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example_is_vpc = ibm.IsVpc("exampleIsVpc")
    example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
        vpc=example_is_vpc.is_vpc_id,
        zone="us-south-1",
        ipv4_cidr_block="10.240.0.0/24")
    example_is_ssh_key = ibm.IsSshKey("exampleIsSshKey", public_key=(lambda path: open(path).read())("~/.ssh/id_rsa.pub"))
    example_is_instance = ibm.IsInstance("exampleIsInstance",
        image="a7a0626c-f97e-4180-afbe-0331ec62f32a",
        profile="bx2-2x8",
        primary_network_interface={
            "subnet": example_is_subnet.is_subnet_id,
        },
        network_interfaces=[{
            "name": "eth1",
            "subnet": example_is_subnet.is_subnet_id,
        }],
        vpc=example_is_vpc.is_vpc_id,
        zone="us-south-1",
        keys=[example_is_ssh_key.is_ssh_key_id])
    example_is_instance_network_interface = ibm.IsInstanceNetworkInterface("exampleIsInstanceNetworkInterface",
        instance=example_is_instance.is_instance_id,
        subnet=example_is_subnet.is_subnet_id,
        allow_ip_spoofing=True,
        primary_ipv4_address="10.0.0.5")
    
    package main
    
    import (
    	"os"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func readFileOrPanic(path string) pulumi.StringPtrInput {
    	data, err := os.ReadFile(path)
    	if err != nil {
    		panic(err.Error())
    	}
    	return pulumi.String(string(data))
    }
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
    		if err != nil {
    			return err
    		}
    		exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
    			Vpc:           exampleIsVpc.IsVpcId,
    			Zone:          pulumi.String("us-south-1"),
    			Ipv4CidrBlock: pulumi.String("10.240.0.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleIsSshKey, err := ibm.NewIsSshKey(ctx, "exampleIsSshKey", &ibm.IsSshKeyArgs{
    			PublicKey: pulumi.String(readFileOrPanic("~/.ssh/id_rsa.pub")),
    		})
    		if err != nil {
    			return err
    		}
    		exampleIsInstance, err := ibm.NewIsInstance(ctx, "exampleIsInstance", &ibm.IsInstanceArgs{
    			Image:   pulumi.String("a7a0626c-f97e-4180-afbe-0331ec62f32a"),
    			Profile: pulumi.String("bx2-2x8"),
    			PrimaryNetworkInterface: &ibm.IsInstancePrimaryNetworkInterfaceArgs{
    				Subnet: exampleIsSubnet.IsSubnetId,
    			},
    			NetworkInterfaces: ibm.IsInstanceNetworkInterfaceTypeArray{
    				&ibm.IsInstanceNetworkInterfaceTypeArgs{
    					Name:   pulumi.String("eth1"),
    					Subnet: exampleIsSubnet.IsSubnetId,
    				},
    			},
    			Vpc:  exampleIsVpc.IsVpcId,
    			Zone: pulumi.String("us-south-1"),
    			Keys: pulumi.StringArray{
    				exampleIsSshKey.IsSshKeyId,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ibm.NewIsInstanceNetworkInterface(ctx, "exampleIsInstanceNetworkInterface", &ibm.IsInstanceNetworkInterfaceArgs{
    			Instance:           exampleIsInstance.IsInstanceId,
    			Subnet:             exampleIsSubnet.IsSubnetId,
    			AllowIpSpoofing:    pulumi.Bool(true),
    			PrimaryIpv4Address: pulumi.String("10.0.0.5"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");
    
        var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
        {
            Vpc = exampleIsVpc.IsVpcId,
            Zone = "us-south-1",
            Ipv4CidrBlock = "10.240.0.0/24",
        });
    
        var exampleIsSshKey = new Ibm.IsSshKey("exampleIsSshKey", new()
        {
            PublicKey = File.ReadAllText("~/.ssh/id_rsa.pub"),
        });
    
        var exampleIsInstance = new Ibm.IsInstance("exampleIsInstance", new()
        {
            Image = "a7a0626c-f97e-4180-afbe-0331ec62f32a",
            Profile = "bx2-2x8",
            PrimaryNetworkInterface = new Ibm.Inputs.IsInstancePrimaryNetworkInterfaceArgs
            {
                Subnet = exampleIsSubnet.IsSubnetId,
            },
            NetworkInterfaces = new[]
            {
                new Ibm.Inputs.IsInstanceNetworkInterfaceArgs
                {
                    Name = "eth1",
                    Subnet = exampleIsSubnet.IsSubnetId,
                },
            },
            Vpc = exampleIsVpc.IsVpcId,
            Zone = "us-south-1",
            Keys = new[]
            {
                exampleIsSshKey.IsSshKeyId,
            },
        });
    
        var exampleIsInstanceNetworkInterface = new Ibm.IsInstanceNetworkInterface("exampleIsInstanceNetworkInterface", new()
        {
            Instance = exampleIsInstance.IsInstanceId,
            Subnet = exampleIsSubnet.IsSubnetId,
            AllowIpSpoofing = true,
            PrimaryIpv4Address = "10.0.0.5",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IsVpc;
    import com.pulumi.ibm.IsSubnet;
    import com.pulumi.ibm.IsSubnetArgs;
    import com.pulumi.ibm.IsSshKey;
    import com.pulumi.ibm.IsSshKeyArgs;
    import com.pulumi.ibm.IsInstance;
    import com.pulumi.ibm.IsInstanceArgs;
    import com.pulumi.ibm.inputs.IsInstancePrimaryNetworkInterfaceArgs;
    import com.pulumi.ibm.inputs.IsInstanceNetworkInterfaceArgs;
    import com.pulumi.ibm.IsInstanceNetworkInterface;
    import com.pulumi.ibm.IsInstanceNetworkInterfaceArgs;
    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 exampleIsVpc = new IsVpc("exampleIsVpc");
    
            var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
                .vpc(exampleIsVpc.isVpcId())
                .zone("us-south-1")
                .ipv4CidrBlock("10.240.0.0/24")
                .build());
    
            var exampleIsSshKey = new IsSshKey("exampleIsSshKey", IsSshKeyArgs.builder()
                .publicKey(Files.readString(Paths.get("~/.ssh/id_rsa.pub")))
                .build());
    
            var exampleIsInstance = new IsInstance("exampleIsInstance", IsInstanceArgs.builder()
                .image("a7a0626c-f97e-4180-afbe-0331ec62f32a")
                .profile("bx2-2x8")
                .primaryNetworkInterface(IsInstancePrimaryNetworkInterfaceArgs.builder()
                    .subnet(exampleIsSubnet.isSubnetId())
                    .build())
                .networkInterfaces(IsInstanceNetworkInterfaceArgs.builder()
                    .name("eth1")
                    .subnet(exampleIsSubnet.isSubnetId())
                    .build())
                .vpc(exampleIsVpc.isVpcId())
                .zone("us-south-1")
                .keys(exampleIsSshKey.isSshKeyId())
                .build());
    
            var exampleIsInstanceNetworkInterface = new IsInstanceNetworkInterface("exampleIsInstanceNetworkInterface", IsInstanceNetworkInterfaceArgs.builder()
                .instance(exampleIsInstance.isInstanceId())
                .subnet(exampleIsSubnet.isSubnetId())
                .allowIpSpoofing(true)
                .primaryIpv4Address("10.0.0.5")
                .build());
    
        }
    }
    
    resources:
      exampleIsVpc:
        type: ibm:IsVpc
      exampleIsSubnet:
        type: ibm:IsSubnet
        properties:
          vpc: ${exampleIsVpc.isVpcId}
          zone: us-south-1
          ipv4CidrBlock: 10.240.0.0/24
      exampleIsSshKey:
        type: ibm:IsSshKey
        properties:
          publicKey:
            fn::readFile: ~/.ssh/id_rsa.pub
      exampleIsInstance:
        type: ibm:IsInstance
        properties:
          image: a7a0626c-f97e-4180-afbe-0331ec62f32a
          profile: bx2-2x8
          primaryNetworkInterface:
            subnet: ${exampleIsSubnet.isSubnetId}
          networkInterfaces:
            - name: eth1
              subnet: ${exampleIsSubnet.isSubnetId}
          vpc: ${exampleIsVpc.isVpcId}
          zone: us-south-1
          keys:
            - ${exampleIsSshKey.isSshKeyId}
      exampleIsInstanceNetworkInterface:
        type: ibm:IsInstanceNetworkInterface
        properties:
          instance: ${exampleIsInstance.isInstanceId}
          subnet: ${exampleIsSubnet.isSubnetId}
          allowIpSpoofing: true
          primaryIpv4Address: 10.0.0.5
    

    Create IsInstanceNetworkInterface Resource

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

    Constructor syntax

    new IsInstanceNetworkInterface(name: string, args: IsInstanceNetworkInterfaceArgs, opts?: CustomResourceOptions);
    @overload
    def IsInstanceNetworkInterface(resource_name: str,
                                   args: IsInstanceNetworkInterfaceInitArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def IsInstanceNetworkInterface(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   instance: Optional[str] = None,
                                   subnet: Optional[str] = None,
                                   allow_ip_spoofing: Optional[bool] = None,
                                   floating_ip: Optional[str] = None,
                                   is_instance_network_interface_id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   primary_ip: Optional[IsInstanceNetworkInterfacePrimaryIpArgs] = None,
                                   primary_ipv4_address: Optional[str] = None,
                                   security_groups: Optional[Sequence[str]] = None)
    func NewIsInstanceNetworkInterface(ctx *Context, name string, args IsInstanceNetworkInterfaceArgs, opts ...ResourceOption) (*IsInstanceNetworkInterface, error)
    public IsInstanceNetworkInterface(string name, IsInstanceNetworkInterfaceArgs args, CustomResourceOptions? opts = null)
    public IsInstanceNetworkInterface(String name, IsInstanceNetworkInterfaceArgs args)
    public IsInstanceNetworkInterface(String name, IsInstanceNetworkInterfaceArgs args, CustomResourceOptions options)
    
    type: ibm:IsInstanceNetworkInterface
    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 IsInstanceNetworkInterfaceArgs
    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 IsInstanceNetworkInterfaceInitArgs
    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 IsInstanceNetworkInterfaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IsInstanceNetworkInterfaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IsInstanceNetworkInterfaceArgs
    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 isInstanceNetworkInterfaceResource = new Ibm.IsInstanceNetworkInterface("isInstanceNetworkInterfaceResource", new()
    {
        Instance = "string",
        Subnet = "string",
        AllowIpSpoofing = false,
        FloatingIp = "string",
        IsInstanceNetworkInterfaceId = "string",
        Name = "string",
        PrimaryIp = new Ibm.Inputs.IsInstanceNetworkInterfacePrimaryIpArgs
        {
            Address = "string",
            AutoDelete = false,
            Href = "string",
            Name = "string",
            ReservedIp = "string",
            ResourceType = "string",
        },
        SecurityGroups = new[]
        {
            "string",
        },
    });
    
    example, err := ibm.NewIsInstanceNetworkInterface(ctx, "isInstanceNetworkInterfaceResource", &ibm.IsInstanceNetworkInterfaceArgs{
    	Instance:                     pulumi.String("string"),
    	Subnet:                       pulumi.String("string"),
    	AllowIpSpoofing:              pulumi.Bool(false),
    	FloatingIp:                   pulumi.String("string"),
    	IsInstanceNetworkInterfaceId: pulumi.String("string"),
    	Name:                         pulumi.String("string"),
    	PrimaryIp: &ibm.IsInstanceNetworkInterfacePrimaryIpArgs{
    		Address:      pulumi.String("string"),
    		AutoDelete:   pulumi.Bool(false),
    		Href:         pulumi.String("string"),
    		Name:         pulumi.String("string"),
    		ReservedIp:   pulumi.String("string"),
    		ResourceType: pulumi.String("string"),
    	},
    	SecurityGroups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var isInstanceNetworkInterfaceResource = new IsInstanceNetworkInterface("isInstanceNetworkInterfaceResource", IsInstanceNetworkInterfaceArgs.builder()
        .instance("string")
        .subnet("string")
        .allowIpSpoofing(false)
        .floatingIp("string")
        .isInstanceNetworkInterfaceId("string")
        .name("string")
        .primaryIp(IsInstanceNetworkInterfacePrimaryIpArgs.builder()
            .address("string")
            .autoDelete(false)
            .href("string")
            .name("string")
            .reservedIp("string")
            .resourceType("string")
            .build())
        .securityGroups("string")
        .build());
    
    is_instance_network_interface_resource = ibm.IsInstanceNetworkInterface("isInstanceNetworkInterfaceResource",
        instance="string",
        subnet="string",
        allow_ip_spoofing=False,
        floating_ip="string",
        is_instance_network_interface_id="string",
        name="string",
        primary_ip={
            "address": "string",
            "auto_delete": False,
            "href": "string",
            "name": "string",
            "reserved_ip": "string",
            "resource_type": "string",
        },
        security_groups=["string"])
    
    const isInstanceNetworkInterfaceResource = new ibm.IsInstanceNetworkInterface("isInstanceNetworkInterfaceResource", {
        instance: "string",
        subnet: "string",
        allowIpSpoofing: false,
        floatingIp: "string",
        isInstanceNetworkInterfaceId: "string",
        name: "string",
        primaryIp: {
            address: "string",
            autoDelete: false,
            href: "string",
            name: "string",
            reservedIp: "string",
            resourceType: "string",
        },
        securityGroups: ["string"],
    });
    
    type: ibm:IsInstanceNetworkInterface
    properties:
        allowIpSpoofing: false
        floatingIp: string
        instance: string
        isInstanceNetworkInterfaceId: string
        name: string
        primaryIp:
            address: string
            autoDelete: false
            href: string
            name: string
            reservedIp: string
            resourceType: string
        securityGroups:
            - string
        subnet: string
    

    IsInstanceNetworkInterface 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 IsInstanceNetworkInterface resource accepts the following input properties:

    Instance string
    The instance identifier.
    Subnet string

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    AllowIpSpoofing bool
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    FloatingIp string
    The ID of the floating IP to attach to this network interface.
    IsInstanceNetworkInterfaceId string
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    Name string
    The user-defined name for this network interface.
    PrimaryIp IsInstanceNetworkInterfacePrimaryIp
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    PrimaryIpv4Address string
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    SecurityGroups List<string>
    A comma separated list of security groups to add to the primary network interface.
    Instance string
    The instance identifier.
    Subnet string

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    AllowIpSpoofing bool
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    FloatingIp string
    The ID of the floating IP to attach to this network interface.
    IsInstanceNetworkInterfaceId string
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    Name string
    The user-defined name for this network interface.
    PrimaryIp IsInstanceNetworkInterfacePrimaryIpArgs
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    PrimaryIpv4Address string
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    SecurityGroups []string
    A comma separated list of security groups to add to the primary network interface.
    instance String
    The instance identifier.
    subnet String

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    allowIpSpoofing Boolean
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    floatingIp String
    The ID of the floating IP to attach to this network interface.
    isInstanceNetworkInterfaceId String
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name String
    The user-defined name for this network interface.
    primaryIp IsInstanceNetworkInterfacePrimaryIp
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    primaryIpv4Address String
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    securityGroups List<String>
    A comma separated list of security groups to add to the primary network interface.
    instance string
    The instance identifier.
    subnet string

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    allowIpSpoofing boolean
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    floatingIp string
    The ID of the floating IP to attach to this network interface.
    isInstanceNetworkInterfaceId string
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name string
    The user-defined name for this network interface.
    primaryIp IsInstanceNetworkInterfacePrimaryIp
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    primaryIpv4Address string
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    securityGroups string[]
    A comma separated list of security groups to add to the primary network interface.
    instance str
    The instance identifier.
    subnet str

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    allow_ip_spoofing bool
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    floating_ip str
    The ID of the floating IP to attach to this network interface.
    is_instance_network_interface_id str
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name str
    The user-defined name for this network interface.
    primary_ip IsInstanceNetworkInterfacePrimaryIpArgs
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    primary_ipv4_address str
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    security_groups Sequence[str]
    A comma separated list of security groups to add to the primary network interface.
    instance String
    The instance identifier.
    subnet String

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    allowIpSpoofing Boolean
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    floatingIp String
    The ID of the floating IP to attach to this network interface.
    isInstanceNetworkInterfaceId String
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name String
    The user-defined name for this network interface.
    primaryIp Property Map
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    primaryIpv4Address String
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    securityGroups List<String>
    A comma separated list of security groups to add to the primary network interface.

    Outputs

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

    CreatedAt string
    (String) The date and time that the network interface was created.
    FloatingIps List<IsInstanceNetworkInterfaceFloatingIp>
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    Href string
    (String) The URL for this network interface.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkInterface string
    (String) The unique identifier of the NetworkInterface.
    PortSpeed double
    (Integer) The network interface port speed in Mbps.
    ResourceType string
    (String) The resource type.
    Status string
    (String) The status of the network interface.
    Type string
    (String) The type of this network interface as it relates to an instance.
    CreatedAt string
    (String) The date and time that the network interface was created.
    FloatingIps []IsInstanceNetworkInterfaceFloatingIpType
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    Href string
    (String) The URL for this network interface.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkInterface string
    (String) The unique identifier of the NetworkInterface.
    PortSpeed float64
    (Integer) The network interface port speed in Mbps.
    ResourceType string
    (String) The resource type.
    Status string
    (String) The status of the network interface.
    Type string
    (String) The type of this network interface as it relates to an instance.
    createdAt String
    (String) The date and time that the network interface was created.
    floatingIps List<IsInstanceNetworkInterfaceFloatingIp>
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    href String
    (String) The URL for this network interface.
    id String
    The provider-assigned unique ID for this managed resource.
    networkInterface String
    (String) The unique identifier of the NetworkInterface.
    portSpeed Double
    (Integer) The network interface port speed in Mbps.
    resourceType String
    (String) The resource type.
    status String
    (String) The status of the network interface.
    type String
    (String) The type of this network interface as it relates to an instance.
    createdAt string
    (String) The date and time that the network interface was created.
    floatingIps IsInstanceNetworkInterfaceFloatingIp[]
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    href string
    (String) The URL for this network interface.
    id string
    The provider-assigned unique ID for this managed resource.
    networkInterface string
    (String) The unique identifier of the NetworkInterface.
    portSpeed number
    (Integer) The network interface port speed in Mbps.
    resourceType string
    (String) The resource type.
    status string
    (String) The status of the network interface.
    type string
    (String) The type of this network interface as it relates to an instance.
    created_at str
    (String) The date and time that the network interface was created.
    floating_ips Sequence[IsInstanceNetworkInterfaceFloatingIp]
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    href str
    (String) The URL for this network interface.
    id str
    The provider-assigned unique ID for this managed resource.
    network_interface str
    (String) The unique identifier of the NetworkInterface.
    port_speed float
    (Integer) The network interface port speed in Mbps.
    resource_type str
    (String) The resource type.
    status str
    (String) The status of the network interface.
    type str
    (String) The type of this network interface as it relates to an instance.
    createdAt String
    (String) The date and time that the network interface was created.
    floatingIps List<Property Map>
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    href String
    (String) The URL for this network interface.
    id String
    The provider-assigned unique ID for this managed resource.
    networkInterface String
    (String) The unique identifier of the NetworkInterface.
    portSpeed Number
    (Integer) The network interface port speed in Mbps.
    resourceType String
    (String) The resource type.
    status String
    (String) The status of the network interface.
    type String
    (String) The type of this network interface as it relates to an instance.

    Look up Existing IsInstanceNetworkInterface Resource

    Get an existing IsInstanceNetworkInterface 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?: IsInstanceNetworkInterfaceState, opts?: CustomResourceOptions): IsInstanceNetworkInterface
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_ip_spoofing: Optional[bool] = None,
            created_at: Optional[str] = None,
            floating_ip: Optional[str] = None,
            floating_ips: Optional[Sequence[IsInstanceNetworkInterfaceFloatingIpArgs]] = None,
            href: Optional[str] = None,
            instance: Optional[str] = None,
            is_instance_network_interface_id: Optional[str] = None,
            name: Optional[str] = None,
            network_interface: Optional[str] = None,
            port_speed: Optional[float] = None,
            primary_ip: Optional[IsInstanceNetworkInterfacePrimaryIpArgs] = None,
            primary_ipv4_address: Optional[str] = None,
            resource_type: Optional[str] = None,
            security_groups: Optional[Sequence[str]] = None,
            status: Optional[str] = None,
            subnet: Optional[str] = None,
            type: Optional[str] = None) -> IsInstanceNetworkInterface
    func GetIsInstanceNetworkInterface(ctx *Context, name string, id IDInput, state *IsInstanceNetworkInterfaceState, opts ...ResourceOption) (*IsInstanceNetworkInterface, error)
    public static IsInstanceNetworkInterface Get(string name, Input<string> id, IsInstanceNetworkInterfaceState? state, CustomResourceOptions? opts = null)
    public static IsInstanceNetworkInterface get(String name, Output<String> id, IsInstanceNetworkInterfaceState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IsInstanceNetworkInterface    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.
    The following state arguments are supported:
    AllowIpSpoofing bool
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    CreatedAt string
    (String) The date and time that the network interface was created.
    FloatingIp string
    The ID of the floating IP to attach to this network interface.
    FloatingIps List<IsInstanceNetworkInterfaceFloatingIp>
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    Href string
    (String) The URL for this network interface.
    Instance string
    The instance identifier.
    IsInstanceNetworkInterfaceId string
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    Name string
    The user-defined name for this network interface.
    NetworkInterface string
    (String) The unique identifier of the NetworkInterface.
    PortSpeed double
    (Integer) The network interface port speed in Mbps.
    PrimaryIp IsInstanceNetworkInterfacePrimaryIp
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    PrimaryIpv4Address string
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    ResourceType string
    (String) The resource type.
    SecurityGroups List<string>
    A comma separated list of security groups to add to the primary network interface.
    Status string
    (String) The status of the network interface.
    Subnet string

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    Type string
    (String) The type of this network interface as it relates to an instance.
    AllowIpSpoofing bool
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    CreatedAt string
    (String) The date and time that the network interface was created.
    FloatingIp string
    The ID of the floating IP to attach to this network interface.
    FloatingIps []IsInstanceNetworkInterfaceFloatingIpTypeArgs
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    Href string
    (String) The URL for this network interface.
    Instance string
    The instance identifier.
    IsInstanceNetworkInterfaceId string
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    Name string
    The user-defined name for this network interface.
    NetworkInterface string
    (String) The unique identifier of the NetworkInterface.
    PortSpeed float64
    (Integer) The network interface port speed in Mbps.
    PrimaryIp IsInstanceNetworkInterfacePrimaryIpArgs
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    PrimaryIpv4Address string
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    ResourceType string
    (String) The resource type.
    SecurityGroups []string
    A comma separated list of security groups to add to the primary network interface.
    Status string
    (String) The status of the network interface.
    Subnet string

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    Type string
    (String) The type of this network interface as it relates to an instance.
    allowIpSpoofing Boolean
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    createdAt String
    (String) The date and time that the network interface was created.
    floatingIp String
    The ID of the floating IP to attach to this network interface.
    floatingIps List<IsInstanceNetworkInterfaceFloatingIp>
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    href String
    (String) The URL for this network interface.
    instance String
    The instance identifier.
    isInstanceNetworkInterfaceId String
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name String
    The user-defined name for this network interface.
    networkInterface String
    (String) The unique identifier of the NetworkInterface.
    portSpeed Double
    (Integer) The network interface port speed in Mbps.
    primaryIp IsInstanceNetworkInterfacePrimaryIp
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    primaryIpv4Address String
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    resourceType String
    (String) The resource type.
    securityGroups List<String>
    A comma separated list of security groups to add to the primary network interface.
    status String
    (String) The status of the network interface.
    subnet String

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    type String
    (String) The type of this network interface as it relates to an instance.
    allowIpSpoofing boolean
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    createdAt string
    (String) The date and time that the network interface was created.
    floatingIp string
    The ID of the floating IP to attach to this network interface.
    floatingIps IsInstanceNetworkInterfaceFloatingIp[]
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    href string
    (String) The URL for this network interface.
    instance string
    The instance identifier.
    isInstanceNetworkInterfaceId string
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name string
    The user-defined name for this network interface.
    networkInterface string
    (String) The unique identifier of the NetworkInterface.
    portSpeed number
    (Integer) The network interface port speed in Mbps.
    primaryIp IsInstanceNetworkInterfacePrimaryIp
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    primaryIpv4Address string
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    resourceType string
    (String) The resource type.
    securityGroups string[]
    A comma separated list of security groups to add to the primary network interface.
    status string
    (String) The status of the network interface.
    subnet string

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    type string
    (String) The type of this network interface as it relates to an instance.
    allow_ip_spoofing bool
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    created_at str
    (String) The date and time that the network interface was created.
    floating_ip str
    The ID of the floating IP to attach to this network interface.
    floating_ips Sequence[IsInstanceNetworkInterfaceFloatingIpArgs]
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    href str
    (String) The URL for this network interface.
    instance str
    The instance identifier.
    is_instance_network_interface_id str
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name str
    The user-defined name for this network interface.
    network_interface str
    (String) The unique identifier of the NetworkInterface.
    port_speed float
    (Integer) The network interface port speed in Mbps.
    primary_ip IsInstanceNetworkInterfacePrimaryIpArgs
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    primary_ipv4_address str
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    resource_type str
    (String) The resource type.
    security_groups Sequence[str]
    A comma separated list of security groups to add to the primary network interface.
    status str
    (String) The status of the network interface.
    subnet str

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    type str
    (String) The type of this network interface as it relates to an instance.
    allowIpSpoofing Boolean
    Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface. The default value is false.
    createdAt String
    (String) The date and time that the network interface was created.
    floatingIp String
    The ID of the floating IP to attach to this network interface.
    floatingIps List<Property Map>
    (List) The floating IPs associated with this network interface. Nested floating_ips blocks have the following structure:
    href String
    (String) The URL for this network interface.
    instance String
    The instance identifier.
    isInstanceNetworkInterfaceId String
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name String
    The user-defined name for this network interface.
    networkInterface String
    (String) The unique identifier of the NetworkInterface.
    portSpeed Number
    (Integer) The network interface port speed in Mbps.
    primaryIp Property Map
    The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. Nested scheme for primary_ip:
    primaryIpv4Address String
    The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.

    Deprecated: Deprecated

    resourceType String
    (String) The resource type.
    securityGroups List<String>
    A comma separated list of security groups to add to the primary network interface.
    status String
    (String) The status of the network interface.
    subnet String

    The unique identifier of the associated subnet.

    Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.

    Note floating_ip cannot be used in conjunction with the target argument of ibm.IsFloatingIp resource and might cause cyclic dependency/unexpected issues if used used both ways.

    Note Using ibm.IsSecurityGroupTarget to attach security groups to the network interface along with security_groups field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.

    type String
    (String) The type of this network interface as it relates to an instance.

    Supporting Types

    IsInstanceNetworkInterfaceFloatingIp, IsInstanceNetworkInterfaceFloatingIpArgs

    Address string
    (String) The globally unique IP address.
    Crn string
    (String) The CRN for this floating IP.
    Deleteds List<IsInstanceNetworkInterfaceFloatingIpDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested deleted blocks have the following structure:
    Href string
    (String) The URL for this network interface.
    Id string
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    Name string
    The user-defined name for this network interface.
    Address string
    (String) The globally unique IP address.
    Crn string
    (String) The CRN for this floating IP.
    Deleteds []IsInstanceNetworkInterfaceFloatingIpDeleted
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested deleted blocks have the following structure:
    Href string
    (String) The URL for this network interface.
    Id string
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    Name string
    The user-defined name for this network interface.
    address String
    (String) The globally unique IP address.
    crn String
    (String) The CRN for this floating IP.
    deleteds List<IsInstanceNetworkInterfaceFloatingIpDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested deleted blocks have the following structure:
    href String
    (String) The URL for this network interface.
    id String
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name String
    The user-defined name for this network interface.
    address string
    (String) The globally unique IP address.
    crn string
    (String) The CRN for this floating IP.
    deleteds IsInstanceNetworkInterfaceFloatingIpDeleted[]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested deleted blocks have the following structure:
    href string
    (String) The URL for this network interface.
    id string
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name string
    The user-defined name for this network interface.
    address str
    (String) The globally unique IP address.
    crn str
    (String) The CRN for this floating IP.
    deleteds Sequence[IsInstanceNetworkInterfaceFloatingIpDeleted]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested deleted blocks have the following structure:
    href str
    (String) The URL for this network interface.
    id str
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name str
    The user-defined name for this network interface.
    address String
    (String) The globally unique IP address.
    crn String
    (String) The CRN for this floating IP.
    deleteds List<Property Map>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested deleted blocks have the following structure:
    href String
    (String) The URL for this network interface.
    id String
    (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
    name String
    The user-defined name for this network interface.

    IsInstanceNetworkInterfaceFloatingIpDeleted, IsInstanceNetworkInterfaceFloatingIpDeletedArgs

    MoreInfo string
    (String) Link to documentation about deleted resources.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.
    moreInfo string
    (String) Link to documentation about deleted resources.
    more_info str
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.

    IsInstanceNetworkInterfacePrimaryIp, IsInstanceNetworkInterfacePrimaryIpArgs

    Address string
    The IP address. Same as primary_ipv4_address
    AutoDelete bool
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
    Href string
    (String) The URL for this network interface.
    Name string
    The user-defined or system-provided name for this reserved IP
    ReservedIp string
    The unique identifier for this reserved IP
    ResourceType string
    (String) The resource type.
    Address string
    The IP address. Same as primary_ipv4_address
    AutoDelete bool
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
    Href string
    (String) The URL for this network interface.
    Name string
    The user-defined or system-provided name for this reserved IP
    ReservedIp string
    The unique identifier for this reserved IP
    ResourceType string
    (String) The resource type.
    address String
    The IP address. Same as primary_ipv4_address
    autoDelete Boolean
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
    href String
    (String) The URL for this network interface.
    name String
    The user-defined or system-provided name for this reserved IP
    reservedIp String
    The unique identifier for this reserved IP
    resourceType String
    (String) The resource type.
    address string
    The IP address. Same as primary_ipv4_address
    autoDelete boolean
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
    href string
    (String) The URL for this network interface.
    name string
    The user-defined or system-provided name for this reserved IP
    reservedIp string
    The unique identifier for this reserved IP
    resourceType string
    (String) The resource type.
    address str
    The IP address. Same as primary_ipv4_address
    auto_delete bool
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
    href str
    (String) The URL for this network interface.
    name str
    The user-defined or system-provided name for this reserved IP
    reserved_ip str
    The unique identifier for this reserved IP
    resource_type str
    (String) The resource type.
    address String
    The IP address. Same as primary_ipv4_address
    autoDelete Boolean
    Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
    href String
    (String) The URL for this network interface.
    name String
    The user-defined or system-provided name for this reserved IP
    reservedIp String
    The unique identifier for this reserved IP
    resourceType String
    (String) The resource type.

    Import

    You can import the ibm_is_instance_network_interface resource by using id.

    The id property can be formed from instance_ID, and network_interface_ID in the following format:

    instance/network_interface

    • instance: A string. The instance identifier.

    • network_interface: A string. The network interface identifier.

    $ pulumi import ibm:index/isInstanceNetworkInterface:IsInstanceNetworkInterface is_instance_network_interface <instance>/<network_interface>
    

    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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud