davidjumani commented on pull request #4140: URL: https://github.com/apache/cloudstack/pull/4140#issuecomment-643377134
@RodrigoDLopez could you try it on the latest commit. I ran it and it worked as expected : **Just the flag** `cmk listtemplates templatefilter=all showunique=true | jq -r '.template[] | "name:\t\(.name)\tid: \(.id)\tzoneid: \(.zoneid)"'` ``` name: SystemVM Template (simulator) id: 1e097a9f-aafb-11ea-a5c3-50eb71576f75 zoneid: a82d7a28-e405-4456-b095-62c635951b0e name: CentOS 5.6 (64-bit) no GUI (Simulator) id: 1e09b0c9-aafb-11ea-a5c3-50eb71576f75 zoneid: a82d7a28-e405-4456-b095-62c635951b0e ``` **With pagination** `cmk listtemplates templatefilter=all showunique=true page=1 pagesize=1 | jq -r '.template[] | "name:\t\(.name)\tid: \(.id)\tzoneid: \(.zoneid)"'` ``` name: SystemVM Template (simulator) id: 1e097a9f-aafb-11ea-a5c3-50eb71576f75 zoneid: a82d7a28-e405-4456-b095-62c635951b0e ``` `cmk listtemplates templatefilter=all showunique=true page=2 pagesize=1 | jq -r '.template[] | "name:\t\(.name)\tid: \(.id)\tzoneid: \(.zoneid)"'` ``` name: CentOS 5.6 (64-bit) no GUI (Simulator) id: 1e09b0c9-aafb-11ea-a5c3-50eb71576f75 zoneid: a82d7a28-e405-4456-b095-62c635951b0e ```` `cmk listtemplates templatefilter=all showunique=true page=1 pagesize=2 | jq -r '.template[] | "name:\t\(.name)\tid: \(.id)\tzoneid: \(.zoneid)"'` ``` name: SystemVM Template (simulator) id: 1e097a9f-aafb-11ea-a5c3-50eb71576f75 zoneid: a82d7a28-e405-4456-b095-62c635951b0e name: CentOS 5.6 (64-bit) no GUI (Simulator) id: 1e09b0c9-aafb-11ea-a5c3-50eb71576f75 zoneid: a82d7a28-e405-4456-b095-62c635951b0e ``` **All the templates** `cmk listtemplates templatefilter=all | jq -r '.template[] | "name:\t\(.name)\tid: \(.id)\tzoneid: \(.zoneid)"'` ``` name: SystemVM Template (simulator) id: 1e097a9f-aafb-11ea-a5c3-50eb71576f75 zoneid: 7eea393a-2738-46b2-a85e-12c25ccf5913 name: SystemVM Template (simulator) id: 1e097a9f-aafb-11ea-a5c3-50eb71576f75 zoneid: a82d7a28-e405-4456-b095-62c635951b0e name: CentOS 5.6 (64-bit) no GUI (Simulator) id: 1e09b0c9-aafb-11ea-a5c3-50eb71576f75 zoneid: 7eea393a-2738-46b2-a85e-12c25ccf5913 name: CentOS 5.6 (64-bit) no GUI (Simulator) id: 1e09b0c9-aafb-11ea-a5c3-50eb71576f75 zoneid: a82d7a28-e405-4456-b095-62c635951b0e ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
