CMDBuild Forum

How to use IdClass1 and IdClass1 to query relationships,can I use filter or something else.

Hi,

I am trying to use the CMDB API to get relational data.

Now I have a table that is used to establish connection data in the data center.

The data in the table contains the connections between the switch ports and the switch NICs, and the connections between the switch ports and the server NICs.

Now I want to query the data using the API of the query relationship. For example, when querying, IdClass1 is set as the switch port, IdClass2 is the server NIC, or IdClass1 is the switch port, and IdClass2 is the switch port.

How do I specify a Filter in this case, or is there any other way to do this?