ibm.IsBareMetalServerNetworkInterface
Explore with Pulumi AI
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 defaulthard
is enabled, make itfalse
tosoft
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:
- Bare
Metal stringServer - The id for this bare metal server.
- Subnet string
- The associated subnet
- Allow
Interface boolTo Float - (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 boolSpoofing - 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 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
asfalse
tosoft
stop the server, by default itshard
- Enable
Infrastructure boolNat - 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 forpci
type only, controls if the server should be hard stopped. - Interface
Type string - The type of the network interface.[pci].
allowed_vlans
is required forpci
type. - Is
Bare stringMetal Server Network Interface Id - (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
- Primary
Ip IsBare Metal Server Network Interface Primary Ip - title: IPv4, The IP address.
- Security
Groups List<string> - Collection of security groups
- Timeouts
Is
Bare Metal Server Network Interface Timeouts - 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.
- Bare
Metal stringServer - The id for this bare metal server.
- Subnet string
- The associated subnet
- Allow
Interface boolTo Float - (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 boolSpoofing - 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 []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
asfalse
tosoft
stop the server, by default itshard
- Enable
Infrastructure boolNat - 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 forpci
type only, controls if the server should be hard stopped. - Interface
Type string - The type of the network interface.[pci].
allowed_vlans
is required forpci
type. - Is
Bare stringMetal Server Network Interface Id - (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
- Primary
Ip IsBare Metal Server Network Interface Primary Ip Args - title: IPv4, The IP address.
- Security
Groups []string - Collection of security groups
- Timeouts
Is
Bare Metal Server Network Interface Timeouts Args - 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.
- bare
Metal StringServer - The id for this bare metal server.
- subnet String
- The associated subnet
- allow
Interface BooleanTo Float - (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 BooleanSpoofing - 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 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
asfalse
tosoft
stop the server, by default itshard
- enable
Infrastructure BooleanNat - 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 Boolean - Default is
true
. Applicable forpci
type only, controls if the server should be hard stopped. - interface
Type String - The type of the network interface.[pci].
allowed_vlans
is required forpci
type. - is
Bare StringMetal Server Network Interface Id - (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
- primary
Ip IsBare Metal Server Network Interface Primary Ip - title: IPv4, The IP address.
- security
Groups List<String> - Collection of security groups
- timeouts
Is
Bare Metal Server Network Interface Timeouts - 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.
- bare
Metal stringServer - The id for this bare metal server.
- subnet string
- The associated subnet
- allow
Interface booleanTo Float - (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 booleanSpoofing - 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 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
asfalse
tosoft
stop the server, by default itshard
- enable
Infrastructure booleanNat - 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 boolean - Default is
true
. Applicable forpci
type only, controls if the server should be hard stopped. - interface
Type string - The type of the network interface.[pci].
allowed_vlans
is required forpci
type. - is
Bare stringMetal Server Network Interface Id - (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
- primary
Ip IsBare Metal Server Network Interface Primary Ip - title: IPv4, The IP address.
- security
Groups string[] - Collection of security groups
- timeouts
Is
Bare Metal Server Network Interface Timeouts - 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_ strserver - The id for this bare metal server.
- subnet str
- The associated subnet
- allow_
interface_ boolto_ float - (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_ boolspoofing - 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
asfalse
tosoft
stop the server, by default itshard
- enable_
infrastructure_ boolnat - 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 forpci
type only, controls if the server should be hard stopped. - interface_
type str - The type of the network interface.[pci].
allowed_vlans
is required forpci
type. - is_
bare_ strmetal_ server_ network_ interface_ id - (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 IsBare Metal Server Network Interface Primary Ip Args - title: IPv4, The IP address.
- security_
groups Sequence[str] - Collection of security groups
- timeouts
Is
Bare Metal Server Network Interface Timeouts Args - 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.
- bare
Metal StringServer - The id for this bare metal server.
- subnet String
- The associated subnet
- allow
Interface BooleanTo Float - (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 BooleanSpoofing - 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 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
asfalse
tosoft
stop the server, by default itshard
- enable
Infrastructure BooleanNat - 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 Boolean - Default is
true
. Applicable forpci
type only, controls if the server should be hard stopped. - interface
Type String - The type of the network interface.[pci].
allowed_vlans
is required forpci
type. - is
Bare StringMetal Server Network Interface Id - (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
- primary
Ip Property Map - title: IPv4, The IP address.
- security
Groups 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:
- Floating
Ips List<IsBare Metal Server Network Interface Floating Ip> - (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.
- Mac
Address string - (String) The MAC address of the interface. If absent, the value is not known.
- Network
Interface string - (String) The network interface id.
- Port
Speed double - (Integer) The network interface port speed in Mbps
- Resource
Type 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 []IsBare Metal Server Network Interface Floating Ip Type - (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.
- Mac
Address string - (String) The MAC address of the interface. If absent, the value is not known.
- Network
Interface string - (String) The network interface id.
- Port
Speed float64 - (Integer) The network interface port speed in Mbps
- Resource
Type 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 List<IsBare Metal Server Network Interface Floating Ip> - (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.
- mac
Address String - (String) The MAC address of the interface. If absent, the value is not known.
- network
Interface String - (String) The network interface id.
- port
Speed Double - (Integer) The network interface port speed in Mbps
- resource
Type 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 IsBare Metal Server Network Interface Floating Ip[] - (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.
- mac
Address string - (String) The MAC address of the interface. If absent, the value is not known.
- network
Interface string - (String) The network interface id.
- port
Speed number - (Integer) The network interface port speed in Mbps
- resource
Type 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[IsBare Metal Server Network Interface Floating Ip] - (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 ]
- floating
Ips 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.
- mac
Address String - (String) The MAC address of the interface. If absent, the value is not known.
- network
Interface String - (String) The network interface id.
- port
Speed Number - (Integer) The network interface port speed in Mbps
- resource
Type 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.
- Allow
Interface boolTo Float - (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 boolSpoofing - 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 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
asfalse
tosoft
stop the server, by default itshard
- Bare
Metal stringServer - The id for this bare metal server.
- Enable
Infrastructure boolNat - 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 List<IsBare Metal Server Network Interface Floating Ip> - (List) The floating IPs associated with this network interface.
- Hard
Stop bool - Default is
true
. Applicable forpci
type only, controls if the server should be hard stopped. - Href string
- (String) The URL for this network interface
- Interface
Type string - The type of the network interface.[pci].
allowed_vlans
is required forpci
type. - Is
Bare stringMetal Server Network Interface Id - (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
- Mac
Address 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
- Network
Interface string - (String) The network interface id.
- Port
Speed double - (Integer) The network interface port speed in Mbps
- Primary
Ip IsBare Metal Server Network Interface Primary Ip - title: IPv4, The IP address.
- Resource
Type string - (String)The resource type [ subnet_reserved_ip ]
- Security
Groups List<string> - Collection of security groups
- Status string
- (String) The status of the network interface.
- Subnet string
- The associated subnet
- Timeouts
Is
Bare Metal Server Network Interface Timeouts - 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.
- Allow
Interface boolTo Float - (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 boolSpoofing - 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 []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
asfalse
tosoft
stop the server, by default itshard
- Bare
Metal stringServer - The id for this bare metal server.
- Enable
Infrastructure boolNat - 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 []IsBare Metal Server Network Interface Floating Ip Type Args - (List) The floating IPs associated with this network interface.
- Hard
Stop bool - Default is
true
. Applicable forpci
type only, controls if the server should be hard stopped. - Href string
- (String) The URL for this network interface
- Interface
Type string - The type of the network interface.[pci].
allowed_vlans
is required forpci
type. - Is
Bare stringMetal Server Network Interface Id - (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
- Mac
Address 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
- Network
Interface string - (String) The network interface id.
- Port
Speed float64 - (Integer) The network interface port speed in Mbps
- Primary
Ip IsBare Metal Server Network Interface Primary Ip Args - title: IPv4, The IP address.
- Resource
Type string - (String)The resource type [ subnet_reserved_ip ]
- Security
Groups []string - Collection of security groups
- Status string
- (String) The status of the network interface.
- Subnet string
- The associated subnet
- Timeouts
Is
Bare Metal Server Network Interface Timeouts Args - 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.
- allow
Interface BooleanTo Float - (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 BooleanSpoofing - 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 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
asfalse
tosoft
stop the server, by default itshard
- bare
Metal StringServer - The id for this bare metal server.
- enable
Infrastructure BooleanNat - 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 List<IsBare Metal Server Network Interface Floating Ip> - (List) The floating IPs associated with this network interface.
- hard
Stop Boolean - Default is
true
. Applicable forpci
type only, controls if the server should be hard stopped. - href String
- (String) The URL for this network interface
- interface
Type String - The type of the network interface.[pci].
allowed_vlans
is required forpci
type. - is
Bare StringMetal Server Network Interface Id - (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
- mac
Address 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
- network
Interface String - (String) The network interface id.
- port
Speed Double - (Integer) The network interface port speed in Mbps
- primary
Ip IsBare Metal Server Network Interface Primary Ip - title: IPv4, The IP address.
- resource
Type String - (String)The resource type [ subnet_reserved_ip ]
- security
Groups List<String> - Collection of security groups
- status String
- (String) The status of the network interface.
- subnet String
- The associated subnet
- timeouts
Is
Bare Metal Server Network Interface Timeouts - 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.
- allow
Interface booleanTo Float - (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 booleanSpoofing - 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 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
asfalse
tosoft
stop the server, by default itshard
- bare
Metal stringServer - The id for this bare metal server.
- enable
Infrastructure booleanNat - 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 IsBare Metal Server Network Interface Floating Ip[] - (List) The floating IPs associated with this network interface.
- hard
Stop boolean - Default is
true
. Applicable forpci
type only, controls if the server should be hard stopped. - href string
- (String) The URL for this network interface
- interface
Type string - The type of the network interface.[pci].
allowed_vlans
is required forpci
type. - is
Bare stringMetal Server Network Interface Id - (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
- mac
Address 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
- network
Interface string - (String) The network interface id.
- port
Speed number - (Integer) The network interface port speed in Mbps
- primary
Ip IsBare Metal Server Network Interface Primary Ip - title: IPv4, The IP address.
- resource
Type string - (String)The resource type [ subnet_reserved_ip ]
- security
Groups string[] - Collection of security groups
- status string
- (String) The status of the network interface.
- subnet string
- The associated subnet
- timeouts
Is
Bare Metal Server Network Interface Timeouts - 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_ boolto_ float - (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_ boolspoofing - 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
asfalse
tosoft
stop the server, by default itshard
- bare_
metal_ strserver - The id for this bare metal server.
- enable_
infrastructure_ boolnat - 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[IsBare Metal Server Network Interface Floating Ip Args] - (List) The floating IPs associated with this network interface.
- hard_
stop bool - Default is
true
. Applicable forpci
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 forpci
type. - is_
bare_ strmetal_ server_ network_ interface_ id - (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 IsBare Metal Server Network Interface Primary Ip Args - 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
Is
Bare Metal Server Network Interface Timeouts Args - 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.
- allow
Interface BooleanTo Float - (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 BooleanSpoofing - 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 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
asfalse
tosoft
stop the server, by default itshard
- bare
Metal StringServer - The id for this bare metal server.
- enable
Infrastructure BooleanNat - 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 List<Property Map> - (List) The floating IPs associated with this network interface.
- hard
Stop Boolean - Default is
true
. Applicable forpci
type only, controls if the server should be hard stopped. - href String
- (String) The URL for this network interface
- interface
Type String - The type of the network interface.[pci].
allowed_vlans
is required forpci
type. - is
Bare StringMetal Server Network Interface Id - (String) The unique identifier for this network interface. Its of the format <bare_metal_server_id>/<network_interface_id>
- mac
Address 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
- network
Interface String - (String) The network interface id.
- port
Speed Number - (Integer) The network interface port speed in Mbps
- primary
Ip Property Map - title: IPv4, The IP address.
- resource
Type String - (String)The resource type [ subnet_reserved_ip ]
- security
Groups 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
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.
- 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 string
- (String) The URL for this network interface
- Name string
- The user-defined name for this network interface
- Reserved
Ip string - The unique identifier for this reserved IP
- Resource
Type 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.
- 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 string
- (String) The URL for this network interface
- Name string
- The user-defined name for this network interface
- Reserved
Ip string - The unique identifier for this reserved IP
- Resource
Type 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.
- auto
Delete 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
- reserved
Ip String - The unique identifier for this reserved IP
- resource
Type 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.
- auto
Delete 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
- reserved
Ip string - The unique identifier for this reserved IP
- resource
Type 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.
- auto
Delete 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
- reserved
Ip String - The unique identifier for this reserved IP
- resource
Type String - (String)The resource type [ subnet_reserved_ip ]
IsBareMetalServerNetworkInterfaceTimeouts, IsBareMetalServerNetworkInterfaceTimeoutsArgs
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.