【问题标题】:Azure Pricing Details ApiAzure 定价详细信息 API
【发布时间】:2021-02-11 19:48:38
【问题描述】:

与在 AWS 中一样,我们只需点击此 api (https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/index.json) 即可获取定价详细信息,那么有没有更简单的方法可以获取 Azure 中不同实例的定价。

我能找到这个 API https://docs.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices

但这并没有列出实例的详细信息。 由于此处明确提到了不同 VM 的定价 (https://azure.microsoft.com/en-in/pricing/details/virtual-machines/windows/),所以我们可以通过任何 API 以编程方式获取这些详细信息吗?

提前致谢。

【问题讨论】:

    标签: amazon-web-services azure azure-virtual-machine


    【解决方案1】:

    没有统一的 API,您必须从这个经过身份验证的 API 中获取 SKU https://docs.microsoft.com/en-us/rest/api/compute/resourceskus/list

    然后将它们加入到匹配的天蓝色零售价中

    【讨论】:

      猜你喜欢
      • 2022-01-20
      • 2020-12-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-07
      • 1970-01-01
      相关资源
      最近更新 更多