【问题标题】:Where do I find resourceIds of WebAPIs listed in Azure API access?在哪里可以找到 Azure API 访问中列出的 WebAPI 的 resourceId?
【发布时间】:2019-07-12 07:10:13
【问题描述】:

Graph API 的 ResourceId 是:https://graph.windows.net/

我在网上的一些示例代码中找到了这个,但找不到其他 API。我在哪里可以找到其他 API 的 resourceId,例如:Office 365 管理 API、Windows Azure Active Directory、Windows Azure 服务管理 API

【问题讨论】:

    标签: azure azure-active-directory


    【解决方案1】:

    嗯,正如您所料,Microsoft Graph API 是 https://graph.microsoft.com

    您可以在此处找到一些 Azure API:https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/services-support-msi#azure-services-that-support-azure-ad-authentication

    最终,如果您在任何地方都找不到它,您可以使用 Graph Explorer https://aka.ms/ge 通过 /beta/servicePrincipals 获取租户中的所有服务主体。 找到 API 的主体,它将具有标识符 URI。

    【讨论】:

      【解决方案2】:

      我的解决方案是查找 API 参考,查看文档中的一些示例 API。例如。对于Office 365 Management APIs,谷歌Office 365 Management APIs reference,我们可以找到像thisthis这样的文档,所以ResourceId应该是https://manage.office.com

      用同样的方法,我们可以发现Windows Azure Active Directory(i.e. azure ad graph api)https://graph.windows.netWindows Azure Service Management APIhttps://management.core.windows.net

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-08-09
        • 1970-01-01
        • 2016-01-04
        • 2010-10-17
        • 1970-01-01
        相关资源
        最近更新 更多