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?

gefragt vor einem Jahr234 Aufrufe
3 Antworten
0

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

beantwortet vor einem Jahr
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.

beantwortet vor einem Jahr
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
EXPERTE
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen