You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Ramzi Youssefi <ry...@gmail.com> on 2015/04/15 09:58:20 UTC

listUsageRecord only for Admins? Why?

Hello developers!

is there any reason why listUsageRecords api call is only limited to root
and admin users?
I think this use case is very common and it would be nice if clients can
see their usage records in their projects.
Is there any workaround for that?

Best,

-- 
Ramzi Youssefi
Görlitzer Str. 49
01099 Dresden, Germany.
Cell: +49 173 1965465
Email: ryoussefi@gmail.com

Re: listUsageRecord only for Admins? Why?

Posted by Ramzi Youssefi <ry...@gmail.com>.
Thank you very much guys for your help!
This is very useful!

Regards,

On Wed, Apr 15, 2015 at 7:26 PM, Somesh Naidu <So...@citrix.com>
wrote:

> As a workaround, we could just update the permissions for the API in the
> commands.properties to allow normal users to make that API call.
>
> Default Contents:
> #### usage commands
> generateUsageRecords=1
> *listUsageRecords=7*
> listUsageTypes=1
>
> Change it to:
> #### usage commands
> generateUsageRecords=1
> *listUsageRecords=15*
> listUsageTypes=1
>
> Somesh
> CloudPlatform Escalations
> Citrix Systems, Inc.
>
> -----Original Message-----
> From: Koushik Das [mailto:koushik.das@citrix.com]
> Sent: Wednesday, April 15, 2015 5:41 AM
> To: dev
> Subject: RE: listUsageRecord only for Admins? Why?
>
> Agree. I don't think it's possible currently. The listUsageRecords needs
> to be modified.
>
> -----Original Message-----
> From: Ramzi Youssefi [mailto:ryoussefi@gmail.com]
> Sent: Wednesday, 15 April 2015 13:28
> To: dev
> Subject: listUsageRecord only for Admins? Why?
>
> Hello developers!
>
> is there any reason why listUsageRecords api call is only limited to root
> and admin users?
> I think this use case is very common and it would be nice if clients can
> see their usage records in their projects.
> Is there any workaround for that?
>
> Best,
>
> --
> Ramzi Youssefi
> Görlitzer Str. 49
> 01099 Dresden, Germany.
> Cell: +49 173 1965465
> Email: ryoussefi@gmail.com
>



-- 
Ramzi Youssefi
Görlitzer Str. 49
01099 Dresden, Germany.
Cell: +49 173 1965465
Email: ryoussefi@gmail.com

RE: listUsageRecord only for Admins? Why?

Posted by Somesh Naidu <So...@citrix.com>.
As a workaround, we could just update the permissions for the API in the commands.properties to allow normal users to make that API call.

Default Contents:
#### usage commands
generateUsageRecords=1
*listUsageRecords=7*
listUsageTypes=1

Change it to:
#### usage commands
generateUsageRecords=1
*listUsageRecords=15*
listUsageTypes=1

Somesh
CloudPlatform Escalations
Citrix Systems, Inc.

-----Original Message-----
From: Koushik Das [mailto:koushik.das@citrix.com] 
Sent: Wednesday, April 15, 2015 5:41 AM
To: dev
Subject: RE: listUsageRecord only for Admins? Why?

Agree. I don't think it's possible currently. The listUsageRecords needs to be modified. 

-----Original Message-----
From: Ramzi Youssefi [mailto:ryoussefi@gmail.com] 
Sent: Wednesday, 15 April 2015 13:28
To: dev
Subject: listUsageRecord only for Admins? Why?

Hello developers!

is there any reason why listUsageRecords api call is only limited to root and admin users?
I think this use case is very common and it would be nice if clients can see their usage records in their projects.
Is there any workaround for that?

Best,

--
Ramzi Youssefi
Görlitzer Str. 49
01099 Dresden, Germany.
Cell: +49 173 1965465
Email: ryoussefi@gmail.com

RE: listUsageRecord only for Admins? Why?

Posted by Koushik Das <ko...@citrix.com>.
Agree. I don't think it's possible currently. The listUsageRecords needs to be modified. 

-----Original Message-----
From: Ramzi Youssefi [mailto:ryoussefi@gmail.com] 
Sent: Wednesday, 15 April 2015 13:28
To: dev
Subject: listUsageRecord only for Admins? Why?

Hello developers!

is there any reason why listUsageRecords api call is only limited to root and admin users?
I think this use case is very common and it would be nice if clients can see their usage records in their projects.
Is there any workaround for that?

Best,

--
Ramzi Youssefi
Görlitzer Str. 49
01099 Dresden, Germany.
Cell: +49 173 1965465
Email: ryoussefi@gmail.com