Forum Discussion

juramir's avatar
juramir
Icon for Neophyte rankNeophyte
2 days ago

No instances on API response

Hello everyone,

Sorry if this is a repeat topic here, but I'm having some trouble polling data from our new LogicMonitor setup via API.

As I understand it, I'll need device ID, device datasource ID, instance ID, all together to get graph data over a specific time period. I can successfully pull the first two (device id and datasource id), but when I pull the instances resource, I'm not getting any response.

Example resource path:

/device/devices/{device id}/devicedatasources/{datasourceid}/instances

The response I get is:

{
  "total": 0,
  "items": [],
  "searchId": null,
  "isMin": false
}

 

indicating that there's no instances. This is where I seem to get stuck, I don't seem to be able to move on any further. Has anybody run into this, and can give me a direction for next steps? Anything is appreciated!

1 Reply

  • jnahm's avatar
    jnahm
    Icon for Product Manager rankProduct Manager

    Hi juramir​ as long as you have instances associated with the datasource, you should be seeing instance details in the response. Would you be able to share the device type and datasource you are referencing? Also, have you tried reaching out to LM Support for help with this issue?