Skip to main content
Version: 2.2.2

importCMDBRelationship

This method allows adding:

  • Relationships between assets;
  • Relationships between asset and process or process and asset;
  • Relationships between asset and activity or activity and asset;
caution

Note: It is not possible to add a relationship between processes, between activities, or between processes and activities.

To insert each of these items, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\asset\ImportCMDBRelationshipRequestType.java
Returnweb\wwwroot\ws\java\asset\ImportCMDBRelationshipResponseType.java

Request:

ID #RequiredDescription
TYPEFROMXSource object type:
1 - Asset;
2 - Process;
3 - Process activity.
IDENTIFIERFROMXSource object ID #
TYPETOXDestination object type:
1 - Asset;
2 - Process;
3 - Process activity.
IDENTIFIERTOXSource object ID #
RELATIONSHIPNAMEXRelationship name
REVERSERELATIONSHIPXReverse relationship:
1 - Yes;
2 - No.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:asset">
<soapenv:Header/>
<soapenv:Body>
<urn:importCMDBRelationship>
<!--You may enter the following 6 items in any order-->
<urn:TypeFrom>?</urn:TypeFrom>
<urn:IdentifierFrom>?</urn:IdentifierFrom>
<urn:TypeTo>?</urn:TypeTo>
<urn:IdentifierTo>?</urn:IdentifierTo>
<urn:RelationshipName>?</urn:RelationshipName>
<urn:ReverseRelationship>?</urn:ReverseRelationship>
</urn:importCMDBRelationship>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: Return regarding the executed item
FAILURE: Returns a message regarding the error that occurred