Repository: stratos
Updated Branches:
  refs/heads/master 7c7510c6d -> e6d98dea5


fix Removing Autoscaling policies gives an error in the UI


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/f9fd3711
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/f9fd3711
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/f9fd3711

Branch: refs/heads/master
Commit: f9fd3711d367094d37ac9d1231e5719cd9ad8113
Parents: 16b798a
Author: Dakshika Jayathilaka <[email protected]>
Authored: Sat Mar 7 19:14:41 2015 +0530
Committer: Imesh Gunaratne <[email protected]>
Committed: Sun Mar 8 12:02:54 2015 +0530

----------------------------------------------------------------------
 .../console/controllers/rest/rest_calls.jag                  | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/f9fd3711/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
 
b/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
index 93fbfa9..7f2f08d 100644
--- 
a/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
+++ 
b/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
@@ -72,11 +72,11 @@ RESTCalls = new function(){
         return this.send("POST","/autoscalingPolicies",policyDefinition);
     };
 
-    this.deleteAutoscalePolicyDefinition = function(deploymentPolicyId){
+    this.deleteDeploymentPolicyDefinition = function(deploymentPolicyId){
         return this.send("DELETE","/deploymentPolicies/" + 
deploymentPolicyId,{});
     };
 
-    this.deleteDeploymentPolicyDefinition = function(autoscalePolicyId){
+    this.deleteAutoscalePolicyDefinition = function(autoscalePolicyId){
         return this.send("DELETE","/autoscalingPolicies/" + 
autoscalePolicyId,{});
     };
 
@@ -202,6 +202,10 @@ RESTCalls = new function(){
         return this.sendReceive("GET","/applications/"+appId ,{});
     };
 
+    this.getApplicationPartitions = function(appId){
+        return this.sendReceive("GET","/applications/"+appId + 
"/networkPartitions" ,{});
+    };
+
     this.getClusterInfo = function(clusterId){
         return this.sendReceive("GET","/cluster/clusterId/" + clusterId,{});
     };

Reply via email to