获取曝光分数Get exposure score

适用于:Applies to:

想要体验 Microsoft Defender for Endpoint?Want to experience Microsoft Defender for Endpoint? 注册免费试用版。Sign up for a free trial.

备注

如果你是美国政府客户,请使用 Microsoft Defender for Endpoint 中针对美国政府客户的 URI。If you are a US Government customer, please use the URIs listed in Microsoft Defender for Endpoint for US Government customers.

提示

为了提高性能,可以使用距离地理位置更近的服务器:For better performance, you can use server closer to your geo location:

  • api-us.securitycenter.microsoft.comapi-us.securitycenter.microsoft.com
  • api-eu.securitycenter.microsoft.comapi-eu.securitycenter.microsoft.com
  • api-uk.securitycenter.microsoft.comapi-uk.securitycenter.microsoft.com

重要

某些信息与预发布的产品有关,在商业发布之前可能有重大修改。Some information relates to prereleased product which may be substantially modified before it's commercially released. Microsoft 对此处所提供的信息不作任何明示或默示的保证。Microsoft makes no warranties, express or implied, with respect to the information provided here.

检索组织曝光分数。Retrieves the organizational exposure score.

权限Permissions

若要调用此 API,需要以下权限之一。One of the following permissions is required to call this API. 若要了解更多信息(包括如何选择权限),请参阅使用 Microsoft Defender for Endpoint APITo learn more, including how to choose permissions, see Use Microsoft Defender for Endpoint APIs

权限类型Permission type 权限Permission 权限显示名称Permission display name
应用程序Application Score.Read.AllScore.Read.All "读取威胁和漏洞管理分数"'Read Threat and Vulnerability Management score'
委派(工作或学校帐户)Delegated (work or school account) Score.ReadScore.Read "读取威胁和漏洞管理分数"'Read Threat and Vulnerability Management score'

HTTP 请求HTTP request

GET /api/exposureScore

请求标头Request headers

名称Name 类型Type 说明Description
AuthorizationAuthorization 字符串String Bearer {token}。Bearer {token}. 必需Required.

请求正文Request body

EmptyEmpty

响应Response

如果成功,此方法返回 200 OK,响应正文中显示曝光数据。If successful, this method returns 200 OK, with the exposure data in the response body.

示例Example

请求Request

下面是一个请求示例。Here is an example of the request.

GET https://api.securitycenter.microsoft.com/api/exposureScore

响应Response

下面是一个响应示例。Here is an example of the response.

备注

为简洁起见,可能会截断此处显示的响应列表。The response list shown here may be truncated for brevity.

{
    "@odata.context": "https://api.securitycenter.microsoft.com/api/$metadata#ExposureScore/$entity",
    "time": "2019-12-03T07:23:53.280499Z",
    "score": 33.491554051195706
}

另请参阅See also