weixin_39628405
weixin_39628405
2020-12-02 19:02

[QUERY] Is there an SDK that returns the Pricing Sheet / RateCard? Or any API in an existing SDK?

Query/Question Is there an SDK that returns the Pricing Sheet / Rate Card for Java? Or any API in an existing SDK? Preferably for Blob Storage

I found a link for billing samples https://github.com/Azure-Samples/billing-java-ratecard-api but it doesn't exist anymore. So is the only available method now to make a REST call directly?

Why is this not a Bug or a feature Request? Unsure of the existence of a feature hence it is neither a bug nor a feature request.

Setup (please complete the following information if applicable): - OS: Ubuntu 18.04 - IDE : IntelliJ 19.1.4 - SDK: azure-storage-blob v12.7.0

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report - [x] Query Added - [x] Setup information Added

该提问来源于开源项目:Azure/azure-sdk-for-java

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

18条回答

  • weixin_39611275 weixin_39611275 4月前

    Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc -premp.

    点赞 评论 复制链接分享
  • weixin_39628405 weixin_39628405 4月前

    -rg Dropping another friendly reminder :)

    点赞 评论 复制链接分享
  • weixin_39625429 weixin_39625429 4月前

    Did you try the Azure Retail Prices API? https://docs.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices

    点赞 评论 复制链接分享
  • weixin_39593460 weixin_39593460 4月前

    hello Somansh, can you please take a look at the documentation Murali has shared and let us know if you have any further questions.

    点赞 评论 复制链接分享
  • weixin_39628405 weixin_39628405 4月前

    Thanks -rg

    This Retail Prices API looks like it returns the same pricing available on the Azure pricing website right?

    However, I noticed that this API https://docs.microsoft.com/en-us/rest/api/consumption/pricesheet/get takes the subscription id as well. So I presume this would have any discounts / customer specific costs?

    点赞 评论 复制链接分享
  • weixin_39625429 weixin_39625429 4月前

    If you need discounted rates, then you can leverage our Private Preview API https://management.azure.com/subscriptions/SubscriptionGuidHere/providers/Microsoft.Consumption/pricesheets/default?api-version=2020-01-01-preview

    点赞 评论 复制链接分享
  • weixin_39628405 weixin_39628405 4月前

    Okay. So this looks to be the same. Thank you.

    So based on my understanding Public rates -> https://docs.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices Subscription specific -> https://management.azure.com/subscriptions/SubscriptionGuidHere/providers/Microsoft.Consumption/pricesheets/default?api-version=2020-01-01-preview

    And there is no Java SDK for this.

    If the above is correct, then my query is answered and this issue can be closed. Thank you

    点赞 评论 复制链接分享
  • weixin_39625429 weixin_39625429 4月前

    yes, that's correct. Please let me know if there are any further questions. Thanks.

    点赞 评论 复制链接分享
  • weixin_39628405 weixin_39628405 4月前

    Cool, thank you

    点赞 评论 复制链接分享
  • weixin_39593460 weixin_39593460 4月前

    Thank you Somansh. Please reach out to us on any further questions.

    点赞 评论 复制链接分享
  • weixin_39854326 weixin_39854326 4月前

    hi -msft could you pls help to check if this is supported in Rest API then SDK? thanks

    点赞 评论 复制链接分享
  • weixin_39610678 weixin_39610678 4月前

    It looks the RateCard APIs is no longer supported here. You may want to check the swagger and sample of request and find out if it's retired or still available.

    点赞 评论 复制链接分享
  • weixin_39628405 weixin_39628405 4月前

    Is the Pricing Sheet an updated version of the older Rate Card API? https://docs.microsoft.com/en-us/rest/api/consumption/pricesheet/get

    点赞 评论 复制链接分享
  • weixin_39611275 weixin_39611275 4月前

    Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc , , -rg, -rengasamy.

    点赞 评论 复制链接分享
  • weixin_39610678 weixin_39610678 4月前

    I just add label of Service Attention so service team could help answer this.

    点赞 评论 复制链接分享
  • weixin_39628405 weixin_39628405 4月前

    -msft Any updates? Could you follow up with the service team?

    点赞 评论 复制链接分享
  • weixin_39610678 weixin_39610678 4月前

    Hi, I find your name on CODEOWNERS of swagger for Billing. Do you know who can help answer the question?

    点赞 评论 复制链接分享
  • weixin_39772420 weixin_39772420 4月前

    -rg - Can you loop in consumption team to help with this.

    点赞 评论 复制链接分享