java.lang.Object
org.jclouds.openstack.v2_0.domain.Resource
org.jclouds.openstack.nova.v2_0.domain.Server
All Implemented Interfaces:
Comparable<Resource>
Direct Known Subclasses:
ServerWithSecurityGroups

public class Server extends Resource
A server is a virtual machine instance in the compute system. Flavor and image are requisite elements when creating a server.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • builder

      public static Server.Builder<?> builder()
    • toBuilder

      public Server.Builder<?> toBuilder()
      Overrides:
      toBuilder in class Resource
    • getUuid

      @Nullable public String getUuid()
      only present until the id is in uuid form
      Returns:
      uuid, if id is an integer val
    • getTenantId

      public String getTenantId()
    • getUserId

      public String getUserId()
    • getUpdated

      @Nullable public Date getUpdated()
    • getCreated

      public Date getCreated()
    • getHostId

      @Nullable public String getHostId()
      Returns:
      host identifier, or null if in Server.Status.BUILD
    • getAccessIPv4

      @Nullable public String getAccessIPv4()
    • getAccessIPv6

      @Nullable public String getAccessIPv6()
    • getStatus

      public Server.Status getStatus()
    • getConfigDrive

      @Nullable public String getConfigDrive()
    • getImage

      public Resource getImage()
    • getFlavor

      public Resource getFlavor()
    • getMetadata

      public Map<String,String> getMetadata()
    • getAddresses

      public com.google.common.collect.Multimap<String,Address> getAddresses()
      Returns:
      the ip addresses assigned to the server
    • getKeyName

      @Nullable public String getKeyName()
      Returns:
      keyName if extension is present and there is a value for this server
      See Also:
      • KeyPairApi
    • getExtendedStatus

      public com.google.common.base.Optional<ServerExtendedStatus> getExtendedStatus()
      Retrieves the extended server status fields (alias "OS-EXT-STS")

      NOTE: This field is only present if the Extended Status extension is installed.

      See Also:
    • getExtendedAttributes

      public com.google.common.base.Optional<ServerExtendedAttributes> getExtendedAttributes()
      Retrieves the extended server attributes fields (alias "OS-EXT-SRV-ATTR")

      NOTE: This field is only present if the The Extended Server Attributes API extension is installed.

      See Also:
    • getDiskConfig

      public com.google.common.base.Optional<String> getDiskConfig()
      Disk config attribute from the Disk Config Extension (alias "OS-DCF"). One of DISK_CONFIG_AUTO or DISK_CONFIG_MANUAL. This field is only present if the Disk Config extension is installed.

      NOTE: Typically a field like this would be implemented as an enum but this field was originally implmented as a String and DISK_CONFIG_AUTO and DISK_CONFIG_MANUAL were added later as Strings to preserve backwards compatibility.

      See Also:
    • getAvailabilityZone

      @Nullable public com.google.common.base.Optional<String> getAvailabilityZone()
      return the Availability Zone of a server
      See Also:
    • string

      protected com.google.common.base.MoreObjects.ToStringHelper string()
      Overrides:
      string in class Resource