pem.migrateSubscription (deprecated)

This method is supported by Operations starting from version 2.5.

This method upgrades or downgrades a Subscription to the specified Service Template. This method is deprecated, please use the pem.upgradeSubscription method instead.

The method has the following input parameters:

Name

Type

Short Description

subscription_id

int

The ID of the Subscription to migrate.

service_template_id

int

The ID of the Service Template to migrate the Subscription to.

[custom_resource_limits]

array of structs

Array of custom Resource Types limits. If specified, custom limits override the limits which are specified in the destination Service Template.

  • resource_type_id

int

Resource Type ID.

  • limit

bigint

Resource Type limit.

Note: Use -1 value to make a resource unlimited.

This method has the following output parameters:

Name

Type

Short Description

rt_added

array of int

IDs of Resource Types that are added to Subscription.

rt_removed

array of int

IDs of Resource Types that are removed from Subscription.

rt_mapped

array of structs

This parameter contains the list of the Resource Types mapped between source and destination Service Templates. Mapped Resource Type means that the Resource Type in the source Service Template has the same Resource Class as the Resource Type in the destination Service Template.

  • src_rt_id

int

ID of Resource Type in the source Service Template.

  • dst_rt_id

int

ID of Resource Type in the destination Service Template.