Package org.jclouds.cloudstack.options
Class DeployVirtualMachineOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.cloudstack.options.AccountInDomainOptions
org.jclouds.cloudstack.options.DeployVirtualMachineOptions
- All Implemented Interfaces:
HttpRequestOptions
Options used to control what disk offerings are returned
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountInDomain
(String account, String domain) dataDiskSize
(long dataDiskSize) diskOfferingId
(String diskofferingid) the ID of the disk offering for the virtual machine.displayName
(String displayName) sets the displayName - just for display purposes.hypervisor
(String hypervisor) ipOnDefaultNetwork
(String ipOnDefaultNetwork) ipsToNetworks
(Map<String, String> ipsToNetworks) sets the hostName, it will be propagated down to the backend and set on the user vm.networkIds
(Iterable<String> networkIds) securityGroupId
(String securityGroupId) securityGroupIds
(Iterable<String> securityGroupIds) userData
(byte[] unencodedData) Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
Field Details
-
NONE
-
-
Constructor Details
-
DeployVirtualMachineOptions
public DeployVirtualMachineOptions()
-
-
Method Details
-
diskOfferingId
the ID of the disk offering for the virtual machine. If the template is of ISO format, the diskOfferingId is for the root disk volume. Otherwise this parameter is used to dinidcate the offering for the data disk volume. If the templateId parameter passed is from a Template object, the diskOfferingId refers to a DATA Disk Volume created. If the templateId parameter passed is from an ISO object, the diskOfferingId refers to a ROOT Disk Volume created.- Parameters:
diskofferingid
- the ID of the disk offering
-
displayName
sets the displayName - just for display purposes. We don't pass this parameter to the backend.- Parameters:
displayName
- an optional user generated name for the virtual machine
-
group
- Parameters:
group
- an optional group for the virtual machine
-
hypervisor
- Parameters:
hypervisor
- the hypervisor on which to deploy the virtual machine
-
keyPair
- Parameters:
keyPair
- name of the ssh key pair used to login to the virtual machine
-
name
sets the hostName, it will be propagated down to the backend and set on the user vm. If this parameter is not passed it, it will be defaulted to our usual "i-x-y'- Parameters:
name
- host name for the virtual machine
-
ipOnDefaultNetwork
- Parameters:
ipOnDefaultNetwork
- the requested ip address (2.2.12 only option)
-
ipsToNetworks
- Parameters:
ipsToNetworks
- mapping ip addresses to network ids (2.2.12 only option)
-
networkId
- Parameters:
networkId
- network id used by virtual machine
-
networkIds
- Parameters:
networkIds
- network ids used by virtual machine
-
getNetworkIds
-
projectId
- Parameters:
projectId
- The project this VM will be in.
-
securityGroupId
- Parameters:
securityGroupId
- security group applied to the virtual machine. Should be passed only when vm is created from a zone with Basic Network support
-
securityGroupIds
- Parameters:
securityGroupIds
- security groups applied to the virtual machine. Should be passed only when vm is created from a zone with Basic Network support
-
dataDiskSize
- Parameters:
dataDiskSize
- the arbitrary size for the DATADISK volume.
-
userData
- Parameters:
unencodedData
- an optional binary data that can be sent to the virtual machine upon a successful deployment. This binary data must be base64 encoded before adding it to the request. Currently only HTTP GET is supported. Using HTTP GET (via querystring), you can send up to 2KB of data after base64 encoding.
-
accountInDomain
- Overrides:
accountInDomain
in classAccountInDomainOptions
- Parameters:
account
- an optional account for the resourcedomain
- domain id
-
domainId
- Overrides:
domainId
in classAccountInDomainOptions
- Parameters:
domainId
- The domain for the resource
-