You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Antonio Petrocelli <a....@netsons.com> on 2013/08/19 12:31:52 UTC

USAGE problem with SNAPSHOT

Hello,

the "listUsageRecords 
<http://cloudstack.apache.org/docs/api/apidocs-4.1/root_admin/listUsageRecords.html>" 
response in case of *Snapshot *response is:

array(12) {
   ["account"]=>
   string(23) "xxxxxxxxxxxx@netsons.com"
   ["accountid"]=>
   string(36) "72e16957-0a22-4739-b353-729da6301837"
   ["domainid"]=>
   string(36) "c1279c33-deb9-464f-8840-3dcd924cfcde"
   ["zoneid"]=>
   string(36) "dd9d48f8-8d9d-45e9-adf3-04d3d17829e5"
   ["description"]=>
   string(30) "Snapshot Id:1 Size:53687091200"
   ["usage"]=>
   float(1)
   ["usagetype"]=>
   int(9)
   ["rawusage"]=>
   string(1) "1"
   ["usageid"]=>
   string(36) "658b084e-3e52-4baf-888b-2fd471d9181e"
   ["size"]=>
   int(53687091200)
   ["startdate"]=>
   string(27) "2013-08-18'T'00:00:00+02:00"
   ["enddate"]=>
   string(27) "2013-08-18'T'00:59:59+02:00"
}

inside field "*description*" i can found the Snapshot Id:1

Someone know how it can be used to refeer to exact snapshot?

Thanks!


RE: USAGE problem with SNAPSHOT

Posted by Kishan Kavala <Ki...@citrix.com>.
Antonio,
Usageid in response "658b084e-3e52-4baf-888b-2fd471d9181e" refers to snapshot UUID. You can use this to refer the snapshot.

~kishan

From: Antonio Petrocelli [mailto:a.petrocelli@netsons.com]
Sent: Monday, 19 August 2013 4:02 PM
To: dev@cloudstack.apache.org
Subject: USAGE problem with SNAPSHOT

Hello,

the "listUsageRecords<http://cloudstack.apache.org/docs/api/apidocs-4.1/root_admin/listUsageRecords.html>" response in case of Snapshot response is:

array(12) {
  ["account"]=>
  string(23) "xxxxxxxxxxxx@netsons.com"<ma...@netsons.com>
  ["accountid"]=>
  string(36) "72e16957-0a22-4739-b353-729da6301837"
  ["domainid"]=>
  string(36) "c1279c33-deb9-464f-8840-3dcd924cfcde"
  ["zoneid"]=>
  string(36) "dd9d48f8-8d9d-45e9-adf3-04d3d17829e5"
  ["description"]=>
  string(30) "Snapshot Id:1 Size:53687091200"
  ["usage"]=>
  float(1)
  ["usagetype"]=>
  int(9)
  ["rawusage"]=>
  string(1) "1"
  ["usageid"]=>
  string(36) "658b084e-3e52-4baf-888b-2fd471d9181e"
  ["size"]=>
  int(53687091200)
  ["startdate"]=>
  string(27) "2013-08-18'T'00:00:00+02:00"
  ["enddate"]=>
  string(27) "2013-08-18'T'00:59:59+02:00"
}

inside field "description" i can found the Snapshot Id:1

Someone know how it can be used to refeer to exact snapshot?

Thanks!