LogRhythm SOAP Api问题

时间:2017-09-07 18:04:50

标签: soap

这里有人设法从LR soap API获得一些东西吗?

我的查询很简单,这是一个摘录:

<soap:Body>
    <GetAlarmHistoryByID
        xmlns="http://www.logrhythm.com/webservices"
        xmlns:ns2="http://schemas.microsoft.com/2003/10/Serialization/Arrays"
        xmlns:ns3="http://schemas.microsoft.com/2003/10/Serialization/">
        <alarmID>140</alarmID>
        <includeNotifications>false</includeNotifications>
        <includeComments>false</includeComments>
    </GetAlarmHistoryByID>
</soap:Body>

我收到以下回复,这没有任何意义,因为“包括通知或包括评论是必需的。”但价值较低: includeNotifications:140包括注释:False(从我传递的值反转...)

  <s:Fault>
        <faultcode>s:Client</faultcode>
        <faultstring xml:lang="en-US">Include notifcations or include comments is required.</faultstring>
        <detail>
            <LogRhythmWebServiceFault
                xmlns="http://www.logrhythm.com/webservices"
                xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                <FaultID>4d12a9ed-bff7-4dfb-ad71-29372c12544d</FaultID>
                <Details>Error getting Alarm history (includeNotifications: 140 include comments: False) for ID False</Details>
                <FaultTime>2017-09-07T17:46:22.5779477Z</FaultTime>
                <ErrorID>3024</ErrorID>
            </LogRhythmWebServiceFault>
        </detail>
    </s:Fault>

方法:GetAlarmHistoryByID

检索警报状态和评论更新的列表。警报ID将来自GetFirstPageAlarmsGetNextPageAlarms方法调用之一。

alarmID long No The unique ID of the alarm.
includeNotifications boolean No If true, include notification history.
includeComments boolean No If true, include comments history.

输出 报警历史记录。

1 个答案:

答案 0 :(得分:0)

我遇到了类似的问题,结果却是LogRhythm方面的调用错误。我建议和他们一起出票以获得解决方案。如果你还没想出来