Merge command

The merge command merges CI on the basis on their GUIDs.

Command syntax

api.sh|api.bat-u|--useruser-p|--passwordpassword [-H|--hosthost] [-P|--portport] [-T|--truststorefile] mergeDurableCI_GUIDTransientCI_GUID[typetype]

Parameters

merge
Runs the merge command.
DurableCI_GUID
The GUID that persists after merging with the other one.
TransientCI_GUID
The GUID that is merged into the durable GUID and removed from the database.
type type
The type of the merge process. There are two possible values:
  • 0, which stands for a shallow type of the merge process, meaning that only the main objects are merged. The child objects of the transient GUID are replaced with the child objects of the durable GUID. The shallow type of the merge process is the default type.
  • 1, which stands for a deep type of the merge process, meaning that main objects along with their child objects are merged.
Note: At this moment, only shallow type of the merge process is enabled. When you specify 1 for the type parameter, still the shallow type is used. The deep type will be enabled in future.
Important: When you merge CIs, both of the CIs must be of the same class. For example, you can merge two ComputerSystem objects, but you cannot merge a ComputerSystem object with an ApplicationServer object.

Example

The following command merges two specified GUIDs by using the shallow type of the merge process. Enter the command on one line.

api.sh -u user -p password -H host -P port merge 10A5794E86C53A0BBB10F262055CB3EA C172810FD1CF3E108B8127BC47D2667B type 0