public class ListServersWithTagRequest extends AbstractOpenstackRequest<List<org.openstack4j.model.compute.Server>>
Servers
with a certain meta data tag.| Constructor and Description |
|---|
ListServersWithTagRequest(com.elastisys.scale.commons.openstack.OSClientFactory clientFactory,
String tag,
String tagValue)
Constructs a new
ListServersWithTagRequest task. |
| Modifier and Type | Method and Description |
|---|---|
List<org.openstack4j.model.compute.Server> |
doRequest(org.openstack4j.api.OSClient api)
Carries out the request and returns the response.
|
call, getApiAccessConfig, getClientFactorypublic ListServersWithTagRequest(com.elastisys.scale.commons.openstack.OSClientFactory clientFactory,
String tag,
String tagValue)
ListServersWithTagRequest task.clientFactory - OpenStack API client factory.tag - A meta data tag that must be present on returned servers.tagValue - The value for the meta data tag that must be present on
returned servers.public List<org.openstack4j.model.compute.Server> doRequest(org.openstack4j.api.OSClient api) throws org.openstack4j.api.exceptions.ResponseException
AbstractOpenstackRequestdoRequest in class AbstractOpenstackRequest<List<org.openstack4j.model.compute.Server>>api - An authenticated OpenStack API client that is instructed to
operate against the configured region.org.openstack4j.api.exceptions.ResponseException - if the request failed.Copyright © 2011–2017 Elastisys. All rights reserved.