private function getCloudStackDetails($platform)
{
$ccProps = $this->env->cloudCredentials($platform)->properties;
$params = array();
$params["{$platform}.is_enabled"] = true;
$params[Entity\CloudCredentialsProperty::CLOUDSTACK_API_URL] = $ccProps[Entity\CloudCredentialsProperty::CLOUDSTACK_API_URL];
$params[Entity\CloudCredentialsProperty::CLOUDSTACK_API_KEY] = $ccProps[Entity\CloudCredentialsProperty::CLOUDSTACK_API_KEY];
$params[Entity\CloudCredentialsProperty::CLOUDSTACK_SECRET_KEY] = $ccProps[Entity\CloudCredentialsProperty::CLOUDSTACK_SECRET_KEY] != '' ? '******' : '';
try {
$cs = new CloudStack($params[Entity\CloudCredentialsProperty::CLOUDSTACK_API_URL], $params[Entity\CloudCredentialsProperty::CLOUDSTACK_API_KEY], $ccProps[Entity\CloudCredentialsProperty::CLOUDSTACK_SECRET_KEY], $platform);
$params['_info'] = $cs->listCapabilities();
} catch (Exception $e) {
}
return $params;
}