pem.getSubscription
This method is supported by Operations starting from version 2.6.1
The pem.getSubscription allows to retrieve information about specific Operations Subscriptions.
The method has the following input parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
Subscription ID |
|
boolean |
If method should return Subscription resources along with general information. |
This method has the following output parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
Subscription ID |
|
string |
Subscription Name |
c_date
|
string | Creation Date |
|
int |
Service Template ID |
|
int |
Service Template Version |
|
int |
ID of account that own the Subscription |
|
boolean |
Is Subscription active |
|
array of structs |
|
|
string |
Name of Resource Type |
|
int |
ID of the Resource Type |
|
int |
ID of parent Resource Type (-1 is used if Resource Type has not parent Resource Type) |
|
string |
Unit that used for measurement of resource quantity |
|
bigint |
Limit set for specific Resource Type |
|
bigint |
Amount of consumed resources of specific Resource Type |
|
string |
Name of Resource Class |
The resource_types output parameter will be present only if get_resources input parameter is set to 1 (true).
Note: Operations resource types are organizing tree-like structure. The pem.getSubscription method returns plain list of resource types in a sake of simplicity. However, the actual resource type tree can be reproduced using parent_resource_type_id member.