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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인