use of com.emc.storageos.vplex.api.VPlexApiClient in project coprhd-controller by CoprHD.
the class VPlexControllerUtils method getVPlexAPIClient.
/**
* Get the HTTP client for making requests to the passed VPlex management server.
*
* @param vplexApiFactory A reference to the VPlex API factory.
* @param vplexMnmgtSvr A VPlex management server.
* @param dbClient A reference to a DB client.
*
* @return A reference to the VPlex API HTTP client.
* @throws URISyntaxException
*/
public static VPlexApiClient getVPlexAPIClient(VPlexApiFactory vplexApiFactory, StorageProvider vplexMnmgtSvr, DbClient dbClient) throws URISyntaxException {
URI vplexEndpointURI = new URI("https", null, vplexMnmgtSvr.getIPAddress(), vplexMnmgtSvr.getPortNumber(), "/", null, null);
VPlexApiClient client = vplexApiFactory.getClient(vplexEndpointURI, vplexMnmgtSvr.getUserName(), vplexMnmgtSvr.getPassword());
return client;
}
Aggregations