Package org.openstack4j.model.compute
Interface ServerCreate
-
- All Superinterfaces:
Buildable<ServerCreateBuilder>,ModelEntity,Serializable
- All Known Implementing Classes:
NovaServerCreate
public interface ServerCreate extends ModelEntity, Buildable<ServerCreateBuilder>
The Model used to create a new VM/Server- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddNetwork(String id, String fixedIP)Adds the network.voidaddNetworkPort(String id)Adds network portvoidaddPersonality(String path, String contents)Adds the personality.voidaddSecurityGroup(String name)Adds the security group.StringgetAccessIPv4()StringgetAccessIPv6()StringgetAdminPass()StringgetAvailabilityZone()Gets the availability zone.Server.DiskConfiggetDiskConfig()Controls how the disk is partitionedStringgetFlavorRef()The resources/flavor to be assignedStringgetHost()StringgetHypervisorHostName()StringgetImageRef()A reference to the boot ImageStringgetKeyName()name of keypair to inject into the instanceIntegergetMax()Gets the max.Map<String,String>getMetaData()Gets the meta data.IntegergetMin()StringgetName()The descriptive name for the ServerList<? extends NetworkCreate>getNetworks()Gets the networks.List<Personality>getPersonality()Personality is a list of Files which will be injected onto the server.Map<String,Object>getSchedulerHints()A Map of Key and Value used for scheduler hints on bootupList<? extends SecurityGroup>getSecurityGroups()Gets the security groups.StringgetUserData()Gets the user data.booleanisConfigDrive()The value for config drive
-
-
-
Method Detail
-
getName
String getName()
The descriptive name for the Server- Returns:
- the name of the server
-
getAdminPass
String getAdminPass()
- Returns:
- the administrative password
-
getImageRef
String getImageRef()
A reference to the boot Image- Returns:
- the image identifier
-
getFlavorRef
String getFlavorRef()
The resources/flavor to be assigned- Returns:
- the flavor identifier
-
getAccessIPv4
String getAccessIPv4()
- Returns:
- the accessible IPV4 address
-
getAccessIPv6
String getAccessIPv6()
- Returns:
- the accessible IPV6 address
-
getMin
Integer getMin()
- Returns:
- the min
-
getMax
Integer getMax()
Gets the max.- Returns:
- the max
-
getDiskConfig
Server.DiskConfig getDiskConfig()
Controls how the disk is partitioned- Returns:
- the disk configuration
-
getKeyName
String getKeyName()
name of keypair to inject into the instance- Returns:
- the keypair name
-
getUserData
String getUserData()
Gets the user data.- Returns:
- the user data
-
isConfigDrive
boolean isConfigDrive()
The value for config drive- Returns:
- true, if this is a config based drive
-
getPersonality
List<Personality> getPersonality()
Personality is a list of Files which will be injected onto the server.- Returns:
- the personality
- See Also:
Personality
-
getSecurityGroups
List<? extends SecurityGroup> getSecurityGroups()
Gets the security groups.- Returns:
- the security groups
-
getAvailabilityZone
String getAvailabilityZone()
Gets the availability zone.- Returns:
- the availability zone
-
getHost
String getHost()
-
getHypervisorHostName
String getHypervisorHostName()
-
getNetworks
List<? extends NetworkCreate> getNetworks()
Gets the networks.- Returns:
- the networks
-
getSchedulerHints
Map<String,Object> getSchedulerHints()
A Map of Key and Value used for scheduler hints on bootup- Returns:
- scheduler hints or null
-
addPersonality
void addPersonality(String path, String contents)
Adds the personality.- Parameters:
path- the pathcontents- the contents
-
addSecurityGroup
void addSecurityGroup(String name)
Adds the security group.- Parameters:
name- the name
-
addNetwork
void addNetwork(String id, String fixedIP)
Adds the network.- Parameters:
id- the idfixedIP- the fixed ip
-
addNetworkPort
void addNetworkPort(String id)
Adds network port- Parameters:
id- id of a premade neutron port
-
-