DX NetOps

  • 1.  CA PM - DA Rest API

    Posted Feb 21, 2019 11:00 AM

    Hi,

     

    When I'm trying to get:

     

    MetricFamilyDiscoveryHistory.MetricFamily line 9, i'm getting an error. If I remove that line, I can get MetricFamily and LastDiscoveryTime.

     

    What I want is to get all from all devices the Last Discovered Time but for only one metric family.

     

    Info:http://DA_Hostname:8581/rest/devices/mfdiscoveryhistory/xsd/filterselect.xsd

     

     

    BR,

    Pedro Lourenço



  • 2.  Re: CA PM - DA Rest API

    Broadcom Employee
    Posted Feb 21, 2019 01:56 PM

    Hi Pedro,

     

    I wonder if this Knowledge Base Article helps as an alternative?

     

    Note it has LastDiscoveryTime values in the output.

     

    Viewing Vendor Certification assignment by Device - CA Knowledge 

     

    Thanks,
    Mike



  • 3.  Re: CA PM - DA Rest API

    Posted Feb 22, 2019 04:13 AM

    Hi,

     

    It's the same problem.

    If I try to get everything, is ok:

     

     

    But when I try to get only one value:

     

    BR,

    Pedro Lourenço



  • 4.  Re: CA PM - DA Rest API
    Best Answer

    Broadcom Employee
    Posted Feb 22, 2019 10:09 AM

    I believe you're going to have to take the everything output, and parse out what you need.

     

    You're hitting dependencies in the XML code where you can't just request a single value like that. It needs other related items in the request to provide a valid response that confirms to the code.