pem.getCustomerSubscriptionsResources
This method is supported by Operations starting from version 2.9 hotfix01.
This method returns the limits and up-to-date usage statistics for Resource Types of the specified vendor's Account (Provider's or Reseller's Account).
The method has the following input parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
Vendor's Account ID (ID of Provider's or Reseller's Account). |
|
array of int |
IDs of Resource Types. It contains IDs of Resource Types the resource usage is requested for. |
The method returns array of the following structures:
Name |
Type |
Short Description |
---|---|---|
|
int |
ID of direct child Account (ID of Reseller's or Customer's Account). |
|
array of struct |
Resource Types usage statistics for each Subscription of direct child Account. |
|
int |
ID of Subscription where the requested Resource Types are resides. |
|
array of struct |
Resource Types usage statistics. It contains resource usages for each requested Resource Type in Subscription identified by the |
|
int |
Resource Type ID. It indicates the Resource Type the usage statistics is returned for. |
|
int |
It represents the absolute value of resource’s usage at the moment defined by the |
|
bigint |
64bit analog of the |
|
bigint |
Resource Type limit, which is defined in the Subscription identified by the Note:-1 value means that resource's usage is not limited. |
|
int |
It indicates the point in time when the usage of the resource was measured last time. It is specified in the number of seconds since 1970-01-01 00:00:00 UTC (Unix time format). |