I would like to perform a Restful request so that I could know all relations a specific model has, regardless the relation type.
I am able to know whether a relation exists given a relation type, for instance a GET with
Spectrum replies with
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><association-response-list xmlns="http://www.ca.com/spectrum/restful/schema/response"> <association-responses> <association rightmh="0xa5281f" leftmh="0xa54048" rh="0x10023"/> </association-responses></association-response-list>
But how to make the equivalent of
> show associations mh=0xa54048LMHandle LMName Relation RMHandle RMName0xa53ffd SUB-ROUTER-2 HASPART 0xa54048 SUB-ROUTER-2_GigabitEthernet1/0/0xa54048 SUB-ROUTER-2_GigabitEthernet1/0/ Links_with 0xa5281f ROUTER-2_Gi0/0/20xa54048 SUB-ROUTER-2_GigabitEthernet1/0/ Connects_to 0xa527f6 ROUTER-20xa5282e ROUTER-2_ChassisFaultDomain CORRELATES 0xa54048 SUB-ROUTER-2_GigabitEthernet1/0/
The REST call for retrieving a model’s relations requires you to specify the handle of the relation you’re looking for. Unfortunately, there is not a way to get all of the relations for a given model using REST.