You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Next »
You can de-link CIs from other CIs using the following API Request.
To authenticate the below API, see API Authentication and Authorization.
POST
Below is the sample request to de-link a CI.
{ "ServiceName": "CMDB_DelinkCIRelations", "objCommonParameters": { "_ProxyDetails": { "ProxyID": 0, "ReturnType": "JSON", "APIKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "AuthType": "APIKEY" }, "_CMDBCIRelations": { "SourceKey": "CIID", "TargetKey": "CIID", "SourceType": "CI", "TargetType": "CI", "SourceValue": "354", "Relationship": "Parent", "TargetValues": "340" } } }
SourceKey
TRUE
STRING
The value can be one of the following:
TargetKey
Name of the Source.
SourceType
Name of the Target.
The value is CI.
TargetType
Type of Source.
SourceValue
Type of Target.
or
INTEGER
Note:
If the Sourcekey parameter value is CIID, the SourceValue parameter value must be numeric or else string.
If the Sourcekey parameter value is ServiceID, the SourceValue parameter value must be numeric or else string.
Relationship
Value of the Source.
The Relationship parameter value must not be Service if the SourceKey and Targetkey parameter values are any of the following:
The Relationship parameter value must be Service if the SourceKey parameter value is one of the following:
TargetValues
Relationship between the Source and Target.
If the TargetKey parameter value is CIID, the TargetValues parameter value must be numeric or else string.
If the TargetKey parameter value is ServiceID, the TargetValues parameter value must be numeric or else string.
{ "Errors": "", "Message": " CMDB Relations De-Linked successfully!", "Output": "", "TokenID": null, "OrgID": 0, "OutputObject": null, "OutputID": 0, "Input": null }
For more information, see Status and Error Messages