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 GetCIRelationships {
2  getCIRelationships(id: "6545401") {
3    createdOn
4    developerName
5    id
6    relation
7    source
8    sourceName
9    target
10    targetName
11  }
12}

Properties 

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

Response 

JSON example 

This example is a sample response from the getCIRelationships query.

1{
2  "data": {
3    "getCIRelationships": [
4      {
5        "createdOn": "1775194238352",
6        "developerName": "SD_AIFr",
7        "id": "1175502",
8        "relation": "Allocated From",
9        "source": "6545402",
10        "sourceName": "testingapplication2",
11        "target": "6545401",
12        "targetName": "testingbase2"
13      }
14    ]
15  }
16}

Properties 

NameTypeDescriptionAvailable Version
createdOnStringThe date and time the record was created.68.0
developerNameStringDeveloper name of the configuration item.66.0
idIntegerUnique ID of this relationship record.66.0
relationStringName of the relationship type.66.0
sourceIntegerID of the parent configuration item.66.0
sourceNameStringDisplay name of the parent configuration item.66.0
targetintID of the child configuration item.66.0
targetNameStringDisplay name of the child configuration item.66.0