Package org.openstack4j.api.compute
Interface ServerGroupService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
ServerGroupServiceImpl
public interface ServerGroupService extends RestService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerGroupcreate(String name, String policy)Generates or imports a serverGroupActionResponsedelete(String id)Deletes the serverGroup by idServerGroupget(String id)Gets the serverGroup by idList<? extends ServerGroup>list()Lists serverGroups that are associated with the account making the request
-
-
-
Method Detail
-
list
List<? extends ServerGroup> list()
Lists serverGroups that are associated with the account making the request- Returns:
- the list of serverGroups
-
get
ServerGroup get(String id)
Gets the serverGroup by id- Parameters:
name- the serverGroup id- Returns:
- the serverGroup
-
delete
ActionResponse delete(String id)
Deletes the serverGroup by id- Parameters:
name- the serverGroup id- Returns:
- the action response
-
create
ServerGroup create(String name, String policy)
Generates or imports a serverGroup- Parameters:
name- the name of the serverGrouppublicKey- the public key (optional), Null indicates one will be generated- Returns:
- the newly created serverGroup
-
-