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 年前檢視次數 261 次
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 年前

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

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

回答問題指南