0

我的目标是使用 SOAP API 在过去一小时内获取所有具有相同 eventId(例如 926)的服务器。我尝试使用操作系统EventRetrieve2。这是我的请求(尝试使用 SOAP UI):

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:Manager" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">     
   <soapenv:Header/>
   <soapenv:Body>
      <urn:systemEventRetrieve2>
         <urn:timeFilter>
            <urn:rangeFrom xsi:nil="true"/>
            <urn:rangeTo xsi:nil="true"/>
            <urn:specificTime xsi:nil="true"/>
            <urn:type>LAST_HOUR</urn:type>
         </urn:timeFilter>
         <urn:hostFilter>
             <urn:type>ALL_HOSTS</urn:type>
         </urn:hostFilter>
         <urn:eventIdFilter>
            <urn:id>926</urn:id>
            <urn:operator>EQUAL</urn:operator>
         </urn:eventIdFilter>
         <urn:includeNonHostEvents>true</urn:includeNonHostEvents>
         <urn:sID>839E3A8FE147118068EE3FF92F959A0B</urn:sID>
      </urn:systemEventRetrieve2>
   </soapenv:Body>
</soapenv:Envelope>

相应的响应是:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <systemEventRetrieve2Response xmlns="urn:Manager">
         <systemEventRetrieve2Return>
            <truncated>false</truncated>
            <systemEvents/>
         </systemEventRetrieve2Return>
      </systemEventRetrieve2Response>
   </soapenv:Body>
</soapenv:Envelope>

我做错了什么?

4

0 回答 0