Package org.ovirt.engine.sdk4.services
Interface HostsService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
HostsServiceImpl
public interface HostsService extends Service
A service that manages hosts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
HostsService.AddRequest
Creates a new host.static interface
HostsService.AddResponse
Creates a new host.static interface
HostsService.AddUsingRootPasswordRequest
Add a new host to the system providing the host root password.static interface
HostsService.AddUsingRootPasswordResponse
Add a new host to the system providing the host root password.static interface
HostsService.AddUsingSshRequest
Add a new host to the system providing the ssh password, fingerprint or public key.static interface
HostsService.AddUsingSshResponse
Add a new host to the system providing the ssh password, fingerprint or public key.static interface
HostsService.ListRequest
Get a list of all available hosts.static interface
HostsService.ListResponse
Get a list of all available hosts.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HostsService.AddRequest
add()
Creates a new host.HostsService.AddUsingRootPasswordRequest
addUsingRootPassword()
Add a new host to the system providing the host root password.HostsService.AddUsingSshRequest
addUsingSsh()
Add a new host to the system providing the ssh password, fingerprint or public key.HostService
hostService(String id)
A Reference to service managing a specific host.HostsService.ListRequest
list()
Get a list of all available hosts.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.
-
-
-
Method Detail
-
add
HostsService.AddRequest add()
Creates a new host. The host is created based on the attributes of the `host` parameter. The `name`, `address`, and `root_password` properties are required. For example, to add a host, send the following request: [source] ---- POST /ovirt-engine/api/hosts ---- With the following request body: [source,xml] ----myhost myhost.example.commyrootpassword myhost myhost.example.com123456
-
list
HostsService.ListRequest list()
Get a list of all available hosts. For example, to list the hosts send the following request: .... GET /ovirt-engine/api/hosts .... The response body will be similar to this: [source,xml] ----... ... ... ---- The order of the returned list of hosts is guaranteed only if the `sortby` clause is included in the `search` parameter.
-
addUsingRootPassword
HostsService.AddUsingRootPasswordRequest addUsingRootPassword()
Add a new host to the system providing the host root password. This has been deprecated and provided for backwards compatibility.
-
addUsingSsh
HostsService.AddUsingSshRequest addUsingSsh()
Add a new host to the system providing the ssh password, fingerprint or public key.
-
hostService
HostService hostService(String id)
A Reference to service managing a specific host.
-
-