public class AssignFloatingIpRequest extends AbstractOpenstackRequest<String>
Server. The return value of the task is the assigned IP address.
If no IP address could be assigned, a CloudPoolDriverException is
thrown.| Constructor and Description |
|---|
AssignFloatingIpRequest(OSClientFactory clientFactory,
org.openstack4j.model.compute.Server server)
Creates a new
AssignFloatingIpRequest. |
| Modifier and Type | Method and Description |
|---|---|
String |
doRequest(org.openstack4j.api.OSClient api)
Carries out the request and returns the response.
|
call, getApiAccessConfig, getClientFactorypublic AssignFloatingIpRequest(OSClientFactory clientFactory, org.openstack4j.model.compute.Server server)
AssignFloatingIpRequest.clientFactory - OpenStack API client factory.server - public String doRequest(org.openstack4j.api.OSClient api) throws CloudPoolDriverException
AbstractOpenstackRequestdoRequest in class AbstractOpenstackRequest<String>api - An authenticated OpenStack API client that is instructed to
operate against the configured region.CloudPoolDriverExceptionCopyright © 2011–2016 elastisys. All rights reserved.