Get Configuration Item Relationship

Retrieves detailed information about all configuration item (CI) relationships by using the unique identifier of a CI record.

Special Access Rules 

To query a configuration item relationship, you must have the following user permissions:

  • IT Service Configuration Item Type Manager
  • IT Service Configuration Item Owner
  • IT Service Configuration Item Type Reader

Request 

JSON example 

This example is a sample request to retrieve all relationships for a specific configuration item.

1query GetCnfgItemRelationships {
2  getCnfgItemRelationships(id: "6545401") {
3    createdOn
4    developerName
5    id
6    relationshipType
7    sourceConfigurationItemId
8    sourceConfigurationItemName
9    targetConfigurationItemId
10    targetConfigurationItemName
11  }
12}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
idIntegerThe unique identifier of the Configuration Item whose relationships are to be retrieved.Required67.0

Response 

JSON example 

This example is a sample response from the getCnfgItemRelationships query.

1{
2  "data": {
3    "getCnfgItemRelationships": [
4      {
5        "createdOn": "1775194238352",
6        "developerName": "SD_AIFr",
7        "id": "1175502",
8        "relationshipType": "Allocated From",
9        "sourceConfigurationItemId": "6545402",
10        "sourceConfigurationItemName": "testingapplication2",
11        "targetConfigurationItemId": "6545401",
12        "targetConfigurationItemName": "testingbase2"
13      }
14    ]
15  }
16}

Properties 

NameTypeDescriptionAvailable Version
createdOnStringThe date and time the record was created.68.0
developerNameStringDeveloper name of the configuration item.67.0
idIntegerUnique ID of this relationship record.67.0
relationshipTypeStringName of the relationship type.67.0
sourceConfigurationItemIdIntegerID of the parent configuration item.67.0
sourceConfigurationItemNameStringDisplay name of the parent configuration item.67.0
targetConfigurationItemIdintID of the child configuration item.67.0
targetConfigurationItemNameStringDisplay name of the child configuration item.67.0