public class UpdateServerMetadataRequest extends AbstractOpenstackRequest<Void>
Server
instance.| Constructor and Description |
|---|
UpdateServerMetadataRequest(OpenStackPoolDriverConfig accessConfig,
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, getAccessConfigpublic UpdateServerMetadataRequest(OpenStackPoolDriverConfig accessConfig, String serverId, Map<String,String> metadata)
UpdateServerMetadataRequest.accessConfig - Account login credentials for a particular OpenStack Nova
endpoint.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–2015 elastisys. All rights reserved.