Package org.ovirt.engine.sdk4.services
Interface AffinityGroupHostsService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
AffinityGroupHostsServiceImpl
public interface AffinityGroupHostsService extends Service
This service manages a collection of all hosts assigned to an affinity group.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AffinityGroupHostsService.AddRequest
Adds a host to the affinity group.static interface
AffinityGroupHostsService.AddResponse
Adds a host to the affinity group.static interface
AffinityGroupHostsService.ListRequest
List all hosts assigned to this affinity group.static interface
AffinityGroupHostsService.ListResponse
List all hosts assigned to this affinity group.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AffinityGroupHostsService.AddRequest
add()
Adds a host to the affinity group.AffinityGroupHostService
hostService(String id)
Access the service that manages the host assignment to this affinity group.AffinityGroupHostsService.ListRequest
list()
List all hosts assigned to this affinity group.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.
-
-
-
Method Detail
-
add
AffinityGroupHostsService.AddRequest add()
Adds a host to the affinity group. For example, to add the host `789` to the affinity group `456` of cluster `123`, send a request like this: .... POST /ovirt-engine/api/clusters/123/affinitygroups/456/hosts .... With the following body: [source,xml] --------
-
list
AffinityGroupHostsService.ListRequest list()
List all hosts assigned to this affinity group. The order of the returned hosts isn't guaranteed.
-
hostService
AffinityGroupHostService hostService(String id)
Access the service that manages the host assignment to this affinity group.
-
-