【问题标题】:Azure Graph API Reporting SchemaAzure Graph API 报告架构
【发布时间】:2017-07-27 19:20:04
【问题描述】:

在我的生活中,我找不到关于以 JSON 数据返回的 SSPR 报告的 Azure AD Graph API 报告 API 架构的文档。

两个具体例子:

示例 1:SSPR 注册活动报告

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 活动报告

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-ad-graph-api


    【解决方案1】:

    您可以通过以下链接查看 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 的请求返回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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-28
      相关资源
      最近更新 更多