CloudTrail LookupEvent StartTime throwing SerializationException

0

Hi,

Im trying to use CloudTrail LookupEvent via Postman and per HTTP API it wants StartTime/EndTime as numerics (timestamp)
https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_LookupEvents.html

But its throwing error :
{
"__type": "SerializationException"
}

Data Scenario:
URL - https://cloudtrail.us-east-1.amazonaws.com/
Region: us-east-1
ServiceName: cloudtrail
AWS accesskey and seckey : xxx xxx

Setup with additional http header:
x-amz-target = com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.LookupEvents
Content-Type = application/x-amz-json-1.1

Note: Using LookupEvents as x-amz-target return all result ignoring the json body request

using HTTP POST with JSON body as seen below:

{
"LookupAttributes": [
{
"AttributeKey": "EventSource",
"AttributeValue": "ec2.amazonaws.com"
}
],
"MaxResults": 5,
"StartTime" : 2021-05-18T01:03:34,
"EndTime" : 2021-05-19T01:03:34
}

Also i did tried the unix timestamp but its return an empty Events[], although using just StartTime return a data.

Appreciate if anyone from support team provide some insight.

Thanks

jmer28
已提問 3 年前檢視次數 258 次
1 個回答
0

posted to correct forum

jmer28
已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南