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

David Noland commented on CLOUDSTACK-2347:
------------------------------------------

Sudha,

I verified that it is working in CCP 3.0.7:

$ wget -qO -  
"http://10.223.195.42:8096/client/api?command=listSnapshots&domainid=118";
<?xml version="1.0" encoding="UTF-8"?><listsnapshotsresponse 
cloud-stack-version="3.0.7.20130620054103"><count>2</count><snapshot><id>1a20c572-353a-497a-a952-2c012bc17f94</id><account>bellsixtwo</account><domainid>ff6c10e0-e28f-4278-ae84-fcfed3614248</domainid><domain>AA000113</domain><snapshottype>MANUAL</snapshottype><volumeid>ac9988b4-359b-4c47-a4aa-99890a7b5ab9</volumeid><volumename>ROOT-270</volumename><volumetype>ROOT</volumetype><zoneid>b42c19e4-b75a-4e2b-a318-f468d9870fcf</zoneid><created>2013-05-29T04:58:39+0000</created><name>98557c21-6b88-44d0-bef7-219c3402c73e_ROOT-270_20130529045839</name><intervaltype>MANUAL</intervaltype><state>BackedUp</state></snapshot><snapshot><id>ac5b4ab2-c5dd-488f-a674-0565625d511a</id><account>bellsixtwo</account><domainid>ff6c10e0-e28f-4278-ae84-fcfed3614248</domainid><domain>AA000113</domain><snapshottype>MANUAL</snapshottype><volumeid>61004c46-1997-489d-ac56-628d44ba2185</volumeid><volumename>Toronto
 
Vol</volumename><volumetype>DATADISK</volumetype><zoneid>b369ed12-7973-4a62-a706-65e9029a3c4b</zoneid><created>2013-05-29T04:56:24+0000</created><name>44eb8d18-c3cc-4e23-af88-1986c79bb3a1_Toronto
 
Vol_20130529045624</name><intervaltype>MANUAL</intervaltype><state>BackedUp</state></snapshot></listsnapshotsresponse>


$ wget -qO -  
"http://10.223.195.42:8096/client/api?command=listSnapshots&domainid=118&zoneid=b369ed12-7973-4a62-a706-65e9029a3c4b";

<?xml version="1.0" encoding="UTF-8"?><listsnapshotsresponse 
cloud-stack-version="3.0.7.20130620054103"><count>1</count><snapshot><id>ac5b4ab2-c5dd-488f-a674-0565625d511a</id><account>bellsixtwo</account><domainid>ff6c10e0-e28f-4278-ae84-fcfed3614248</domainid><domain>AA000113</domain><snapshottype>MANUAL</snapshottype><volumeid>61004c46-1997-489d-ac56-628d44ba2185</volumeid><volumename>Toronto
 
Vol</volumename><volumetype>DATADISK</volumetype><zoneid>b369ed12-7973-4a62-a706-65e9029a3c4b</zoneid><created>2013-05-29T04:56:24+0000</created><name>44eb8d18-c3cc-4e23-af88-1986c79bb3a1_Toronto
 
Vol_20130529045624</name><intervaltype>MANUAL</intervaltype><state>BackedUp</state></snapshot></listsnapshotsresponse>

                
> Zone filter for listSnapshots API
> ---------------------------------
>
>                 Key: CLOUDSTACK-2347
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2347
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: API, Snapshot
>    Affects Versions: 4.2.0
>            Reporter: David Noland
>            Assignee: Harikrishna Patnala
>             Fix For: 4.2.0
>
>
> Many of the list APIs such as listVirtualMachines, listVPCs, listNetworks, 
> listVolumes, and listTemplates have a zoneid parameter that can be used to 
> restrict the last to a specified zone. The zoneid parameter is also needed 
> for the listSnapshot API in order to properly filter the result set by zone. 
> The returned XML should also return the zone id for each snapshot.

--
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