Azure Graph API 报告架构

Azure Graph API Reporting Schema

对于我来说,我无法在 Azure AD Graph API 报告 API SSPR 报告架构上找到文档,这些报告作为 JSON 数据返回。

两个具体例子:

示例 1:SSPR 注册 Activity 报告

https://graph.windows.net/contoso.onmicrosoft.com/reports/ssprRegistrationActivityEvents?api-version=beta

此 API 响应包含一个名为 "registrationActivity" 的 JSON 属性,其值例如 reportSSPR_RegistrationData_LastRegisteredTime、reportSSPR_RegistrationData_PrivateAlternateEmail、reportSSPR_RegistrationData_PrivateMobilePhone。

示例 2:SSPR Activity 报告

https://graph.windows.net/kforce.onmicrosoft.com/reports/ssprRegistrationActivityEvents?api-version=beta

此 API 响应包含名为 "result" 的 JSON 属性,其值例如 reportSSPR_ResultType_Failed、reportSSPR_ResultType_Block 和 reportSSPR_ResultType_Succeeded。

我需要知道可以返回的可能值,但到目前为止我还不知道这些信息。

任何人都可以指出这些 API 响应的架构文档吗?

谢谢!

您可以通过以下链接查看 Azure 广告报告的元数据API:

活动元数据:

https://graph.windows.net/tenant-name/activities/$metadata?api-version=beta

报告元数据:

https://graph.windows.net/tenant-name/reports/$metadata?api-version=beta

以及 https://graph.windows.net/contoso.onmicrosoft.com/reports/ssprRegistrationActivityEvents?api-version=beta returns 类型 ssprRegistrationActivityEvents 的请求。您可以通过如下报告元数据进行检查:

<EntityType Name="SsprRegistrationActivityEvent">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="eventTime" Type="Edm.DateTimeOffset" Nullable="false" />
<Property Name="role" Type="Edm.String" />
<Property Name="registrationActivity" Type="Edm.String" />
<Property Name="id" Type="Edm.String" Nullable="false" />
<Property Name="displayName" Type="Edm.String" />
<Property Name="userName" Type="Edm.String" />
</EntityType>