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
  • Method Details

    • getCreatedAt

      public Date getCreatedAt()
      Gets the createdAt. The date and time that the bare metal server network attachment was created.
      Returns:
      the createdAt
    • getHref

      public String getHref()
      Gets the href. The URL for this bare metal server network attachment.
      Returns:
      the href
    • getId

      public String getId()
      Gets the id. The unique identifier for this bare metal server network attachment.
      Returns:
      the id
    • getInterfaceType

      public String 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

      public String getLifecycleState()
      Gets the lifecycleState. The lifecycle state of the bare metal server network attachment.
      Returns:
      the lifecycleState
    • getName

      public String 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

      public Long getPortSpeed()
      Gets the portSpeed. The port speed for this bare metal server network attachment in Mbps.
      Returns:
      the portSpeed
    • getPrimaryIp

      public ReservedIPReference getPrimaryIp()
      Gets the primaryIp. The primary IP address of the virtual network interface for the bare metal server network attachment.
      Returns:
      the primaryIp
    • getResourceType

      public String getResourceType()
      Gets the resourceType. The resource type.
      Returns:
      the resourceType
    • getSubnet

      public SubnetReference getSubnet()
      Gets the subnet. The subnet of the virtual network interface for the bare metal server network attachment.
      Returns:
      the subnet
    • getType

      public String 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

      public VirtualNetworkInterfaceReferenceAttachmentContext getVirtualNetworkInterface()
      Gets the virtualNetworkInterface. The virtual network interface for this bare metal server network attachment.
      Returns:
      the virtualNetworkInterface
    • getAllowedVlans

      public List<Long> getAllowedVlans()
      Gets the allowedVlans. The VLAN IDs allowed for `vlan` attachments using this PCI attachment.
      Returns:
      the allowedVlans
    • isAllowToFloat

      public Boolean 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

      public Long getVlan()
      Gets the vlan. The IEEE 802.1Q VLAN ID that must be used for all traffic on this attachment.
      Returns:
      the vlan