public class CreateServerRequest extends AbstractNovaRequest<org.jclouds.openstack.nova.v2_0.domain.Server>
| Constructor and Description |
|---|
CreateServerRequest(OpenStackPoolDriverConfig account,
String serverName,
String flavorName,
String imageName,
String keyPair,
List<String> securityGroups,
com.google.common.base.Optional<String> userData,
Map<String,String> metadata)
Creates a new
CreateServerRequest. |
| Modifier and Type | Method and Description |
|---|---|
org.jclouds.openstack.nova.v2_0.domain.Server |
doRequest(org.jclouds.openstack.nova.v2_0.NovaApi api)
Carries out the request and returns the response.
|
call, getAccountpublic CreateServerRequest(OpenStackPoolDriverConfig account, String serverName, String flavorName, String imageName, String keyPair, List<String> securityGroups, com.google.common.base.Optional<String> userData, Map<String,String> metadata)
CreateServerRequest.account - Connection details for a particular OpenStack account.serverName - The name to assign to the new server.flavorName - The name of the machine type (flavor) to launch.imageName - The identifier of the machine image used to boot the machine.keyPair - The name of the key pair to use for the machine instance.securityGroups - The security group(s) to use for the new machine instance.userData - The (optional) user data (boot up script) used to
contextualize the started instance.metadata - Any meta data tags to assign to the new server.public org.jclouds.openstack.nova.v2_0.domain.Server doRequest(org.jclouds.openstack.nova.v2_0.NovaApi api)
AbstractNovaRequestdoRequest in class AbstractNovaRequest<org.jclouds.openstack.nova.v2_0.domain.Server>api - The OpenStack Nova (compute) API.Copyright © 2011–2015 elastisys. All rights reserved.