使用AWS Java SDK的AWS计费信息 [英] aws billing information using aws java sdk
本文介绍了使用AWS Java SDK的AWS计费信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用Java api从AWS获取有关ec2实例,s3存储桶和ebs卷的计费信息。我想创建提供特定实体明智每小时计费报告的api。是否有获取相同的Java API?在aws Java sdk api文档中找不到相同的内容。
I'm trying to get the billing information from aws for ec2 instances, s3 buckets and ebs volumes using java api. I want to create api that gives specific entity wise hourly billing reports. Is there any java api for getting the same? I couldn't find the same in aws java sdk api documentation.
推荐答案
没有API可以获取AWS账单信息。相反,您可以执行以下操作:
There are no APIs to get AWS billing information. Instead what you can do is:
- 打开详细的帐单报告(从信息中心)
- 配置所需的计费报告类型
- AWS每小时将几次以CSV文件的形式将计费信息推送到(预先配置的)存储桶中
- 在需要时使用REST API或S3 Java API从存储桶中获取信息。
- Turn on the detailed billing report (from dashboard)
- Configure what kind of billing reports you want
- AWS will start pushing billing info as CSV files to a (pre)configured bucket several times an hour
- Use REST API or S3 Java API to get the information from the bucket when needed.
有关更多信息:在此处查看
这篇关于使用AWS Java SDK的AWS计费信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文