cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Reategui <car...@reategui.com>
Subject Re: [ANNOUNCE] Apache CloudStack CloudMonkey 5.3.2
Date Fri, 28 Aug 2015 15:13:19 GMT
On Wed, Aug 26, 2015 at 9:15 AM, ilya <ilya.mailing.lists@gmail.com> wrote:

> Hi Rohit
>
> Thanks for doing great job in maitaining CloudMonkey.
>
> I'm curious, is there any way I can filter on json sub-block?
>
> For example, list virtualmachines id=123 filter=name,nic[ipaddress]
>
> I cant seem to figure out the way to get the content of sub-block without
> using "grep".
>
> Thanks
> ilya
>
> Ilya,
I have recently discovered jq [1] and it does a very nice job at parsing
json.  I have not tried it with CloudMonkey output but I do use it with the
output of AWS CLI and it does wonders.

Cheers,
Carlos

[1] https://stedolan.github.io/jq/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message