DX NetOps

  • 1.  RESTful call to query Global Collection

    Posted 03-24-2015 05:39 PM

    Does anyone has an example of how to query list of device names and ip address which are member of a global collection using RESTful api call?

     

    Or do I have to create a search and query the results (example in GetModelsFromExistingSearch.xml) of that using RESTful call?



  • 2.  Re: RESTful call to query Global Collection

    Posted 03-25-2015 12:44 PM

    This attribute shows all the collections a model is a member of. Alternatively you can do a REST API Association call to show Dynamic and Static Collection Associations (0x1003b and I think 0x1003a)

     

    CollectionsModelNameString0x12adb

    Text String



  • 3.  Re: RESTful call to query Global Collection

    Posted 03-25-2015 05:17 PM

    Lewis,

     

    Thanks for responding. I don't want to parse 10,000 devices and see which device is part of the global collection I am looking for. Instead I want to parse the global collection to see what devices are members of it, as the devices are spread across several DSS.

     

    thanks,



  • 4.  Re: RESTful call to query Global Collection

    Posted 03-26-2015 12:18 PM

    You can perform a `show associations` like call requesting the dynamicGlobalCollects or staticGlobalCollects associations to your Global Collection

     

    dynamicGlobalCollects            0x1003a MANY_TO_MANY

    staticGlobalCollects                 0x1003b MANY_TO_MANY

     

    GlobalCollection mh=0x100bdc

     

    http://oneClickServer:8080/spectrum/restful/associations/relation/0x1003a/model/0x100bdc?side=left

     

    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <association-response-list>
    <association-responses>
    <association rightmh="0x101b91" leftmh="0x100bdc" rh="0x1003a" />
    <association rightmh="0x1023e7" leftmh="0x100bdc" rh="0x1003a" />
    <association rightmh="0x100415" leftmh="0x100bdc" rh="0x1003a" />
    <association rightmh="0x102097" leftmh="0x100bdc" rh="0x1003a" />
    <association rightmh="0x10205d" leftmh="0x100bdc" rh="0x1003a" />
    <association rightmh="0x1020d4" leftmh="0x100bdc" rh="0x1003a" />
    <association rightmh="0x10249a" leftmh="0x100bdc" rh="0x1003a" />
    <association rightmh="0x100277" leftmh="0x100bdc" rh="0x1003a" />
    </association-responses>
    </association-response-list>


  • 5.  Re: RESTful call to query Global Collection

    Posted 03-27-2015 11:42 AM

    See: https://communities.ca.com/message/241777453#241777453

     

    You just need to include the attribute for 'Network_Address' (0x12d7f) in the list of requested attributes.