列出 availableProviderTypesList availableProviderTypes

命名空间:microsoft.graphNamespace: microsoft.graph

重要

/betaMicrosoft Graph 中的版本下的 api 可能会发生更改。APIs under the /beta version in Microsoft Graph are subject to change. 不支持在生产应用程序中使用这些 API。Use of these APIs in production applications is not supported. 若要确定 API 在 v1.0 中是否可用,请使用 版本 选择器。To determine whether an API is available in v1.0, use the Version selector.

检索目录中可用的所有标识提供程序类型。Retrieves all identity provider types available in a directory.

权限Permissions

要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

权限类型Permission type 权限(从最低特权到最高特权)Permissions (from least to most privileged)
委派(工作或学校帐户)Delegated (work or school account) IdentityProvider.Read.All、IdentityProvider.ReadWrite.AllIdentityProvider.Read.All, IdentityProvider.ReadWrite.All
委派(Microsoft 个人帐户)Delegated (personal Microsoft account) 不支持。Not supported.
应用程序Application IdentityProvider.Read.All、IdentityProvider.ReadWrite.AllIdentityProvider.Read.All, IdentityProvider.ReadWrite.All

工作或学校帐户需要属于下列角色之一:The work or school account needs to belong to one of the following roles:

  • 全局管理员Global administrator
  • 外部标识提供程序管理员External Identity Provider administrator

HTTP 请求HTTP request

GET /identityProviders/availableProviderTypes

请求标头Request headers

名称Name 说明Description
AuthorizationAuthorization Bearer {token}。必需。Bearer {token}. Required.

请求正文Request body

请勿提供此方法的请求正文。Do not supply a request body for this method.

响应Response

如果成功,此函数会在响应正文中返回 200 OK 响应代码和一个 String 集合。If successful, this function returns a 200 OK response code and a String collection in the response body.

示例Example

请求Request

下面展示了示例请求。The following is an example of the request.

GET https://graph.microsoft.com/beta/identityProviders/availableProviderTypes

响应Response

下面介绍响应示例。The following is an example of the response.

注意: 为了提高可读性,可能缩短了此处显示的响应对象。Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "value": [
      "Amazon",
      "OpenIDConnect",
      "Facebook",
      "GitHub",
      "Google",
      "LinkedIn",
      "Microsoft",
      "QQ",
      "Twitter",
      "WeChat",
      "Weibo"
  ]
}