Hi Ricardo,

It looks like a bug. Can you please create an issue on github ?

-Wei

On Thu, 13 Jan 2022 at 18:07, Ricardo Pertuz <ricardo.per...@kuasar.co>
wrote:

> Hi Wei,
>
> Thanks for replying, effectively you are right, even though the command is
> " list usagerecords projectid=408271ae-fa1c-44e3-b8d7-50f7dab3100c" but all
> projects come out in the response.
>
> Regards,
>
> Ricardo Pertuz
>
> On 13/01/22, 11:12 AM, "Wei ZHOU" <ustcweiz...@gmail.com> wrote:
>
>     Hi,
>
>     filter is a keyword in cloudmonkey/cmk, not an parameter in cloudstack
> api.
>
>
>     Try with 'projectid'.
>
>     -Wei
>
>     On Thursday, 13 January 2022, Ricardo Pertuz <ricardo.per...@kuasar.co
> >
>     wrote:
>
>     > Hi team,
>     >
>     > Any thoughts about it? Anyone knows what is going on here?
>     >
>     > Thanks!
>     >
>     > On 13/01/22, 3:23 AM, "Ricardo Pertuz" <ricper...@gmail.com> wrote:
>     >
>     >     Hi guys,
>     >
>     >     When I try to filter the record usage of a project, nothing is
>     > happening. It brings me all records for the date from all projects,
> am I
>     > doing something wrong? Please follow this example with a filter to
> filter
>     > project names in the output.
>     >
>     >
>     >     list usagerecords projectid=408271ae-fa1c-44e3-b8d7-50f7dab3100c
>     > filter=project startdate=2022-01-01 enddate=2022-01-02
>     >     {
>     >       "count": 144,
>     >       "usagerecord": [
>     >         {},
>     >         {},
>     >         {},
>     >         {},
>     >         {},
>     >         {},
>     >         {},
>     >         {},
>     >         {
>     >           "project": "612662068cc2d5156ab00510"
>     >         },
>     >         {
>     >           "project": "Tigre"
>     >         },
>     >         {
>     >           "project": "Tigre"
>     >         },
>     >         {
>     >           "project": "Tigre"
>     >         },
>     >         {
>     >           "project": "Tigre"
>     >
>     >
>
>

Reply via email to