public class CreateServerOptions extends Object implements org.jclouds.rest.MapBinder
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateServerOptions.Builder |
| Constructor and Description |
|---|
CreateServerOptions() |
| Modifier and Type | Method and Description |
|---|---|
CreateServerOptions |
adminPass(String adminPass) |
<R extends org.jclouds.http.HttpRequest> |
bindToRequest(R request,
Map<String,Object> postParams) |
<R extends org.jclouds.http.HttpRequest> |
bindToRequest(R request,
Object input) |
CreateServerOptions |
diskConfig(String diskConfig) |
boolean |
equals(Object object) |
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<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 |
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.
|
protected com.google.common.base.Objects.ToStringHelper string()
public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
Map<String,Object> postParams)
bindToRequest in interface org.jclouds.rest.MapBinderpublic CreateServerOptions writeFileToPath(byte[] contents, String path)
public CreateServerOptions adminPass(String adminPass)
public CreateServerOptions metadata(Map<String,String> metadata)
public CreateServerOptions userData(byte[] userData)
public String getKeyPairName()
public CreateServerOptions keyPairName(String keyName)
getKeyPairName()public Set<String> getSecurityGroupNames()
NovaApi.getSecurityGroupExtensionForZone(String) to return
presentpublic Set<String> getNetworks()
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 CreateServerOptions networks(String... networks)
getNetworks()public CreateServerOptions networks(Iterable<String> networks)
getNetworks()public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
Object input)
bindToRequest in interface org.jclouds.rest.BinderCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.