You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/12/01 11:49:30 UTC

[GitHub] [cloudstack] nvazquez commented on issue #6931: List Instances in Host lists all instances

nvazquez commented on issue #6931:
URL: https://github.com/apache/cloudstack/issues/6931#issuecomment-1333646349

   @alexandremattioli I've posted a quick fix, its actually the API that's broken, the UI is passing the params correctly:
   
   ````
   (localcloud) 🐱 > list virtualmachines hostid=ab815b86-a9ad-499c-a60f-4d85123d57c4 filter=id,name,hostid
   {
     "count": 1,
     "virtualmachine": [
       {
         "hostid": "ab815b86-a9ad-499c-a60f-4d85123d57c4",
         "id": "f3621224-0f19-4e55-bf3b-8504bd5ce346",
         "name": "VM-f3621224-0f19-4e55-bf3b-8504bd5ce346"
       }
     ]
   }
   (localcloud) 🐱 > list virtualmachinesmetrics hostid=ab815b86-a9ad-499c-a60f-4d85123d57c4 filter=id,name,hostid
   {
     "count": 2,
     "virtualmachine": [
       {
         "hostid": "734acbc4-80c9-44c0-aaab-75f276469fd4",
         "id": "35fef250-5c4d-4705-b707-069102a32991",
         "name": "VM-35fef250-5c4d-4705-b707-069102a32991"
       },
       {
         "hostid": "ab815b86-a9ad-499c-a60f-4d85123d57c4",
         "id": "f3621224-0f19-4e55-bf3b-8504bd5ce346",
         "name": "VM-f3621224-0f19-4e55-bf3b-8504bd5ce346"
       }
     ]
   }
   ````


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org