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

ibm.IsBareMetalServerNetworkInterface

Explore with Pulumi AI

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

    Create, update, or delete a Network Interface on an existing Bare Metal Server for VPC. For more information, about managing VPC Bare Metal Server, see Network of Bare Metal Servers for VPC. User is_bare_metal_server_network_interface_allow_float resource to create a vlan type network interface with allow float.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Example Usage

    In the following example, you can create a Bare Metal Server and add a network interface to it:

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const vpc = new ibm.IsVpc("vpc", {});
    const subnet = new ibm.IsSubnet("subnet", {
        vpc: vpc.isVpcId,
        zone: "us-south-3",
        ipv4CidrBlock: "10.240.129.0/24",
    });
    const ssh = new ibm.IsSshKey("ssh", {publicKey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR"});
    const bms = new ibm.IsBareMetalServer("bms", {
        profile: "mx2d-metal-32x192",
        image: "r134-31c8ca90-2623-48d7-8cf7-737be6fc4c3e",
        zone: "us-south-3",
        keys: [ibm_is_ssh_key.sshkey.id],
        primaryNetworkInterface: {
            subnet: subnet.isSubnetId,
        },
        vpc: vpc.isVpcId,
    });
    const bmsNic = new ibm.IsBareMetalServerNetworkInterface("bmsNic", {
        bareMetalServer: bms.isBareMetalServerId,
        subnet: subnet.isSubnetId,
        allowIpSpoofing: true,
        allowedVlans: [
            101,
            102,
        ],
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    vpc = ibm.IsVpc("vpc")
    subnet = ibm.IsSubnet("subnet",
        vpc=vpc.is_vpc_id,
        zone="us-south-3",
        ipv4_cidr_block="10.240.129.0/24")
    ssh = ibm.IsSshKey("ssh", public_key="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR")
    bms = ibm.IsBareMetalServer("bms",
        profile="mx2d-metal-32x192",
        image="r134-31c8ca90-2623-48d7-8cf7-737be6fc4c3e",
        zone="us-south-3",
        keys=[ibm_is_ssh_key["sshkey"]["id"]],
        primary_network_interface={
            "subnet": subnet.is_subnet_id,
        },
        vpc=vpc.is_vpc_id)
    bms_nic = ibm.IsBareMetalServerNetworkInterface("bmsNic",
        bare_metal_server=bms.is_bare_metal_server_id,
        subnet=subnet.is_subnet_id,
        allow_ip_spoofing=True,
        allowed_vlans=[
            101,
            102,
        ])
    
    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 {
    		vpc, err := ibm.NewIsVpc(ctx, "vpc", nil)
    		if err != nil {
    			return err
    		}
    		subnet, err := ibm.NewIsSubnet(ctx, "subnet", &ibm.IsSubnetArgs{
    			Vpc:           vpc.IsVpcId,
    			Zone:          pulumi.String("us-south-3"),
    			Ipv4CidrBlock: pulumi.String("10.240.129.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ibm.NewIsSshKey(ctx, "ssh", &ibm.IsSshKeyArgs{
    			PublicKey: pulumi.String("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR"),
    		})
    		if err != nil {
    			return err
    		}
    		bms, err := ibm.NewIsBareMetalServer(ctx, "bms", &ibm.IsBareMetalServerArgs{
    			Profile: pulumi.String("mx2d-metal-32x192"),
    			Image:   pulumi.String("r134-31c8ca90-2623-48d7-8cf7-737be6fc4c3e"),
    			Zone:    pulumi.String("us-south-3"),
    			Keys: pulumi.StringArray{
    				ibm_is_ssh_key.Sshkey.Id,
    			},
    			PrimaryNetworkInterface: &ibm.IsBareMetalServerPrimaryNetworkInterfaceArgs{
    				Subnet: subnet.IsSubnetId,
    			},
    			Vpc: vpc.IsVpcId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ibm.NewIsBareMetalServerNetworkInterface(ctx, "bmsNic", &ibm.IsBareMetalServerNetworkInterfaceArgs{
    			BareMetalServer: bms.IsBareMetalServerId,
    			Subnet:          subnet.IsSubnetId,
    			AllowIpSpoofing: pulumi.Bool(true),
    			AllowedVlans: pulumi.Float64Array{
    				pulumi.Float64(101),
    				pulumi.Float64(102),
    			},
    		})
    		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 vpc = new Ibm.IsVpc("vpc");
    
        var subnet = new Ibm.IsSubnet("subnet", new()
        {
            Vpc = vpc.IsVpcId,
            Zone = "us-south-3",
            Ipv4CidrBlock = "10.240.129.0/24",
        });
    
        var ssh = new Ibm.IsSshKey("ssh", new()
        {
            PublicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR",
        });
    
        var bms = new Ibm.IsBareMetalServer("bms", new()
        {
            Profile = "mx2d-metal-32x192",
            Image = "r134-31c8ca90-2623-48d7-8cf7-737be6fc4c3e",
            Zone = "us-south-3",
            Keys = new[]
            {
                ibm_is_ssh_key.Sshkey.Id,
            },
            PrimaryNetworkInterface = new Ibm.Inputs.IsBareMetalServerPrimaryNetworkInterfaceArgs
            {
                Subnet = subnet.IsSubnetId,
            },
            Vpc = vpc.IsVpcId,
        });
    
        var bmsNic = new Ibm.IsBareMetalServerNetworkInterface("bmsNic", new()
        {
            BareMetalServer = bms.IsBareMetalServerId,
            Subnet = subnet.IsSubnetId,
            AllowIpSpoofing = true,
            AllowedVlans = new[]
            {
                101,
                102,
            },
        });
    
    });
    
    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.IsBareMetalServer;
    import com.pulumi.ibm.IsBareMetalServerArgs;
    import com.pulumi.ibm.inputs.IsBareMetalServerPrimaryNetworkInterfaceArgs;
    import com.pulumi.ibm.IsBareMetalServerNetworkInterface;
    import com.pulumi.ibm.IsBareMetalServerNetworkInterfaceArgs;
    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 vpc = new IsVpc("vpc");
    
            var subnet = new IsSubnet("subnet", IsSubnetArgs.builder()
                .vpc(vpc.isVpcId())
                .zone("us-south-3")
                .ipv4CidrBlock("10.240.129.0/24")
                .build());
    
            var ssh = new IsSshKey("ssh", IsSshKeyArgs.builder()
                .publicKey("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR")
                .build());
    
            var bms = new IsBareMetalServer("bms", IsBareMetalServerArgs.builder()
                .profile("mx2d-metal-32x192")
                .image("r134-31c8ca90-2623-48d7-8cf7-737be6fc4c3e")
                .zone("us-south-3")
                .keys(ibm_is_ssh_key.sshkey().id())
                .primaryNetworkInterface(IsBareMetalServerPrimaryNetworkInterfaceArgs.builder()
                    .subnet(subnet.isSubnetId())
                    .build())
                .vpc(vpc.isVpcId())
                .build());
    
            var bmsNic = new IsBareMetalServerNetworkInterface("bmsNic", IsBareMetalServerNetworkInterfaceArgs.builder()
                .bareMetalServer(bms.isBareMetalServerId())
                .subnet(subnet.isSubnetId())
                .allowIpSpoofing(true)
                .allowedVlans(            
                    101,
                    102)
                .build());
    
        }
    }
    
    resources:
      vpc:
        type: ibm:IsVpc
      subnet:
        type: ibm:IsSubnet
        properties:
          vpc: ${vpc.isVpcId}
          zone: us-south-3
          ipv4CidrBlock: 10.240.129.0/24
      ssh:
        type: ibm:IsSshKey
        properties:
          publicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR
      bms:
        type: ibm:IsBareMetalServer
        properties:
          profile: mx2d-metal-32x192
          image: r134-31c8ca90-2623-48d7-8cf7-737be6fc4c3e
          zone: us-south-3
          keys:
            - ${ibm_is_ssh_key.sshkey.id}
          primaryNetworkInterface:
            subnet: ${subnet.isSubnetId}
          vpc: ${vpc.isVpcId}
      bmsNic:
        type: ibm:IsBareMetalServerNetworkInterface
        properties:
          bareMetalServer: ${bms.isBareMetalServerId}
          subnet: ${subnet.isSubnetId}
          allowIpSpoofing: true
          allowedVlans:
            - 101
            - 102
    

    NOTE Creating/Deleting a PCI type network interface would stop and start the bare metal server. Use hard_stop to configure the stopping type, by default hard is enabled, make it false to soft stop the server

    Syntax

    $ terraform import ibm_is_bare_metal_server_network_interface.example <bare_metal_server_id>/<bare_metal_server_network_interface_id>
    

    Example

    $ terraform import ibm_is_bare_metal_server_network_interface.example d7bec597-4726-451f-8a63-e62e6f19c32c/e7bec597-4726-451f-8a63-e62e6f19c32d
    

    Create IsBareMetalServerNetworkInterface Resource

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

    Constructor syntax

    new IsBareMetalServerNetworkInterface(name: string, args: IsBareMetalServerNetworkInterfaceArgs, opts?: CustomResourceOptions);
    @overload
    def IsBareMetalServerNetworkInterface(resource_name: str,
                                          args: IsBareMetalServerNetworkInterfaceInitArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def IsBareMetalServerNetworkInterface(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          bare_metal_server: Optional[str] = None,
                                          subnet: Optional[str] = None,
                                          interface_type: Optional[str] = None,
                                          allowed_vlans: Optional[Sequence[float]] = None,
                                          enable_infrastructure_nat: Optional[bool] = None,
                                          hard_stop: Optional[bool] = None,
                                          allow_interface_to_float: Optional[bool] = None,
                                          is_bare_metal_server_network_interface_id: Optional[str] = None,
                                          name: Optional[str] = None,
                                          primary_ip: Optional[IsBareMetalServerNetworkInterfacePrimaryIpArgs] = None,
                                          security_groups: Optional[Sequence[str]] = None,
                                          allow_ip_spoofing: Optional[bool] = None,
                                          timeouts: Optional[IsBareMetalServerNetworkInterfaceTimeoutsArgs] = None,
                                          vlan: Optional[float] = None)
    func NewIsBareMetalServerNetworkInterface(ctx *Context, name string, args IsBareMetalServerNetworkInterfaceArgs, opts ...ResourceOption) (*IsBareMetalServerNetworkInterface, error)
    public IsBareMetalServerNetworkInterface(string name, IsBareMetalServerNetworkInterfaceArgs args, CustomResourceOptions? opts = null)
    public IsBareMetalServerNetworkInterface(String name, IsBareMetalServerNetworkInterfaceArgs args)
    public IsBareMetalServerNetworkInterface(String name, IsBareMetalServerNetworkInterfaceArgs args, CustomResourceOptions options)
    
    type: ibm:IsBareMetalServerNetworkInterface
    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 IsBareMetalServerNetworkInterfaceArgs
    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 IsBareMetalServerNetworkInterfaceInitArgs
    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 IsBareMetalServerNetworkInterfaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IsBareMetalServerNetworkInterfaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IsBareMetalServerNetworkInterfaceArgs
    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 isBareMetalServerNetworkInterfaceResource = new Ibm.IsBareMetalServerNetworkInterface("isBareMetalServerNetworkInterfaceResource", new()
    {
        BareMetalServer = "string",
        Subnet = "string",
        InterfaceType = "string",
        AllowedVlans = new[]
        {
            0,
        },
        EnableInfrastructureNat = false,
        HardStop = false,
        AllowInterfaceToFloat = false,
        IsBareMetalServerNetworkInterfaceId = "string",
        Name = "string",
        PrimaryIp = new Ibm.Inputs.IsBareMetalServerNetworkInterfacePrimaryIpArgs
        {
            Address = "string",
            AutoDelete = false,
            Href = "string",
            Name = "string",
            ReservedIp = "string",
            ResourceType = "string",
        },
        SecurityGroups = new[]
        {
            "string",
        },
        AllowIpSpoofing = false,
        Timeouts = new Ibm.Inputs.IsBareMetalServerNetworkInterfaceTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Vlan = 0,
    });
    
    example, err := ibm.NewIsBareMetalServerNetworkInterface(ctx, "isBareMetalServerNetworkInterfaceResource", &ibm.IsBareMetalServerNetworkInterfaceArgs{
    	BareMetalServer: pulumi.String("string"),
    	Subnet:          pulumi.String("string"),
    	InterfaceType:   pulumi.String("string"),
    	AllowedVlans: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    	EnableInfrastructureNat:             pulumi.Bool(false),
    	HardStop:                            pulumi.Bool(false),
    	AllowInterfaceToFloat:               pulumi.Bool(false),
    	IsBareMetalServerNetworkInterfaceId: pulumi.String("string"),
    	Name:                                pulumi.String("string"),
    	PrimaryIp: &ibm.IsBareMetalServerNetworkInterfacePrimaryIpArgs{
    		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"),
    	},
    	AllowIpSpoofing: pulumi.Bool(false),
    	Timeouts: &ibm.IsBareMetalServerNetworkInterfaceTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Vlan: pulumi.Float64(0),
    })
    
    var isBareMetalServerNetworkInterfaceResource = new IsBareMetalServerNetworkInterface("isBareMetalServerNetworkInterfaceResource", IsBareMetalServerNetworkInterfaceArgs.builder()
        .bareMetalServer("string")
        .subnet("string")
        .interfaceType("string")
        .allowedVlans(0)
        .enableInfrastructureNat(false)
        .hardStop(false)
        .allowInterfaceToFloat(false)
        .isBareMetalServerNetworkInterfaceId("string")
        .name("string")
        .primaryIp(IsBareMetalServerNetworkInterfacePrimaryIpArgs.builder()
            .address("string")
            .autoDelete(false)
            .href("string")
            .name("string")
            .reservedIp("string")
            .resourceType("string")
            .build())
        .securityGroups("string")
        .allowIpSpoofing(false)
        .timeouts(IsBareMetalServerNetworkInterfaceTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .vlan(0)
        .build());
    
    is_bare_metal_server_network_interface_resource = ibm.IsBareMetalServerNetworkInterface("isBareMetalServerNetworkInterfaceResource",
        bare_metal_server="string",
        subnet="string",
        interface_type="string",
        allowed_vlans=[0],
        enable_infrastructure_nat=False,
        hard_stop=False,
        allow_interface_to_float=False,
        is_bare_metal_server_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"],
        allow_ip_spoofing=False,
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        vlan=0)
    
    const isBareMetalServerNetworkInterfaceResource = new ibm.IsBareMetalServerNetworkInterface("isBareMetalServerNetworkInterfaceResource", {
        bareMetalServer: "string",
        subnet: "string",
        interfaceType: "string",
        allowedVlans: [0],
        enableInfrastructureNat: false,
        hardStop: false,
        allowInterfaceToFloat: false,
        isBareMetalServerNetworkInterfaceId: "string",
        name: "string",
        primaryIp: {
            address: "string",
            autoDelete: false,
            href: "string",
            name: "string",
            reservedIp: "string",
            resourceType: "string",
        },
        securityGroups: ["string"],
        allowIpSpoofing: false,
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        vlan: 0,
    });
    
    type: ibm:IsBareMetalServerNetworkInterface
    properties:
        allowInterfaceToFloat: false
        allowIpSpoofing: false
        allowedVlans:
            - 0
        bareMetalServer: string
        enableInfrastructureNat: false
        hardStop: false
        interfaceType: string
        isBareMetalServerNetworkInterfaceId: string
        name: string
        primaryIp:
            address: string
            autoDelete: false
            href: string
            name: string
            reservedIp: string
            resourceType: string
        securityGroups:
            - string
        subnet: string
        timeouts:
            create: string
            delete: string
            update: string
        vlan: 0
    

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

    BareMetalServer string
    The id for this bare metal server.
    Subnet string
    The associated subnet
    AllowInterfaceToFloat bool
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    AllowedVlans List<double>

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    EnableInfrastructureNat bool
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    HardStop bool
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    InterfaceType string
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    IsBareMetalServerNetworkInterfaceId string
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    Name string
    The user-defined name for this network interface
    PrimaryIp IsBareMetalServerNetworkInterfacePrimaryIp
    title: IPv4, The IP address.
    SecurityGroups List<string>
    Collection of security groups
    Timeouts IsBareMetalServerNetworkInterfaceTimeouts
    Vlan double

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    BareMetalServer string
    The id for this bare metal server.
    Subnet string
    The associated subnet
    AllowInterfaceToFloat bool
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    AllowedVlans []float64

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    EnableInfrastructureNat bool
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    HardStop bool
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    InterfaceType string
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    IsBareMetalServerNetworkInterfaceId string
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    Name string
    The user-defined name for this network interface
    PrimaryIp IsBareMetalServerNetworkInterfacePrimaryIpArgs
    title: IPv4, The IP address.
    SecurityGroups []string
    Collection of security groups
    Timeouts IsBareMetalServerNetworkInterfaceTimeoutsArgs
    Vlan float64

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    bareMetalServer String
    The id for this bare metal server.
    subnet String
    The associated subnet
    allowInterfaceToFloat Boolean
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    allowedVlans List<Double>

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    enableInfrastructureNat Boolean
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    hardStop Boolean
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    interfaceType String
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    isBareMetalServerNetworkInterfaceId String
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    name String
    The user-defined name for this network interface
    primaryIp IsBareMetalServerNetworkInterfacePrimaryIp
    title: IPv4, The IP address.
    securityGroups List<String>
    Collection of security groups
    timeouts IsBareMetalServerNetworkInterfaceTimeouts
    vlan Double

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    bareMetalServer string
    The id for this bare metal server.
    subnet string
    The associated subnet
    allowInterfaceToFloat boolean
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    allowedVlans number[]

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    enableInfrastructureNat boolean
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    hardStop boolean
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    interfaceType string
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    isBareMetalServerNetworkInterfaceId string
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    name string
    The user-defined name for this network interface
    primaryIp IsBareMetalServerNetworkInterfacePrimaryIp
    title: IPv4, The IP address.
    securityGroups string[]
    Collection of security groups
    timeouts IsBareMetalServerNetworkInterfaceTimeouts
    vlan number

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    bare_metal_server str
    The id for this bare metal server.
    subnet str
    The associated subnet
    allow_interface_to_float bool
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    allowed_vlans Sequence[float]

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    enable_infrastructure_nat bool
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    hard_stop bool
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    interface_type str
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    is_bare_metal_server_network_interface_id str
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    name str
    The user-defined name for this network interface
    primary_ip IsBareMetalServerNetworkInterfacePrimaryIpArgs
    title: IPv4, The IP address.
    security_groups Sequence[str]
    Collection of security groups
    timeouts IsBareMetalServerNetworkInterfaceTimeoutsArgs
    vlan float

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    bareMetalServer String
    The id for this bare metal server.
    subnet String
    The associated subnet
    allowInterfaceToFloat Boolean
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    allowedVlans List<Number>

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    enableInfrastructureNat Boolean
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    hardStop Boolean
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    interfaceType String
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    isBareMetalServerNetworkInterfaceId String
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    name String
    The user-defined name for this network interface
    primaryIp Property Map
    title: IPv4, The IP address.
    securityGroups List<String>
    Collection of security groups
    timeouts Property Map
    vlan Number

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    Outputs

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

    FloatingIps List<IsBareMetalServerNetworkInterfaceFloatingIp>
    (List) The floating IPs associated with this network interface.
    Href string
    (String) The URL for this network interface
    Id string
    The provider-assigned unique ID for this managed resource.
    MacAddress string
    (String) The MAC address of the interface. If absent, the value is not known.
    NetworkInterface string
    (String) The network interface id.
    PortSpeed double
    (Integer) The network interface port speed in Mbps
    ResourceType string
    (String)The resource type [ subnet_reserved_ip ]
    Status string
    (String) The status of the network interface.
    Type string
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]
    FloatingIps []IsBareMetalServerNetworkInterfaceFloatingIpType
    (List) The floating IPs associated with this network interface.
    Href string
    (String) The URL for this network interface
    Id string
    The provider-assigned unique ID for this managed resource.
    MacAddress string
    (String) The MAC address of the interface. If absent, the value is not known.
    NetworkInterface string
    (String) The network interface id.
    PortSpeed float64
    (Integer) The network interface port speed in Mbps
    ResourceType string
    (String)The resource type [ subnet_reserved_ip ]
    Status string
    (String) The status of the network interface.
    Type string
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]
    floatingIps List<IsBareMetalServerNetworkInterfaceFloatingIp>
    (List) The floating IPs associated with this network interface.
    href String
    (String) The URL for this network interface
    id String
    The provider-assigned unique ID for this managed resource.
    macAddress String
    (String) The MAC address of the interface. If absent, the value is not known.
    networkInterface String
    (String) The network interface id.
    portSpeed Double
    (Integer) The network interface port speed in Mbps
    resourceType String
    (String)The resource type [ subnet_reserved_ip ]
    status String
    (String) The status of the network interface.
    type String
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]
    floatingIps IsBareMetalServerNetworkInterfaceFloatingIp[]
    (List) The floating IPs associated with this network interface.
    href string
    (String) The URL for this network interface
    id string
    The provider-assigned unique ID for this managed resource.
    macAddress string
    (String) The MAC address of the interface. If absent, the value is not known.
    networkInterface string
    (String) The network interface id.
    portSpeed number
    (Integer) The network interface port speed in Mbps
    resourceType string
    (String)The resource type [ subnet_reserved_ip ]
    status string
    (String) The status of the network interface.
    type string
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]
    floating_ips Sequence[IsBareMetalServerNetworkInterfaceFloatingIp]
    (List) The floating IPs associated with this network interface.
    href str
    (String) The URL for this network interface
    id str
    The provider-assigned unique ID for this managed resource.
    mac_address str
    (String) The MAC address of the interface. If absent, the value is not known.
    network_interface str
    (String) The network interface id.
    port_speed float
    (Integer) The network interface port speed in Mbps
    resource_type str
    (String)The resource type [ subnet_reserved_ip ]
    status str
    (String) The status of the network interface.
    type str
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]
    floatingIps List<Property Map>
    (List) The floating IPs associated with this network interface.
    href String
    (String) The URL for this network interface
    id String
    The provider-assigned unique ID for this managed resource.
    macAddress String
    (String) The MAC address of the interface. If absent, the value is not known.
    networkInterface String
    (String) The network interface id.
    portSpeed Number
    (Integer) The network interface port speed in Mbps
    resourceType String
    (String)The resource type [ subnet_reserved_ip ]
    status String
    (String) The status of the network interface.
    type String
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]

    Look up Existing IsBareMetalServerNetworkInterface Resource

    Get an existing IsBareMetalServerNetworkInterface 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?: IsBareMetalServerNetworkInterfaceState, opts?: CustomResourceOptions): IsBareMetalServerNetworkInterface
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_interface_to_float: Optional[bool] = None,
            allow_ip_spoofing: Optional[bool] = None,
            allowed_vlans: Optional[Sequence[float]] = None,
            bare_metal_server: Optional[str] = None,
            enable_infrastructure_nat: Optional[bool] = None,
            floating_ips: Optional[Sequence[IsBareMetalServerNetworkInterfaceFloatingIpArgs]] = None,
            hard_stop: Optional[bool] = None,
            href: Optional[str] = None,
            interface_type: Optional[str] = None,
            is_bare_metal_server_network_interface_id: Optional[str] = None,
            mac_address: Optional[str] = None,
            name: Optional[str] = None,
            network_interface: Optional[str] = None,
            port_speed: Optional[float] = None,
            primary_ip: Optional[IsBareMetalServerNetworkInterfacePrimaryIpArgs] = None,
            resource_type: Optional[str] = None,
            security_groups: Optional[Sequence[str]] = None,
            status: Optional[str] = None,
            subnet: Optional[str] = None,
            timeouts: Optional[IsBareMetalServerNetworkInterfaceTimeoutsArgs] = None,
            type: Optional[str] = None,
            vlan: Optional[float] = None) -> IsBareMetalServerNetworkInterface
    func GetIsBareMetalServerNetworkInterface(ctx *Context, name string, id IDInput, state *IsBareMetalServerNetworkInterfaceState, opts ...ResourceOption) (*IsBareMetalServerNetworkInterface, error)
    public static IsBareMetalServerNetworkInterface Get(string name, Input<string> id, IsBareMetalServerNetworkInterfaceState? state, CustomResourceOptions? opts = null)
    public static IsBareMetalServerNetworkInterface get(String name, Output<String> id, IsBareMetalServerNetworkInterfaceState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IsBareMetalServerNetworkInterface    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:
    AllowInterfaceToFloat bool
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    AllowedVlans List<double>

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    BareMetalServer string
    The id for this bare metal server.
    EnableInfrastructureNat bool
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    FloatingIps List<IsBareMetalServerNetworkInterfaceFloatingIp>
    (List) The floating IPs associated with this network interface.
    HardStop bool
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    Href string
    (String) The URL for this network interface
    InterfaceType string
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    IsBareMetalServerNetworkInterfaceId string
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    MacAddress string
    (String) The MAC address of the interface. If absent, the value is not known.
    Name string
    The user-defined name for this network interface
    NetworkInterface string
    (String) The network interface id.
    PortSpeed double
    (Integer) The network interface port speed in Mbps
    PrimaryIp IsBareMetalServerNetworkInterfacePrimaryIp
    title: IPv4, The IP address.
    ResourceType string
    (String)The resource type [ subnet_reserved_ip ]
    SecurityGroups List<string>
    Collection of security groups
    Status string
    (String) The status of the network interface.
    Subnet string
    The associated subnet
    Timeouts IsBareMetalServerNetworkInterfaceTimeouts
    Type string
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]
    Vlan double

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    AllowInterfaceToFloat bool
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    AllowedVlans []float64

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    BareMetalServer string
    The id for this bare metal server.
    EnableInfrastructureNat bool
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    FloatingIps []IsBareMetalServerNetworkInterfaceFloatingIpTypeArgs
    (List) The floating IPs associated with this network interface.
    HardStop bool
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    Href string
    (String) The URL for this network interface
    InterfaceType string
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    IsBareMetalServerNetworkInterfaceId string
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    MacAddress string
    (String) The MAC address of the interface. If absent, the value is not known.
    Name string
    The user-defined name for this network interface
    NetworkInterface string
    (String) The network interface id.
    PortSpeed float64
    (Integer) The network interface port speed in Mbps
    PrimaryIp IsBareMetalServerNetworkInterfacePrimaryIpArgs
    title: IPv4, The IP address.
    ResourceType string
    (String)The resource type [ subnet_reserved_ip ]
    SecurityGroups []string
    Collection of security groups
    Status string
    (String) The status of the network interface.
    Subnet string
    The associated subnet
    Timeouts IsBareMetalServerNetworkInterfaceTimeoutsArgs
    Type string
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]
    Vlan float64

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    allowInterfaceToFloat Boolean
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    allowedVlans List<Double>

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    bareMetalServer String
    The id for this bare metal server.
    enableInfrastructureNat Boolean
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    floatingIps List<IsBareMetalServerNetworkInterfaceFloatingIp>
    (List) The floating IPs associated with this network interface.
    hardStop Boolean
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    href String
    (String) The URL for this network interface
    interfaceType String
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    isBareMetalServerNetworkInterfaceId String
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    macAddress String
    (String) The MAC address of the interface. If absent, the value is not known.
    name String
    The user-defined name for this network interface
    networkInterface String
    (String) The network interface id.
    portSpeed Double
    (Integer) The network interface port speed in Mbps
    primaryIp IsBareMetalServerNetworkInterfacePrimaryIp
    title: IPv4, The IP address.
    resourceType String
    (String)The resource type [ subnet_reserved_ip ]
    securityGroups List<String>
    Collection of security groups
    status String
    (String) The status of the network interface.
    subnet String
    The associated subnet
    timeouts IsBareMetalServerNetworkInterfaceTimeouts
    type String
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]
    vlan Double

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    allowInterfaceToFloat boolean
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    allowedVlans number[]

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    bareMetalServer string
    The id for this bare metal server.
    enableInfrastructureNat boolean
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    floatingIps IsBareMetalServerNetworkInterfaceFloatingIp[]
    (List) The floating IPs associated with this network interface.
    hardStop boolean
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    href string
    (String) The URL for this network interface
    interfaceType string
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    isBareMetalServerNetworkInterfaceId string
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    macAddress string
    (String) The MAC address of the interface. If absent, the value is not known.
    name string
    The user-defined name for this network interface
    networkInterface string
    (String) The network interface id.
    portSpeed number
    (Integer) The network interface port speed in Mbps
    primaryIp IsBareMetalServerNetworkInterfacePrimaryIp
    title: IPv4, The IP address.
    resourceType string
    (String)The resource type [ subnet_reserved_ip ]
    securityGroups string[]
    Collection of security groups
    status string
    (String) The status of the network interface.
    subnet string
    The associated subnet
    timeouts IsBareMetalServerNetworkInterfaceTimeouts
    type string
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]
    vlan number

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    allow_interface_to_float bool
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    allowed_vlans Sequence[float]

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    bare_metal_server str
    The id for this bare metal server.
    enable_infrastructure_nat bool
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    floating_ips Sequence[IsBareMetalServerNetworkInterfaceFloatingIpArgs]
    (List) The floating IPs associated with this network interface.
    hard_stop bool
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    href str
    (String) The URL for this network interface
    interface_type str
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    is_bare_metal_server_network_interface_id str
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    mac_address str
    (String) The MAC address of the interface. If absent, the value is not known.
    name str
    The user-defined name for this network interface
    network_interface str
    (String) The network interface id.
    port_speed float
    (Integer) The network interface port speed in Mbps
    primary_ip IsBareMetalServerNetworkInterfacePrimaryIpArgs
    title: IPv4, The IP address.
    resource_type str
    (String)The resource type [ subnet_reserved_ip ]
    security_groups Sequence[str]
    Collection of security groups
    status str
    (String) The status of the network interface.
    subnet str
    The associated subnet
    timeouts IsBareMetalServerNetworkInterfaceTimeoutsArgs
    type str
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]
    vlan float

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    allowInterfaceToFloat Boolean
    (Boolean) Indicates if the interface can float to any other server within the same resource_group. The interface will float automatically if the network detects a GARP or RARP on another bare metal server in the resource group. Applies only to vlan type interfaces.
    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.
    allowedVlans List<Number>

    Indicates what VLAN IDs (for VLAN type only) can use this physical (PCI type) interface. A given VLAN can only be in the allowed_vlans array for one PCI type adapter per bare metal server. This property which controls the VLANs that will be permitted to use the pci interface.

    NOTE Creates a PCI type interface, a physical PCI device can only be created or deleted when the bare metal server is stopped. Use hard_stop as false to soft stop the server, by default its hard

    bareMetalServer String
    The id for this bare metal server.
    enableInfrastructureNat Boolean
    If true, the VPC infrastructure performs any needed NAT operations. If false, the packet is passed unmodified to/from the network interface, allowing the workload to perform any needed NAT operations.
    floatingIps List<Property Map>
    (List) The floating IPs associated with this network interface.
    hardStop Boolean
    Default is true. Applicable for pci type only, controls if the server should be hard stopped.
    href String
    (String) The URL for this network interface
    interfaceType String
    The type of the network interface.[pci]. allowed_vlans is required for pci type.
    isBareMetalServerNetworkInterfaceId String
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    macAddress String
    (String) The MAC address of the interface. If absent, the value is not known.
    name String
    The user-defined name for this network interface
    networkInterface String
    (String) The network interface id.
    portSpeed Number
    (Integer) The network interface port speed in Mbps
    primaryIp Property Map
    title: IPv4, The IP address.
    resourceType String
    (String)The resource type [ subnet_reserved_ip ]
    securityGroups List<String>
    Collection of security groups
    status String
    (String) The status of the network interface.
    subnet String
    The associated subnet
    timeouts Property Map
    type String
    (String) The type of this bare metal server network interface. Supported values are [ primary, secondary ]
    vlan Number

    Indicates the 802.1Q VLAN ID tag that must be used for all traffic on this interface

    NOTE Creates a vlan type network interface, a virtual device, used through a pci device that has the vlan in its array of allowed_vlans.

    Supporting Types

    IsBareMetalServerNetworkInterfaceFloatingIp, IsBareMetalServerNetworkInterfaceFloatingIpArgs

    Address string
    (String) The floating IP address.
    Id string
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    Address string
    (String) The floating IP address.
    Id string
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    address String
    (String) The floating IP address.
    id String
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    address string
    (String) The floating IP address.
    id string
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    address str
    (String) The floating IP address.
    id str
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
    address String
    (String) The floating IP address.
    id String
    (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>

    IsBareMetalServerNetworkInterfacePrimaryIp, IsBareMetalServerNetworkInterfacePrimaryIpArgs

    Address string
    title: IPv4 The IP address. 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.
    AutoDelete bool
    If set to true, this reserved IP will be automatically deleted when the target is deleted or when the reserved IP is unbound.
    Href string
    (String) The URL for this network interface
    Name string
    The user-defined name for this network interface
    ReservedIp string
    The unique identifier for this reserved IP
    ResourceType string
    (String)The resource type [ subnet_reserved_ip ]
    Address string
    title: IPv4 The IP address. 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.
    AutoDelete bool
    If set to true, this reserved IP will be automatically deleted when the target is deleted or when the reserved IP is unbound.
    Href string
    (String) The URL for this network interface
    Name string
    The user-defined name for this network interface
    ReservedIp string
    The unique identifier for this reserved IP
    ResourceType string
    (String)The resource type [ subnet_reserved_ip ]
    address String
    title: IPv4 The IP address. 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.
    autoDelete Boolean
    If set to true, this reserved IP will be automatically deleted when the target is deleted or when the reserved IP is unbound.
    href String
    (String) The URL for this network interface
    name String
    The user-defined name for this network interface
    reservedIp String
    The unique identifier for this reserved IP
    resourceType String
    (String)The resource type [ subnet_reserved_ip ]
    address string
    title: IPv4 The IP address. 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.
    autoDelete boolean
    If set to true, this reserved IP will be automatically deleted when the target is deleted or when the reserved IP is unbound.
    href string
    (String) The URL for this network interface
    name string
    The user-defined name for this network interface
    reservedIp string
    The unique identifier for this reserved IP
    resourceType string
    (String)The resource type [ subnet_reserved_ip ]
    address str
    title: IPv4 The IP address. 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
    If set to true, this reserved IP will be automatically deleted when the target is deleted or when the reserved IP is unbound.
    href str
    (String) The URL for this network interface
    name str
    The user-defined name for this network interface
    reserved_ip str
    The unique identifier for this reserved IP
    resource_type str
    (String)The resource type [ subnet_reserved_ip ]
    address String
    title: IPv4 The IP address. 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.
    autoDelete Boolean
    If set to true, this reserved IP will be automatically deleted when the target is deleted or when the reserved IP is unbound.
    href String
    (String) The URL for this network interface
    name String
    The user-defined name for this network interface
    reservedIp String
    The unique identifier for this reserved IP
    resourceType String
    (String)The resource type [ subnet_reserved_ip ]

    IsBareMetalServerNetworkInterfaceTimeouts, IsBareMetalServerNetworkInterfaceTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    ibm_is_bare_metal_server can be imported using bare metal server ID and network interface id

    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