kiranchavala commented on issue #9486:
URL: https://github.com/apache/cloudstack/issues/9486#issuecomment-2283495729

   @0sorkon 
   
   You can use cloudmonkey tool  to filter the vm and IP address 
   
   https://github.com/apache/cloudstack-cloudmonkey
   
   for example 
   
   ```
   cmk list virtualmachines filter=name,ipaddress
   {
     "count": 2,
     "virtualmachine": [
       {
         "ipaddress": "10.1.1.141",
         "name": "VM-28780e23-5ab5-455e-a0be-43caa22f16a1"
       },
       {
         "ipaddress": "10.1.1.19",
         "name": "VM-26eaa7cd-3a76-4a2a-a11a-7719db3dff65"
       }
     ]
   }
   ```
   Also you can use the jq tool to filter somemore 
   
   ```
    cmk list virtualmachines filter=name,ipaddress | jq '.virtualmachine[]'
   {
     "ipaddress": "10.1.1.141",
     "name": "VM-28780e23-5ab5-455e-a0be-43caa22f16a1"
   }
   {
     "ipaddress": "10.1.1.19",
     "name": "VM-26eaa7cd-3a76-4a2a-a11a-7719db3dff65"
   }
   
    cmk list virtualmachines filter=name,ipaddress | jq 
'.virtualmachine[].ipaddress'
   "10.1.1.141"
   "10.1.1.19"
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to