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 | |
|---|---|
| Request | web\wwwroot\ws\java\asset\ImportCMDBRelationshipRequestType.java |
| Return | web\wwwroot\ws\java\asset\ImportCMDBRelationshipResponseType.java |
Request:
| ID # | Required | Description |
|---|---|---|
| TYPEFROM | X | Source object type: 1 - Asset; 2 - Process; 3 - Process activity. |
| IDENTIFIERFROM | X | Source object ID # |
| TYPETO | X | Destination object type: 1 - Asset; 2 - Process; 3 - Process activity. |
| IDENTIFIERTO | X | Source object ID # |
| RELATIONSHIPNAME | X | Relationship name |
| REVERSERELATIONSHIP | X | Reverse 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 |
|---|---|
| return | SUCCESS:Â Return regarding the executed item FAILURE: Returns a message regarding the error that occurred |