Skip to main content
Version: 2.2.2

ASTCMDBINSERT

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
classnameStringYesClass name used in WADL
Constant value: CMDBInsertRelationshipInterface
classpathStringYesPath to the class used in WADL
Constant value: ast_import

Example request:

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"
}

Example response:

200 OK

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