Class BareMetalServerNetworkAttachment
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.BareMetalServerNetworkAttachment
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
- Direct Known Subclasses:
BareMetalServerNetworkAttachmentByPCI
,BareMetalServerNetworkAttachmentByVLAN
public class BareMetalServerNetworkAttachment
extends com.ibm.cloud.sdk.core.service.model.GenericModel
BareMetalServerNetworkAttachment.
Classes which extend this class:
- BareMetalServerNetworkAttachmentByPCI
- BareMetalServerNetworkAttachmentByVLAN
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The network attachment's interface type: - `pci`: a physical PCI device which can only be created or deleted when the bare metal server is stopped - Has an `allowed_vlans` property which controls the VLANs that will be permitted to use the PCI attachment - Cannot directly use an IEEE 802.1Q tag.static interface
The lifecycle state of the bare metal server network attachment.static interface
The resource type.static interface
The bare metal server network attachment type. -
Method Summary
Modifier and TypeMethodDescriptionGets the allowedVlans.Gets the createdAt.getHref()
Gets the href.getId()
Gets the id.Gets the interfaceType.Gets the lifecycleState.getName()
Gets the name.Gets the portSpeed.Gets the primaryIp.Gets the resourceType.Gets the subnet.getType()
Gets the type.Gets the virtualNetworkInterface.getVlan()
Gets the vlan.Gets the allowToFloat.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
getCreatedAt
Gets the createdAt. The date and time that the bare metal server network attachment was created.- Returns:
- the createdAt
-
getHref
Gets the href. The URL for this bare metal server network attachment.- Returns:
- the href
-
getId
Gets the id. The unique identifier for this bare metal server network attachment.- Returns:
- the id
-
getInterfaceType
Gets the interfaceType. The network attachment's interface type: - `pci`: a physical PCI device which can only be created or deleted when the bare metal server is stopped - Has an `allowed_vlans` property which controls the VLANs that will be permitted to use the PCI attachment - Cannot directly use an IEEE 802.1Q tag. - `vlan`: a virtual device, used through a `pci` device that has the `vlan` in its array of `allowed_vlans`. - Must use an IEEE 802.1Q tag. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the interfaceType
-
getLifecycleState
Gets the lifecycleState. The lifecycle state of the bare metal server network attachment.- Returns:
- the lifecycleState
-
getName
Gets the name. The name for this bare metal server network attachment. The name is unique across all network attachments for the bare metal server.- Returns:
- the name
-
getPortSpeed
Gets the portSpeed. The port speed for this bare metal server network attachment in Mbps.- Returns:
- the portSpeed
-
getPrimaryIp
Gets the primaryIp. The primary IP address of the virtual network interface for the bare metal server network attachment.- Returns:
- the primaryIp
-
getResourceType
-
getSubnet
Gets the subnet. The subnet of the virtual network interface for the bare metal server network attachment.- Returns:
- the subnet
-
getType
Gets the type. The bare metal server network attachment type. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the type
-
getVirtualNetworkInterface
Gets the virtualNetworkInterface. The virtual network interface for this bare metal server network attachment.- Returns:
- the virtualNetworkInterface
-
getAllowedVlans
-
isAllowToFloat
Gets the allowToFloat. Indicates if the data path for the network attachment can float to another bare metal server. Can only be `true` for network attachments with an `interface_type` of `vlan`. If `true`, and the network detects traffic for this data path on another bare metal server in the resource group, the network attachment will be automatically deleted from this bare metal server and a new network attachment with the same `id`, `name` and `vlan` will be created on the other bare metal server. The virtual network interface for this network attachment will be automatically be attached to the new network attachment. For the data path to float, the other bare metal server must be in the same `resource_group`, and must have a network attachment with `interface_type` of `pci` with `allowed_vlans` including this network attachment's `vlan`.- Returns:
- the allowToFloat
-
getVlan
Gets the vlan. The IEEE 802.1Q VLAN ID that must be used for all traffic on this attachment.- Returns:
- the vlan
-