pem.getServiceTemplate
This method is supported by Operations starting from version 2.6.1
This method allows retrieving information about specific service template.
The method has the following input parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
Service Template ID. |
|
boolean |
If method should return the service template's resources along with general information. |
|
boolean |
If one specifies Important: pem.getServiceTemplate being called with |
This method has the following output parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
Service template ID. |
|
int |
Service template version. |
|
string |
Service template's name. |
|
int |
ID of account that owns the service template. |
|
boolean |
Is the service template active (can be subscribed). |
|
boolean |
Is the subscription based on this Service Template can be auto-provided? |
|
array of structs |
|
|
string |
Name of the resource type. |
|
string |
Name of the resource class. |
|
int |
ID of the resource type. |
|
int |
ID of the parent resource type (if any). |
|
string |
Unit that is used for measurement of resource quantity. |
|
string |
Type of resource measurement. There are the following options:
|
|
bigint |
Limit set for the specific resource type. |
|
bigint |
Current usage of the resource type. |
|
array of strings |
Provisioning attributes attached to this resource type. |
|
array of structs |
Activation parameters of this resource type. |
|
string |
Name of the activation parameter. |
|
string |
Activation parameter value. |
|
array of structs |
The service template's activation parameters. |
|
string |
Name of the service template's activation parameter. |
|
string |
Value of the service template's activation parameter. |
The resource_types output parameter will be present only if the get_resources input parameter is set to 1 (true).
Note: Operations resource types are organizing tree-like structure. The pem.getServiceTemplate 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.