DX NetOps

 View Only

Expand all | Collapse all

Query through Spectrum API, query of all the primary IPs with their list of secondary IPs

  • 1.  Query through Spectrum API, query of all the primary IPs with their list of secondary IPs

    Posted Oct 24, 2024 01:25 PM
    Good afternoon Team
     
    Can you help me to know if it is possible to make a query through web services with the Spectrum API, where I make the query of all the primary IPs with their list of secondary IPs, I have been reviewing the documentation to make it possible with the Association and relationship method, however I have not been successful.
    The attributes that I am using are:
    RedundancyPreferredAddresses 0x12d84
    PrimaryAddress 0x12d80


  • 2.  RE: Query through Spectrum API, query of all the primary IPs with their list of secondary IPs

    Posted Oct 25, 2024 05:09 AM

    It should be a standard model request, for specific attributes: 0x12d84 and 0x12d80 in the body of the post message, for filtered search. 



    ------------------------------
    Cătălin Fărcășanu
    Senior Consultant
    SolvIT Networks
    ------------------------------



  • 3.  RE: Query through Spectrum API, query of all the primary IPs with their list of secondary IPs

    Posted Oct 25, 2024 09:11 PM

    Thank you very much, using a get through the API I applied an all devices and attached both attributes, which 0x12d84 appends it as a list.

    http://hostname:8080/spectrum/restful/devices?landscape=0x2000000&attr=0x1006e&attr=0x12d7f&attr=0x129fa&attr=0x11ee8&attr=0x129e7&attr=0x12d80&attr=0x12d84

    Regards