|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.openstack.nova.v2_0.options.CreateServerOptions
public class CreateServerOptions
| Nested Class Summary | |
|---|---|
static class |
CreateServerOptions.Builder
|
| Constructor Summary | |
|---|---|
CreateServerOptions()
|
|
| Method Summary | ||
|---|---|---|
CreateServerOptions |
adminPass(String adminPass)
|
|
CreateServerOptions |
availabilityZone(String availabilityZone)
|
|
|
bindToRequest(R request,
Map<String,Object> postParams)
|
|
|
bindToRequest(R request,
Object input)
|
|
CreateServerOptions |
configDrive(boolean configDrive)
Set to true to use a config drive for metadata. |
|
CreateServerOptions |
diskConfig(String diskConfig)
|
|
boolean |
equals(Object object)
|
|
String |
getAvailabilityZone()
|
|
boolean |
getConfigDrive()
Determines if a configuration drive will be attached to the server or not. |
|
String |
getDiskConfig()
When you create a server from an image with the diskConfig value set to Server#DISK_CONFIG_AUTO, the server is built with a single partition that is expanded to
the disk size of the flavor selected. |
|
String |
getKeyPairName()
A keypair name can be defined when creating a server. |
|
Set<String> |
getNetworks()
Get custom networks specified for the server. |
|
Set<Network> |
getNovaNetworks()
Get custom networks specified for the server. |
|
Set<String> |
getSecurityGroupNames()
Security groups the user specified to run servers with. |
|
int |
hashCode()
|
|
CreateServerOptions |
keyPairName(String keyName)
|
|
CreateServerOptions |
metadata(Map<String,String> metadata)
Custom cloud server metadata can also be supplied at launch time. |
|
CreateServerOptions |
networks(Iterable<String> networks)
|
|
CreateServerOptions |
networks(String... networks)
|
|
CreateServerOptions |
novaNetworks(Iterable<Network> networks)
|
|
CreateServerOptions |
securityGroupNames(Iterable<String> securityGroupNames)
|
|
CreateServerOptions |
securityGroupNames(String... securityGroupNames)
|
|
protected com.google.common.base.Objects.ToStringHelper |
string()
|
|
String |
toString()
|
|
CreateServerOptions |
userData(byte[] userData)
Custom user-data can be also be supplied at launch time. |
|
CreateServerOptions |
writeFileToPath(byte[] contents,
String path)
You may further customize a cloud server by injecting data into the file system of the cloud server itself. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CreateServerOptions()
| Method Detail |
|---|
public boolean equals(Object object)
equals in class Objectpublic int hashCode()
hashCode in class Objectprotected com.google.common.base.Objects.ToStringHelper string()
public String toString()
toString in class Object
public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
Map<String,Object> postParams)
bindToRequest in interface org.jclouds.rest.MapBinder
public CreateServerOptions writeFileToPath(byte[] contents,
String path)
public CreateServerOptions adminPass(String adminPass)
public CreateServerOptions metadata(Map<String,String> metadata)
public CreateServerOptions userData(byte[] userData)
public CreateServerOptions configDrive(boolean configDrive)
http://docs.openstack.org/grizzly/openstack-compute/admin/content/config-drive.htmlpublic String getKeyPairName()
public String getAvailabilityZone()
public CreateServerOptions keyPairName(String keyName)
getKeyPairName()public CreateServerOptions availabilityZone(String availabilityZone)
getAvailabilityZone()public Set<String> getSecurityGroupNames()
NovaApi#getSecurityGroupExtensionForZone(String) to return
present
public Set<String> getNetworks()
public Set<Network> getNovaNetworks()
public CreateServerOptions securityGroupNames(String... securityGroupNames)
getSecurityGroupNames()public CreateServerOptions securityGroupNames(Iterable<String> securityGroupNames)
getSecurityGroupNames()public String getDiskConfig()
Server#DISK_CONFIG_AUTO, the server is built with a single partition that is expanded to
the disk size of the flavor selected. When you set the diskConfig attribute to
Server#DISK_CONFIG_MANUAL, the server is built by using the partition scheme and file
system that is in the source image.
If the target flavor disk is larger, remaining disk space is left unpartitioned. A server inherits the diskConfig
attribute from the image from which it is created. However, you can override the diskConfig value when you create
a server. This field is only present if the Disk Config extension is installed in your OpenStack deployment.
public CreateServerOptions diskConfig(String diskConfig)
getDiskConfig()public boolean getConfigDrive()
public CreateServerOptions networks(Iterable<String> networks)
getNetworks()public CreateServerOptions novaNetworks(Iterable<Network> networks)
Overwrites networks supplied by {@link #networks(Iterable)}public CreateServerOptions networks(String... networks)
getNetworks()
public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
Object input)
bindToRequest in interface org.jclouds.rest.Binder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||