pem.checkMoveSubscriptions

This method is supported by Operations starting from version 6.0.

The method checks whether Subscriptions can be moved to another account.

The method has the following input parameters:

Name

Type

Short Description

subscription_ids

array of int

Identifier(s) of the Subscriptions to be checked.

new_account_id

int

Identifier of the Account to which the Subscription(s) should be linked to.

This method returns the array of structures:

Name

Type

Short Description

sub_id

int

Identifier of the checked Subscription.

is_movable

boolean

Indicates whether moving of the Subscription is supported.

dependent_subs

array of struct

Information about resources and dependent Subscriptions that prevent target Subscription from moving.

  • sub_id

int

Identifier of the dependent Subscription that share domains, users or resources with the target Subscription.

  • status

int

Code of the reason why the dependent Subscription is preventing target one from moving.

There are a number of possible values:

1 – There are domains that are used by both target and dependent Subscriptions.

2 – There are Service Users shared between dependent and target Subscriptions.

Note: If Service User(s) and/or domain(s) are shared between two Subscriptions, transfer these Subscriptions together. If you need only one Subscription transferred, remove shared objects from one of the Subscriptions, and transfer the required Subscription.

3 – There are Resources shared between dependent and target Subscriptions.

  • rt_list

array of int

List of identifiers of the Resource Types that are shared between dependent and target Subscriptions.