*
* @return
*/
private CloudStackApi getApi() {
if (_eng == null) {
_eng = new CloudStackApi(managementServer, cloudAPIPort, false);
}
// regardless of whether _eng is initialized, we must make sure
// access/secret keys are current with what's in the UserCredentials
_eng.setApiKey(UserContext.current().getAccessKey());
_eng.setSecretKey(UserContext.current().getSecretKey());