Commit be293ab9 authored by Spiros Koulouzis's avatar Spiros Koulouzis

Added get cluster credentials

parent a428e436
......@@ -48,6 +48,7 @@ import nl.uva.sne.drip.commons.types.DeployParameter;
import nl.uva.sne.drip.commons.types.LoginKey;
import nl.uva.sne.drip.commons.types.ProvisionInfo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
/**
*
......@@ -98,6 +99,13 @@ public class DeployController {
return null;
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@RolesAllowed({UserService.USER, UserService.ADMIN})
public @ResponseBody
ClusterCredentials get(@PathVariable("id") String id) {
return clusterCredentialService.getDao().findOne(id);
}
private Message buildDeployerMessage(String provisionID) {
ProvisionInfo pro = provisionService.getDao().findOne(provisionID);
String cloudConfID = pro.getCloudConfID();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment