public class GetServerRequest extends AbstractOpenstackRequest<org.openstack4j.model.compute.Server>
Server instance.
If the requested Server cannot be found, an
IllegalArgumentException is raised.| Constructor and Description |
|---|
GetServerRequest(com.elastisys.scale.commons.openstack.OSClientFactory clientFactory,
String serverId)
Creates a new
GetServerRequest. |
| Modifier and Type | Method and Description |
|---|---|
org.openstack4j.model.compute.Server |
doRequest(org.openstack4j.api.OSClient api)
Carries out the request and returns the response.
|
call, getApiAccessConfig, getClientFactorypublic GetServerRequest(com.elastisys.scale.commons.openstack.OSClientFactory clientFactory,
String serverId)
GetServerRequest.clientFactory - OpenStack API client factory.serverId - The id of the server to get.public org.openstack4j.model.compute.Server doRequest(org.openstack4j.api.OSClient api)
throws NotFoundException
AbstractOpenstackRequestdoRequest in class AbstractOpenstackRequest<org.openstack4j.model.compute.Server>api - An authenticated OpenStack API client that is instructed to
operate against the configured region.NotFoundExceptionCopyright © 2011–2017 Elastisys. All rights reserved.