|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InstanceApi
This API is for creating, listing, and deleting an Instance, and allows enabling a root user.
Instance,
api doc,
api
src| Method Summary | |
|---|---|
Instance |
create(int flavor,
int volumeSize,
String name)
Same as create(String, int, String) but accept an integer Flavor ID. |
Instance |
create(String flavor,
int volumeSize,
String name)
Create a database instance by flavor type and volume size. |
boolean |
delete(String instanceId)
Deletes an Instance by id. |
String |
enableRoot(String instanceId)
Enables root for an instance. |
Instance |
get(String instanceId)
Returns an Instance by id. |
boolean |
isRooted(String instanceId)
Checks to see if root is enabled for an instance. |
com.google.common.collect.FluentIterable<Instance> |
list()
Returns a summary list of Instances. |
| Method Detail |
|---|
@Named(value="instance:create")
Instance create(int flavor,
int volumeSize,
String name)
create(String, int, String) but accept an integer Flavor ID.
flavor - The flavor ID.volumeSize - The size in GB of the instance volume.name - The name of the instance.
create(String, int, String)
@Named(value="instance:create")
Instance create(String flavor,
int volumeSize,
String name)
flavor - The flavor URL or flavor id as string.volumeSize - The size in GB of the instance volume.name - The name of the instance.
@Named(value="instances:delete/{id}")
boolean delete(String instanceId)
instanceId - The instance id.
@Named(value="instances/{id}/root")
String enableRoot(String instanceId)
instanceId - The instance id.
@Named(value="instances/{id}/root")
boolean isRooted(String instanceId)
instanceId - The instance id.
ResourceNotFoundException@Named(value="instance:list") com.google.common.collect.FluentIterable<Instance> list()
@Named(value="instances:get/{id}")
@Nullable
Instance get(String instanceId)
instanceId - The instance id.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||