cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilia Shakitko <i.shaki...@tech.leaseweb.com>
Subject RE: [4.4.2][API][SOLVED] Api parameter "account" is not being taken into consideration in "listUsageRecords" call
Date Mon, 03 Nov 2014 14:11:34 GMT
Hi,

I was doing that call from the ROOT admin. The account I specified was the Domain Admin of
its domain.  Specifying the domainid has effect.


Kind regards,

Ilia Shakitko
Innovation Engineer
LeaseWeb Technologies B.V.

T: +31 20 316 0235
M:
E: i.shakitko@tech.leaseweb.com
W: http://www.leaseweb.com

Luttenbergweg 8, 1101 EC Amsterdam, Netherlands


-----Original Message-----
From: Rohit Yadav [mailto:rohit.yadav@shapeblue.com]
Sent: maandag, 03 november, 2014 15:00
To: dev@cloudstack.apache.org
Subject: Re: [4.4.2][API] Api parameter "account" is not being taken into consideration in
"listUsageRecords" call

Hi,

Are you making this call with your account who is an admin type user/account too? If not,
it’s a bug that needs to be verified.

> On 03-Nov-2014, at 7:19 pm, Ilia Shakitko <i.shakitko@tech.leaseweb.com> wrote:
>
> Hi,
>
> I am doing an API call: command=listUsageRecords&response=json&startdate=2014-11-03&enddate=2014-11-03&type=8&account=Ilia
Shakitko
>
> class stdClass#1 (1) {
>  public $listusagerecordsresponse =>
>  class stdClass#2 (2) {
>    public $count =>
>    int(3)
>    public $usagerecord =>
>    array(3) {
>      [0] =>
>      class stdClass#3 (13) {
>        public $account =>
>        string(5) "admin"
>        public $accountid =>
>        string(36) "039ae2dc-0115-11e4-9be4-005056ac252f"
>        public $domainid =>
>        string(36) "039ac40c-0115-11e4-9be4-005056ac252f"
>        public $zoneid =>
>        string(36) "75cb86ef-d0e0-4459-b781-0a31002f2786"
>        public $description =>
>        string(42) "ISO Id:211 Size:8091648VirtualSize:8091648"
>        public $usage =>
>        string(12) "0.166667 Hrs"
>        public $usagetype =>
>        int(8)
>        public $rawusage =>
>        string(8) "0.166667"
>        public $usageid =>
>        string(36) "6a6600a5-f979-4d56-86c0-c24877db0555"
>        public $size =>
>        int(8091648)
>        public $virtualsize =>
>        int(8091648)
>        public $startdate =>
>        string(27) "2014-11-03'T'14:35:00+01:00"
>        public $enddate =>
>        string(27) "2014-11-03'T'14:45:00+01:00"
>      }
>     }
> }}
>
> I can see record for admin user for some reason.
>
> Kind regards,
>
> Ilia Shakitko
> Innovation Engineer
> LeaseWeb Technologies B.V.
>
> T: +31 20 316 0235
>
> E: i.shakitko@tech.leaseweb.com
> W: www.leaseweb.com<http://www.leaseweb.com>
>
> Luttenbergweg 8,        1101 EC Amsterdam,      Netherlands
>
>
>

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 88 262 30892 | rohit.yadav@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use
of the individual to whom it is addressed. Any views or opinions expressed are solely those
of the author and do not necessarily represent those of Shape Blue Ltd or related companies.
If you are not the intended recipient of this email, you must neither take any action based
upon its contents, nor copy or show it to anyone. Please contact the sender if you believe
you have received this email in error. Shape Blue Ltd is a company incorporated in England
& Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated
under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated
in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company
registered by The Republic of South Africa and is traded under license from Shape Blue Ltd.
ShapeBlue is a registered trademark.
Mime
View raw message