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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ