<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:RestAPI - AuditEvents - DateTime filtering not working in Intel vPro® Platform</title>
    <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1448419#M9727</link>
    <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for getting back to me.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I’m glad to hear that you are working around this issue. We will do our best to see if we can work on this bug for future releases. If you don’t need to report anything else besides this, can you please confirm if we can proceed to close this thread?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Victor G. &lt;/P&gt;&lt;P&gt;Intel Technical Support Technician&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 19 Jan 2023 19:55:40 GMT</pubDate>
    <dc:creator>Victor_G_Intel</dc:creator>
    <dc:date>2023-01-19T19:55:40Z</dc:date>
    <item>
      <title>RestAPI - AuditEvents - DateTime filtering not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1444525#M9682</link>
      <description>&lt;P&gt;&lt;A href="https://www.intel.com/content/dam/support/us/en/documents/software/manageability-products/Latestswagger.html#operation/AuditEvents_GetAuditEvents" target="_blank" rel="noopener"&gt;https://www.intel.com/content/dam/support/us/en/documents/software/manageability-products/Latestswagger.html#operation/AuditEvents_GetAuditEvents&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following the guide,&amp;nbsp; I have written a command to get Audit Events via RestAPI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works fine, but as soon as I play around with the startDateTime and endDateTime fields, they dont work. It just returns everything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#// Generate token to be passed for authorization with each RestAPI request&lt;BR /&gt;$Token=Invoke-RestMethod "&lt;A href="https://ema.Domain.com/api/latest/accessTokens/getUsingWindowsCredentials" target="_blank"&gt;https://ema.Domain.com/api/latest/accessTokens/getUsingWindowsCredentials&lt;/A&gt;" -Credential $Cred&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$headers = @{&lt;BR /&gt;'authorization' = "bearer $($Token.access_token)"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$Body = @{&lt;BR /&gt;'callername' = 'JoeBloggs@Myco.Domain.com'&lt;BR /&gt;'resourceType' = 'ENDPOINT'&lt;BR /&gt;'startDateTime' = '2023-01-05T15:10:01Z'&lt;BR /&gt;'endDateTime' = '2023-01-06T15:10:01Z'&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$Events=Invoke-RestMethod "&lt;A href="https://Domain.com/api/latest/auditevents" target="_blank" rel="noopener"&gt;https://ema.Domain.com/api/latest/auditevents&lt;/A&gt;" -Headers $headers -Body $Body&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Returns values from December! Even though as you can see I am only asking for ones in Ja 23.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jools86_0-1673026905516.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/36840iE66CB0A4800AE16F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Jools86_0-1673026905516.png" alt="Jools86_0-1673026905516.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All other query values work, i.e. Action, ResourceType, callername etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using PowerShell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 17:47:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1444525#M9682</guid>
      <dc:creator>Jools86</dc:creator>
      <dc:date>2023-01-06T17:47:52Z</dc:date>
    </item>
    <item>
      <title>Re:RestAPI - AuditEvents - DateTime filtering not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1445010#M9686</link>
      <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting on the Intel® communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please let me review this information internally, and kindly wait for an update. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once we have more information to share, we will post it on this thread. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Victor G. &lt;/P&gt;&lt;P&gt;Intel Technical Support Technician&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jan 2023 15:43:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1445010#M9686</guid>
      <dc:creator>Victor_G_Intel</dc:creator>
      <dc:date>2023-01-09T15:43:01Z</dc:date>
    </item>
    <item>
      <title>Re:RestAPI - AuditEvents - DateTime filtering not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1448323#M9723</link>
      <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting on the Intel® communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I wanted to let you know that we have replicated your error and it does appear that there is an error in how the GEt-IntelEMAAuditEvents call parses the requested data. Therefore, we are targeting the next API version 1.7 for resolution but we don't guarantee backlog priorities. In the meantime, as a workaround, you can choose any one of the filters you used in the API call. Filtering on startDate/endDate then will allow you to programmatically filter other attributes in your script.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Victor G. &lt;/P&gt;&lt;P&gt;Intel Technical Support Technician&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Jan 2023 15:32:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1448323#M9723</guid>
      <dc:creator>Victor_G_Intel</dc:creator>
      <dc:date>2023-01-19T15:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re:RestAPI - AuditEvents - DateTime filtering not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1448327#M9724</link>
      <description>&lt;P&gt;Thanks for the update Victor.&lt;/P&gt;
&lt;P&gt;For the moment - I am basically retrieving all events throught the RestAPI then filtering them by date range via PowerShell afterwards.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:08:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1448327#M9724</guid>
      <dc:creator>Jools86</dc:creator>
      <dc:date>2023-01-19T17:08:54Z</dc:date>
    </item>
    <item>
      <title>Re:RestAPI - AuditEvents - DateTime filtering not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1448419#M9727</link>
      <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for getting back to me.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I’m glad to hear that you are working around this issue. We will do our best to see if we can work on this bug for future releases. If you don’t need to report anything else besides this, can you please confirm if we can proceed to close this thread?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Victor G. &lt;/P&gt;&lt;P&gt;Intel Technical Support Technician&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Jan 2023 19:55:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1448419#M9727</guid>
      <dc:creator>Victor_G_Intel</dc:creator>
      <dc:date>2023-01-19T19:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re:RestAPI - AuditEvents - DateTime filtering not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1448669#M9729</link>
      <description>&lt;P&gt;Hi Victor, yes of course. Please close this thread.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 10:39:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1448669#M9729</guid>
      <dc:creator>Jools86</dc:creator>
      <dc:date>2023-01-20T10:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: RestAPI - AuditEvents - DateTime filtering not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1449308#M9738</link>
      <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will proceed to close the thread. If you need any additional information, feel free to submit a new question as this thread will no longer be monitored.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Victor G.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Intel Technical Support Technician &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 16:48:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-AuditEvents-DateTime-filtering-not-working/m-p/1449308#M9738</guid>
      <dc:creator>Victor_G_Intel</dc:creator>
      <dc:date>2023-01-23T16:48:42Z</dc:date>
    </item>
  </channel>
</rss>

