Convert imported resources to new purchases

Updated at:

You can convert an imported resource to a new purchase to make it easier to visually manage your Alibaba Cloud products.

Import an instance into an architecture diagram

Go to the application creation page, select Import Existing Resources, configure the required information, and then click Save in the upper-right corner.

Note

If you have already imported the instance, you can skip to Convert an imported instance to a new purchase.

On the creation page, select the Import Existing Resources tab, select a region such as China (Hangzhou), select a resource type, and enter the instance ID and other required information.

Enter an application name and click Confirm.

By default, you are redirected to the architecture diagram page. Click Save > Import Resources > Import.

In the import confirmation panel, review the resource information, including the resource type and instance ID. After confirming the information is correct, click Import.

Convert to a new purchase

After the import is complete, call the OpenAPI: ExecuteOperationASync operation to start the conversion.

On the OpenAPI debugging page, set ServiceType to cadt_app and Operation to changeImportToCreate. In the Attributes parameter, enter a JSON request body containing the ApplicationId, instanceId, and nodeRefIds fields.

You must specify values for the ApplicationId, instanceId, and nodeRefIds parameters.

  • For ApplicationId, use the ID from the architecture diagram URL.

  • For instanceId, use the ID of the instance you are converting.

  • For nodeRefIds, use the ResourceId of the corresponding node in the template.

After entering the information, click Initiate Call in the lower-right corner. If the call succeeds, refresh the Cloud Architect Design Tool (CADT) application page to view the changes.

When you refresh the page, the resource's status in the application changes to "New Purchase", which confirms that the conversion was successful.