unable to create cost and usage report using rest api

0

Hi , I am trying to create cur reports using rest api . but i am getting below error Request failed with status HTTP 400 - https://cur.us-east-1.amazonaws.com Error response - {"__type":"UnknownOperationException"} I tried DescribeReportDefinitions too , but ended up the same error. header : '{"Content-Type":"application/x-amz-json-1.1", "X-Amz-Target":"AWSOrigamiServiceGateway.PutReportDefinition"}' body : '{ "ReportDefinition": { "ReportName": "ExampleReport", "TimeUnit": "DAILY", "Format": "textORcsv", "Compression": "ZIP", "AdditionalSchemaElements": [ "RESOURCES" ], "S3Bucket": "example-s3-bucket", "S3Prefix": "exampleprefix", "S3Region": "us-east-1", "AdditionalArtifacts": [ "REDSHIFT", "QUICKSIGHT" ] } }' can you please suggest where i am going wrong. Thanks!

  • Can you please share the full command line / script you use?

質問済み 1年前257ビュー
3回答
0

As shown in the image X-Amz-Target: AWSOrigamiServiceGateway.PutReportDefinition , but actual target is X-Amz-Target:AWSOrigamiServiceGatewayService.PutReportDefinition. Enter image description here

回答済み 1年前
0

Hi Jonathan, thanks for your reply. I got the issue . Seems like the target mentioned in the documentation is wrong , got the proper target from cli commands using debug.

回答済み 1年前
0

Glad to hear! thanks for letting us know. Do you have more information on what is wrong in the documentation? You can always use the "Provide feedback" link at the bottom of the AWS documentation page if you find an issue.

profile pictureAWS
エキスパート
回答済み 1年前

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

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

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

関連するコンテンツ