Package com.ibm.cloud.is.vpc.v1.model
Class BareMetalServerNetworkInterface
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.BareMetalServerNetworkInterface
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
- Direct Known Subclasses:
BareMetalServerNetworkInterfaceByHiperSocket
,BareMetalServerNetworkInterfaceByPCI
,BareMetalServerNetworkInterfaceByVLAN
public class BareMetalServerNetworkInterface extends com.ibm.cloud.sdk.core.service.model.GenericModel
BareMetalServerNetworkInterface. Classes which extend this class: - BareMetalServerNetworkInterfaceByHiperSocket - BareMetalServerNetworkInterfaceByPCI - BareMetalServerNetworkInterfaceByVLAN
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BareMetalServerNetworkInterface.InterfaceType
The interface type: - `hipersocket`: a virtual device that provides high-speed TCP/IP connectivity within a `s390x` based system - `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 interface - Cannot directly use an IEEE 802.1Q tag.static interface
BareMetalServerNetworkInterface.ResourceType
The resource type.static interface
BareMetalServerNetworkInterface.Status
The status of the bare metal server network interface.static interface
BareMetalServerNetworkInterface.Type
The bare metal server network interface type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Long>
getAllowedVlans()
Gets the allowedVlans.Date
getCreatedAt()
Gets the createdAt.List<FloatingIPReference>
getFloatingIps()
Gets the floatingIps.String
getHref()
Gets the href.String
getId()
Gets the id.String
getInterfaceType()
Gets the interfaceType.String
getMacAddress()
Gets the macAddress.String
getName()
Gets the name.Long
getPortSpeed()
Gets the portSpeed.ReservedIPReference
getPrimaryIp()
Gets the primaryIp.String
getResourceType()
Gets the resourceType.List<SecurityGroupReference>
getSecurityGroups()
Gets the securityGroups.String
getStatus()
Gets the status.SubnetReference
getSubnet()
Gets the subnet.String
getType()
Gets the type.Long
getVlan()
Gets the vlan.Boolean
isAllowInterfaceToFloat()
Gets the allowInterfaceToFloat.Boolean
isAllowIpSpoofing()
Gets the allowIpSpoofing.Boolean
isEnableInfrastructureNat()
Gets the enableInfrastructureNat.
-
-
-
Method Detail
-
isAllowIpSpoofing
public Boolean isAllowIpSpoofing()
Gets the allowIpSpoofing. Indicates whether source IP spoofing is allowed on this bare metal server network interface. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and source IP spoofing is managed on the attached virtual network interface.- Returns:
- the allowIpSpoofing
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the bare metal server network interface was created. If this bare metal server has network attachments, this network interface was created as a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) when its corresponding network attachment was created.- Returns:
- the createdAt
-
isEnableInfrastructureNat
public Boolean isEnableInfrastructureNat()
Gets the enableInfrastructureNat. If `true`: - The VPC infrastructure performs any needed NAT operations. - `floating_ips` must not have more than one floating IP. If `false`: - Packets are passed unchanged to/from the bare metal server network interface, allowing the workload to perform any needed NAT operations. - `allow_ip_spoofing` must be `false`. - `interface_type` must not be `hipersocket`. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and infrastructure NAT is managed on the attached virtual network interface.- Returns:
- the enableInfrastructureNat
-
getFloatingIps
public List<FloatingIPReference> getFloatingIps()
Gets the floatingIps. The floating IPs associated with this bare metal server network interface. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the floating IPs are associated with the attached virtual network interface.- Returns:
- the floatingIps
-
getHref
public String getHref()
Gets the href. The URL for this bare metal server network interface. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this bare metal server network interface. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the identifier is that of the corresponding network attachment.- Returns:
- the id
-
getInterfaceType
public String getInterfaceType()
Gets the interfaceType. The interface type: - `hipersocket`: a virtual device that provides high-speed TCP/IP connectivity within a `s390x` based system - `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 interface - 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. - Has its own security groups and does not inherit those of the PCI device through which traffic flows. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the interface type is that of the corresponding network attachment. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the interfaceType
-
getMacAddress
public String getMacAddress()
Gets the macAddress. The MAC address of this bare metal server network interface. If the MAC address has not yet been selected, the value will be empty. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the MAC address is that of the attached virtual network interface.- Returns:
- the macAddress
-
getName
public String getName()
Gets the name. The name for this bare metal server network interface. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the name matches its corresponding network attachment.- Returns:
- the name
-
getPortSpeed
public Long getPortSpeed()
Gets the portSpeed. The bare metal server network interface port speed in Mbps. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the port speed is that of its corresponding network attachment.- Returns:
- the portSpeed
-
getPrimaryIp
public ReservedIPReference getPrimaryIp()
Gets the primaryIp.- Returns:
- the primaryIp
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getSecurityGroups
public List<SecurityGroupReference> getSecurityGroups()
Gets the securityGroups. The security groups targeting this bare metal server network interface. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the security groups are associated with the attached virtual network interface.- Returns:
- the securityGroups
-
getStatus
public String getStatus()
Gets the status. The status of the bare metal server network interface. If this bare metal server has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and the status is [computed from them](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients).- Returns:
- the status
-
getSubnet
public SubnetReference getSubnet()
Gets the subnet. The associated subnet.- Returns:
- the subnet
-
getType
public String getType()
Gets the type. The bare metal server network interface type. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the type is that of its corresponding network attachment.- Returns:
- the type
-
getAllowedVlans
public List<Long> getAllowedVlans()
Gets the allowedVlans. The VLAN IDs allowed for `vlan` interfaces using this PCI interface. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the VLAN IDs match the `allow_vlans` of the corresponding network attachment.- Returns:
- the allowedVlans
-
isAllowInterfaceToFloat
public Boolean isAllowInterfaceToFloat()
Gets the allowInterfaceToFloat. Indicates if the data path for the network interface can float to another bare metal server. Can only be `true` for network interfaces 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 interface will be automatically deleted from this bare metal server and a new network interface with the same `id`, `name` and `vlan` will be created on the other bare metal server. For the data path to float, the other bare metal server must be in the same `resource_group`, and must have a network interface with `interface_type` of `pci` with `allowed_vlans` including this network interface's `vlan`. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the value of this property matches that of the `allow_to_float` property of the corresponding network attachment.- Returns:
- the allowInterfaceToFloat
-
getVlan
public Long getVlan()
Gets the vlan. The VLAN ID used in the IEEE 802.1Q tag present in all traffic on this interface. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the VLAN ID matches the `vlan` of the corresponding network attachment.- Returns:
- the vlan
-
-