【问题标题】:Azure: accessing the Management API using the oAuth key from the Enterprise accountAzure:使用来自企业帐户的 oAuth 密钥访问管理 API
【发布时间】:2015-12-14 11:53:18
【问题描述】:

我有一个带有“Usage Api 访问密钥”的企业帐户。 我可以使用此键拨打电话:

https://ea.azure.com/rest/{account-id}/usage-reports

通过在我的 REST 调用中设置 Authorization 标头。

很遗憾,我不能使用这些相同的密钥来调用使用管理 API,使用如下地址替换订阅 ID:

https://management.azure.com/subscriptions/{suscription-id}/providers/Microsoft.Commerce/UsageAggregates?api-version=2015-06-01-preview&reportedStartTime=2015-02-01T09%3A00%3A00&reportedEndTime=2015-02-08T09%3A00% 3A00&aggregationGranularity=Daily&showDetails=false

结果总是: { “错误”: { "code": "AuthenticationFailed", “消息”:“身份验证失败。” } }

我是否必须为此 API 创建不同类型的密钥?

非常感谢任何帮助!

【问题讨论】:

    标签: api azure enterprise


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-22
      • 2019-12-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-26
      相关资源
      最近更新 更多