[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13719675#comment-13719675
 ] 

Rajesh Battala commented on CLOUDSTACK-3811:
--------------------------------------------

API call's when clicked "Autoscale" from UI
API Calls, when Autoscale is clicked:
============================
http://10.102.192.136:8080/client/api?command=listTemplates&response=json&sessionkey=9Jv7Q%2FVETCX1cV9%2BoNzcQY%2Fwu7c%3D&templatefilter=featured&zoneid=37f024f2-f1f6-4c90-b51e-1a5d1e9d3a1c&_=1374674926050
http://10.102.192.136:8080/client/api?command=listTemplates&response=json&sessionkey=9Jv7Q%2FVETCX1cV9%2BoNzcQY%2Fwu7c%3D&templatefilter=community&zoneid=37f024f2-f1f6-4c90-b51e-1a5d1e9d3a1c&_=1374674926234
http://10.102.192.136:8080/client/api?command=listTemplates&response=json&sessionkey=9Jv7Q%2FVETCX1cV9%2BoNzcQY%2Fwu7c%3D&templatefilter=selfexecutable&zoneid=37f024f2-f1f6-4c90-b51e-1a5d1e9d3a1c&_=1374674926314
http://10.102.192.136:8080/client/api?command=listServiceOfferings&issystem=false&response=json&sessionkey=9Jv7Q%2FVETCX1cV9%2BoNzcQY%2Fwu7c%3D&_=1374674926430
http://10.102.192.136:8080/client/api?command=listCounters&response=json&sessionkey=9Jv7Q%2FVETCX1cV9%2BoNzcQY%2Fwu7c%3D&_=1374674926473
http://10.102.192.136:8080/client/api?command=listCounters&response=json&sessionkey=9Jv7Q%2FVETCX1cV9%2BoNzcQY%2Fwu7c%3D&_=1374674926586
http://10.102.192.136:8080/client/api?command=listCounters&response=json&sessionkey=9Jv7Q%2FVETCX1cV9%2BoNzcQY%2Fwu7c%3D&_=1374674926586
http://10.102.192.136:8080/client/api?command=listSecurityGroups&listAll=true&response=json&sessionkey=9Jv7Q%2FVETCX1cV9%2BoNzcQY%2Fwu7c%3D&_=1374674926706
http://10.102.192.136:8080/client/api?command=listDiskOfferings&listAll=true&response=json&sessionkey=9Jv7Q%2FVETCX1cV9%2BoNzcQY%2Fwu7c%3D&_=1374674926715



===========


After providing all the params, clicking on "Apply Button"
first call getting executed is :
===============================
http://10.102.192.136:8080/client/api?command=listTemplates&response=json&sessionkey=9Jv7Q%2FVETCX1cV9%2BoNzcQY%2Fwu7c%3D&id=6f36b120-f379-11e2-8c7f-d661bebc235b&templatefilter=all&_=1374675168418


listTemplates is the first api getting called with the filtervalue as “ALL”. 
And this api call is getting failed as only Admin can specify the “all” param 
in the listTemplates. 


Attaching the screenshot.


                
> Not able to create Autoscale policy from non-admin accounts
> -----------------------------------------------------------
>
>                 Key: CLOUDSTACK-3811
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3811
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: API, Management Server, Network Devices, UI
>    Affects Versions: 4.2.0
>            Reporter: Rajesh Battala
>            Priority: Blocker
>             Fix For: 4.2.0
>
>
> when "apply" button is listTemplates API is getting called first with the 
> filter param value as all for any kind of user. 
> if filter param is All for non-admin accounts then api is getting exception 
> and futher no api's are getting fired.
> So no auto-scale policy API's are getting fired from the UI.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to