pem.addServiceTemplate

This method is supported by Operations starting from version 2.6.3.

This method allows creating a new service template.

The method has the following input parameters:

Name

Type

Short Description

owner_id

int

Specifies the ID of the owner of the new service template.

name

string

Name of the new service template.

[descr]

string

Description of the new service template.

resources

array of struct

Array of resources, which are included to service template.

  • resource_type_id

int

ID of resource type.

Note: Starting from version 7.0, limits for the resources created via this method are set to "Unlimited" (-1) by default.

  • [subscription_id]

int

ID of the subscription to take the resource types from.

[category]

string

Type of the new service template, for example ' shared_hosting'. The default value is 'custom'.

[auto_provisioning]

boolean

Indicates should all the services from this service template be created and provisioned automatically at the moment the customer is subscribed to this service template.

[account_wide_services]

boolean

Indicates whether services of the subscription will be either subscription-local or account-wide.

The method has the following output parameters:

Name

Type

Short Description

st_id

int

ID of the created service template