Skip to main content
Version: Next

Add a CMDB relationship

This method allows adding a relationship in CMDB through a REST web service. The recorded relationship will be available in CMDB in asset data.

POST /apigateway/se/generic/gn_webservice/gn_webservice_execute.php

Query parameters:

Query parametersTypeRequiredDescription
cdprodNumericYesProduct code
Constant value: 109
classnameStringYesName of the class used in WADL
Constant value: CMDBInsertRelationshipInterface
classpathStringYesPath to the class used in WADL
Constant value: ast_import

Request example:

Supported attributes:

Request body parameterTypeRequiredDescription
TypeFromStringYesSource object type:
1 - Asset;
2 - Process;
3 - Process activity.
IdentifierFromStringYesSource object ID #
TypeToStringYesDestination object type:
1 - Asset;
2 - Process;
3 - Process activity.
IdentifierToStringYesDestination object ID #
RelationshipNameStringYesRelationship name
ReverseRelationshipStringYesReverse relationship:
1 - Yes;
2 - No.
{
"TypeFrom": "string",
"IdentifierFrom": "string",
"TypeTo": "string",
"IdentifierTo": "string",
"RelationshipName": "string",
"ReverseRelationship": "string"
}

Response example:

200 OK

{
"success": true,
"total": 1,
"results": [
{
"Result": true,
"Code": 1
}
]
}