ContributionsMost RecentMost LikesSolutionsRe: API request doesn't return all objects.. And finally I found what was "the issue".. It is just VS Code not printing the whole request reply if it's too long:). Re: API request doesn't return all objects.. 14 hours ago, Denis T said: Thanks Stuart. Regarding SDK: I was trying to look into SDK, but it requires some authentication: in here: https://www.logicmonitor.com/swagger-ui-master/api-v3/Python-SDK/lm-sdkv3-docs.html it is sending me there: https://bamboo.logicmonitor.com/browse/LM-SS-172/artifact/shared/Docs/index.html#api-Alerts-getAlertList I figured out that we can access the material by clicking in the middle of the page and scrolling (or using page search). Re: API request doesn't return all objects.. Also, I followed the advice from Stuart and put the Authentication header in Postman. Return was good, 587K of JSON. At least I know nothing is wrong with the API :)/emoticons/smile@2x.png 2x" title=":)" width="20" /> Re: API request doesn't return all objects.. Thanks Stuart. Regarding SDK: I was trying to look into SDK, but it requires some authentication: in here: https://www.logicmonitor.com/swagger-ui-master/api-v3/Python-SDK/lm-sdkv3-docs.html it is sending me there: https://bamboo.logicmonitor.com/browse/LM-SS-172/artifact/shared/Docs/index.html#api-Alerts-getAlertList API request doesn't return all objects.. I am trying the API request with the following (skipping authentication header below and other non relevant parts): .... company = d['company'] access_id = d['access-id'] access_key = d['access-key'] #Request data for alerts httpVerb ='GET' resourcePath = '/alert/alerts' queryParams ='?offset=0&size=1000' data='' #construct URL url = 'https://' + company + '.logicmonitor.com/santaba/rest' + resourcePath + queryParams .... Authentication is going fine and I get "200 response". But JSON returned does not have all objects. It starts like this: { "status" : 200, "errmsg" : "OK", "data" : { "total" : 238, "items" : [ { "id" : "DS5957680", "type" : "dataSourceAlert", "internalId" : "LMD659437", "startEpoch" : 1660495929, "endEpoch" : 0, "acked" : false, "ackedEpoch" : 0, "ackedBy" : "", "ackComment" : "", So , I am expecting 238 objects, but it show only 4 and interrupted on the 5th } ], "resourceId" : 23853, "resourceTemplateId" : 650, "resourceTemplateType" : "DS", "resourceTempl Have anybody seen this stuff? What could be wrong here? Python request module usage requires additional tuning? Solved
Top ContributionsAPI request doesn't return all objects..SolvedRe: API request doesn't return all objects..Re: API request doesn't return all objects..Re: API request doesn't return all objects..Re: API request doesn't return all objects..