Server query
- List<? extends Server> org.openstack4j.api.compute.ServerService.list()
List all servers (detailed) that the current tenant has access to
Returns:
list of all servers - List<? extends Server> org.openstack4j.api.compute.ServerService.list(boolean detail)
List all servers (detailed / brief) that the current tenant has access to
Parameters:
detail if true all attributes will be populated, false (brief) will be ID, Name and Links
Returns:
list of all servers - List<? extends Server> org.openstack4j.api.compute.ServerService.list(Map filteringParams)
Returns list of servers filtered by parameters.
Parameters:
filteringParams map (name, value) of filtering parameters
Returns:
list of all servers - List<? extends Server> org.openstack4j.api.compute.ServerService.listAll(boolean detail)
List all servers for all tenants (detailed / brief)
Parameters:
detail if true all attributes will be populated, false (brief) will be ID, Name and Links
Returns:
list of all servers - Server org.openstack4j.api.compute.ServerService.get(String serverId)
Get the specified server by ID
Parameters:
serverId the server id
Returns:
the server or null if not found
Server creation
- Server org.openstack4j.api.compute.ServerService.boot(ServerCreate server)
Create (boot) a new Server
Parameters:
server the server to boot
Returns:
the newly created server - Server org.openstack4j.api.compute.ServerService.bootAndWaitActive(ServerCreate server