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?

feita há um ano260 visualizações
3 Respostas
0

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

respondido há um ano
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.

respondido há um ano
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
ESPECIALISTA
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas