cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-6052) List VM enhancement to support querying with multiple VM IDs
Date Thu, 13 Mar 2014 18:05:59 GMT

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

ASF subversion and git services commented on CLOUDSTACK-6052:
-------------------------------------------------------------

Commit 5779292e93fe52a7fb5ec0abffe1e3f6b9c10121 in cloudstack's branch refs/heads/rbac from
[~koushikd]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=5779292 ]

CLOUDSTACK-6052: List VM enhancement to support querying with multiple VM IDs
New parameter 'ids' added to listVirtualMachine API. The syntax looks like
http://localhost:8096/api?command=listVirtualMachines&listAll=true&ids=eddac053-9b12-4d2e-acb7-233de2e98112,009966fc-4d7b-4f84-8609-254979ba0134
The new parameter will be mutually exclusive with the existing 'id' parameter.


> List VM enhancement to support querying with multiple VM IDs
> ------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6052
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6052
>             Project: CloudStack
>          Issue Type: New Feature
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.3.0
>            Reporter: Koushik Das
>            Assignee: Koushik Das
>             Fix For: 4.4.0
>
>
> Currently list VM can only be called using a single VM ID. So if there is a need to query
a set of VMs using ID then either multiple list VM calls need to be made or all VMs needs
to be fetched and then do a client side filtering. Both approaches are sub-optimal - the former
results in multiple queries to database and the latter will be an overkill if you need a small
subset from a very large number of VMs.
> The proposal is to have an additional parameter to specify a list of VM IDs for which
the data needs to be fetched. Using this the required VMs can be queried in an efficient manner.
With the new parameter the syntax would look like
> http://localhost:8096/api?command=listVirtualMachines&listAll=true&ids=eddac053-9b12-4d2e-acb7-233de2e98112,009966fc-4d7b-4f84-8609-254979ba0134
> The new 'ids' parameter will be mutually exclusive with the existing 'id' parameter.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message