This is fixed by giving the ProjectID in listvirtualMachine API call.

Thanks Abhishek


On Mon, Apr 7, 2014 at 10:02 PM, Anoop Mohan <[email protected]> wrote:

> Tried
>
> vms = cloudstack.listVirtualMachines({'listall': 'true'})
>
>
> Log Snippet
>
> 2014-04-07 21:59:20,417 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-14:ctx-a8dc5314) ===START===  10.10.32.64 -- GET
> apikey=g9I2-EKFEgiT72CtmlHl2dLyX5ovB0LxJFtA6BS-5J3gE6I6dG2HAziyCgJzGrK2aHm4xQpFjuNdYvcaQ6vMlg&command=listVirtualMachines&listall=true&response=json&signature=CJBCDn29xNrkBi7qg8K%2BFd5sEf0%3D
> 2014-04-07 21:59:20,428 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-14:ctx-a8dc5314 ctx-9106d1b3 ctx-7c445974) ===END===
> 10.10.32.64 -- GET
> apikey=g9I2-EKFEgiT72CtmlHl2dLyX5ovB0LxJFtA6BS-5J3gE6I6dG2HAziyCgJzGrK2aHm4xQpFjuNdYvcaQ6vMlg&command=listVirtualMachines&listall=true&response=json&signature=CJBCDn29xNrkBi7qg8K%2BFd5sEf0%3D
>
>
>
> On Mon, Apr 7, 2014 at 9:33 PM, Anoop Mohan <[email protected]> wrote:
>
>> I'm using vms = cloudstack.listVirtualMachines() in my python script
>>
>> how can add ListAll here?
>>
>> Thanks
>>
>>
>>
>> On Mon, Apr 7, 2014 at 9:23 PM, abhisek basu <[email protected]> wrote:
>>
>>> Can you please add listAll=true and check output?
>>>
>>> Sent from my iPhone
>>>
>>> > On 7 Apr 2014, at 9:05 pm, "Anoop Mohan" <[email protected]>
>>> wrote:
>>> >
>>> > I'm trying to listVMs under Accounts.But not getting any output.
>>> >
>>> >
>>> > getting Respone in the API and Cloud log
>>> >
>>> > 2014-04-07 20:52:44,988 INFO  [a.c.c.a.ApiServer]
>>> > (catalina-exec-12:ctx-eae598aa ctx-f6e5dc52 ctx-c69fe6b5) (userId=4
>>> > accountId=4 sessionId=null) 192.168.124 -- GET
>>> >
>>> apikey=g9I2-EKFEgiT72CtmlHl2dLyX5ovB0LxJFtA6BS-5J3gE6I6dG2HAziyCgJzGrK2aHm4xQpFjuNdYvcaQ6vMlg&command=listVirtualMachines&response=json&signature=X8P7PoVfUSaWPXuTeAQ%2FwHl%2FDLc%3D
>>> > 200 { "listvirtualmachinesresponse" : { } }
>>> >
>>> >
>>> > Global settings
>>> >
>>> > api.throttling.max 25 to 2500
>>> > integration.api.port 8096
>>> >
>>> > Python API client
>>> https://github.com/jasonhancock/cloudstack-python-client
>>> > CloduStack4.3
>>> >
>>> > Is there any other settings I need to check. I'm trying to list VM's
>>>  of
>>> > Accounts under projects
>>> > --
>>> > Thanks & Regards,
>>> > Anoop Mohan
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>> Anoop Mohan
>>
>
>
>
> --
> Thanks & Regards,
> Anoop Mohan
>



-- 
Thanks & Regards,
Anoop Mohan

Reply via email to