pem.upgradeSubscription
This method is supported by Operations starting from version 2.3.
This method upgrades or downgrades a Subscription to the specified Service Template.
The method has the following input parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
The ID of the Subscription to upgrade or downgrade. |
|
int |
The ID of the Service Template to upgrade or downgrade the Subscription to. |
|
array of structs |
Array of custom Resource Types limits. If specified, custom limits override the limits which are specified in the destination Service Template. |
|
int |
Resource Type ID. |
|
bigint |
Resource Type limit. Note: Use -1 value to make a resource unlimited. |
This method has the following output parameters:
Name |
Type |
Short Description |
---|---|---|
|
array of int |
IDs of Resource Types that are added to Subscription. |
|
array of int |
IDs of Resource Types that are removed from Subscription. |
|
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. |
|
int |
ID of Resource Type in the source Service Template. |
|
int |
ID of Resource Type in the destination Service Template. |