public interface MachineApi
MachineAsyncApi
,
api docModifier and Type | Method and Description |
---|---|
Machine |
createWithDataset(String datasetURN) |
Machine |
createWithDataset(String datasetURN,
CreateMachineOptions options)
Allows you to provision a machine.
|
void |
delete(String id)
Allows you to delete a machine (the machine must be stopped before it can
be deleted).
|
Machine |
get(String id)
Gets the details for an individual machine.
|
Set<Machine> |
list()
Lists all machines we have on record for your account.
|
void |
reboot(String id)
Allows you to reboot a machine.
|
void |
resize(String id,
String packageJoyentCloud)
Allows you to resize a machine.
|
void |
start(String id)
Allows you to boot up a machine.
|
void |
stop(String id)
Allows you to shut down a machine.
|
Set<Machine> list()
Machine get(String id)
id
- the id of the machineMachine createWithDataset(String datasetURN, CreateMachineOptions options)
get(java.lang.String)
for status. When the
state field is equal to running, you can login.
With regards to login, if the machine is of type smartmachine, you can use
any of the SSH keys managed under the keys section of CloudAPI to login,
as any POSIX user on the OS. You can add/remove them over time, and the
machine will automatically work with that set.
If the the machine is a virtualmachine, and of a UNIX-derived OS (e.g.
Linux), you must have keys uploaded before provisioning; that entire set
of keys will be written out to /root/.ssh/authorized_keys, and you can ssh
in using one of those. Changing the keys over time under your account will
not affect the running virtual machine in any way; those keys are
statically written at provisioning-time only, and you will need to
manually manage them.
If the dataset you create a machine from is set to generate passwords for
you, the username/password pairs will be returned in the metadata response
as a nested object, like:datasetURN
- urn of the dataset to installMachine createWithDataset(String datasetURN)
#createWithDataset(CreateMachineOptions)
void stop(String id)
id
- the id of the machine to stopvoid start(String id)
id
- the id of the machine to startvoid reboot(String id)
id
- the id of the machine to rebootvoid resize(String id, String packageJoyentCloud)
id
- the id of the machine to resizepackageJoyentCloud
- the package to use for the machinevoid delete(String id)
id
- the id of the machine to deleteCopyright © 2009-2013 jclouds. All Rights Reserved.