eatingApiDocs 0 Posted November 7, 2019 Share Posted November 7, 2019 (edited) I'm trying to use the GetReports API call outlined via https://help.eset.com/ema/en-US/ema_api/. One of the required parameters is ReportName. I cannot seem to find were to locate the ReportName. When logged into ema.eset.com, I have two options for reports (Company Usage and Detailed Site Usage) some of the items I have tried are License Usage, Detailed Site Usage, Detailed Usage, and Company Usage. I'd really like the details that are in the Detailed Site Usage report, I'm just not sure how to get them. Any direction that can be provided, I would be grateful. Edited November 8, 2019 by eatingApiDocs Adding in hyperlinks Link to comment Share on other sites More sharing options...
ESET Moderators TomasP 302 Posted November 12, 2019 ESET Moderators Share Posted November 12, 2019 Hello, We reached out to our product manager and he recommends the following: The keyword for ReportName is “ERA Usage”, however, we do not recommend to use GetReport call to get info about usage. We recommend to use “Search” where the request could look like this: (use your own LoginID instead of LoginID=xxx and real CompanyID instaed of CompanyID=123456) <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:msp="http://schemas.datacontract.org/2004/07/MSPApi.Services.v2015_1.Requests" xmlns:models="http://schemas.datacontract.org/2004/07/MSPApi.Services.v2015_1.ViewModels" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <soapenv:Header/> <soapenv:Body> <tem:Search> <tem:request xmlns:models="http://schemas.datacontract.org/2004/07/MSPApi.Services.v2015_1.ViewModels" > <msp:LoginID>xxx</msp:LoginID> <msp:Token>xxx</msp:Token> <msp:OrderBy> <models:SearchOrderBy> <models:Column>Product.Name</models:Column> <models:Descending>true</models:Descending> </models:SearchOrderBy> </msp:OrderBy> <msp:PageNumber>1</msp:PageNumber> <msp:PageSize>10000</msp:PageSize> <msp:Criteria i:type="models:SearchGroup" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" > <models:Criterias> <models:SearchCriteria i:type="models:NumericSearchParameter"> <models:Column>Company.Company Id</models:Column> <models:ComparisonType>IS</models:ComparisonType> <models:Value>123456</models:Value> </models:SearchCriteria> <models:SearchCriteria i:type="models:SearchGroup"> <models:Criterias> <models:SearchCriteria i:type="models:DateSearchParameter"> <models:Column>Snapshot Date</models:Column> <models:ComparisonType>ON_OR_AFTER</models:ComparisonType> <models:Value>2019-08-01</models:Value> </models:SearchCriteria> <models:SearchCriteria i:type="models:DateSearchParameter"> <models:Column>Snapshot Date</models:Column> <models:ComparisonType>ON_OR_BEFORE</models:ComparisonType> <models:Value>2019-09-01</models:Value> </models:SearchCriteria> </models:Criterias> <models:LogicType>AND</models:LogicType> </models:SearchCriteria> </models:Criterias> <models:LogicType>AND</models:LogicType> </msp:Criteria> <msp:SearchID>10006</msp:SearchID> </tem:request> </tem:Search> </soapenv:Body> </soapenv:Envelope> eatingApiDocs 1 Link to comment Share on other sites More sharing options...
Recommended Posts