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 年前236 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则