public class UpdateServerMetadataRequest extends AbstractOpenstackRequest<Void>
Server
instance.| Constructor and Description |
|---|
UpdateServerMetadataRequest(OSClientFactory clientFactory,
String serverId,
Map<String,String> metadata)
Constructs a
UpdateServerMetadataRequest. |
| Modifier and Type | Method and Description |
|---|---|
Void |
doRequest(org.openstack4j.api.OSClient api)
Carries out the request and returns the response.
|
call, getApiAccessConfig, getClientFactorypublic UpdateServerMetadataRequest(OSClientFactory clientFactory, String serverId, Map<String,String> metadata)
UpdateServerMetadataRequest.clientFactory - OpenStack API client factory.serverId - The server whose metadata is to be updated.metadata - Meta data tags to be copied to the server. Any meta data keys
that already exist on the node will be overwritten.public Void doRequest(org.openstack4j.api.OSClient api) throws NotFoundException
AbstractOpenstackRequestdoRequest in class AbstractOpenstackRequest<Void>api - An authenticated OpenStack API client that is instructed to
operate against the configured region.NotFoundExceptionCopyright © 2011–2016 elastisys. All rights reserved.