Class HostsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.HostsServiceImpl
-
- All Implemented Interfaces:
Service
,HostsService
public class HostsServiceImpl extends ServiceImpl implements HostsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.HostsService
HostsService.AddRequest, HostsService.AddResponse, HostsService.AddUsingRootPasswordRequest, HostsService.AddUsingRootPasswordResponse, HostsService.AddUsingSshRequest, HostsService.AddUsingSshResponse, HostsService.ListRequest, HostsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description HostsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete 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.String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
HostsServiceImpl
public HostsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public HostsService.AddRequest add()
Description copied from interface:HostsService
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 - Specified by:
add
in interfaceHostsService
-
list
public HostsService.ListRequest list()
Description copied from interface:HostsService
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.- Specified by:
list
in interfaceHostsService
-
addUsingRootPassword
public HostsService.AddUsingRootPasswordRequest addUsingRootPassword()
Description copied from interface:HostsService
Add a new host to the system providing the host root password. This has been deprecated and provided for backwards compatibility.- Specified by:
addUsingRootPassword
in interfaceHostsService
-
addUsingSsh
public HostsService.AddUsingSshRequest addUsingSsh()
Description copied from interface:HostsService
Add a new host to the system providing the ssh password, fingerprint or public key.- Specified by:
addUsingSsh
in interfaceHostsService
-
hostService
public HostService hostService(String id)
Description copied from interface:HostsService
A Reference to service managing a specific host.- Specified by:
hostService
in interfaceHostsService
-
service
public Service service(String path)
Description copied from interface:HostsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceHostsService
-
-