Class BareMetalServer

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class BareMetalServer
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    BareMetalServer.
    • Method Detail

      • getBandwidth

        public Long getBandwidth()
        Gets the bandwidth. The total bandwidth (in megabits per second) shared across the bare metal server network attachments or bare metal server network interfaces.
        Returns:
        the bandwidth
      • getBootTarget

        public BareMetalServerBootTarget getBootTarget()
        Gets the bootTarget. The possible resource types for this property are expected to expand in the future.
        Returns:
        the bootTarget
      • getCpu

        public BareMetalServerCPU getCpu()
        Gets the cpu. The bare metal server CPU configuration.
        Returns:
        the cpu
      • getCreatedAt

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

        public String getCrn()
        Gets the crn. The CRN for this bare metal server.
        Returns:
        the crn
      • getDisks

        public List<BareMetalServerDisk> getDisks()
        Gets the disks. The disks for this bare metal server, including any disks that are associated with the `boot_target`.
        Returns:
        the disks
      • isEnableSecureBoot

        public Boolean isEnableSecureBoot()
        Gets the enableSecureBoot. Indicates whether secure boot is enabled. If enabled, the image must support secure boot or the server will fail to boot.
        Returns:
        the enableSecureBoot
      • getHref

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

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

        public List<BareMetalServerLifecycleReason> getLifecycleReasons()
        Gets the lifecycleReasons. The reasons for the current `lifecycle_state` (if any). The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.
        Returns:
        the lifecycleReasons
      • getLifecycleState

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

        public Long getMemory()
        Gets the memory. The amount of memory, truncated to whole gibibytes.
        Returns:
        the memory
      • getName

        public String getName()
        Gets the name. The name for this bare metal server. The name is unique across all bare metal servers in the region.
        Returns:
        the name
      • getNetworkAttachments

        public List<BareMetalServerNetworkAttachmentReference> getNetworkAttachments()
        Gets the networkAttachments. The network attachments for this bare metal server, including the primary network attachment.
        Returns:
        the networkAttachments
      • getNetworkInterfaces

        public List<NetworkInterfaceBareMetalServerContextReference> getNetworkInterfaces()
        Gets the networkInterfaces. The network interfaces for this bare metal server, including the primary network interface. If this bare metal server has network attachments, each 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.
        Returns:
        the networkInterfaces
      • getPrimaryNetworkAttachment

        public BareMetalServerNetworkAttachmentReference getPrimaryNetworkAttachment()
        Gets the primaryNetworkAttachment. The primary network attachment for this bare metal server.
        Returns:
        the primaryNetworkAttachment
      • getPrimaryNetworkInterface

        public NetworkInterfaceBareMetalServerContextReference getPrimaryNetworkInterface()
        Gets the primaryNetworkInterface. The primary network interface for this bare metal server. If this bare metal server has network attachments, this primary network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of the primary network attachment and its attached virtual network interface.
        Returns:
        the primaryNetworkInterface
      • getProfile

        public BareMetalServerProfileReference getProfile()
        Gets the profile. The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-bare-metal-servers-profile) for this bare metal server.
        Returns:
        the profile
      • getResourceGroup

        public ResourceGroupReference getResourceGroup()
        Gets the resourceGroup. The resource group for this bare metal server.
        Returns:
        the resourceGroup
      • getResourceType

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

        public String getStatus()
        Gets the status. The status of the bare metal server.
        Returns:
        the status
      • getStatusReasons

        public List<BareMetalServerStatusReason> getStatusReasons()
        Gets the statusReasons. The reasons for the current status (if any). The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.
        Returns:
        the statusReasons
      • getVpc

        public VPCReference getVpc()
        Gets the vpc. The VPC this bare metal server resides in.
        Returns:
        the vpc
      • getZone

        public ZoneReference getZone()
        Gets the zone. The zone this bare metal server resides in.
        Returns:
        the zone