列出条目

命名空间:microsoft.graph.windowsUpdates

重要

Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。

目录中获取 catalogEntry 资源的列表。

目前,此操作返回继承自 catalogEntry 的功能UpdateCatalogEntryqualityUpdateCatalog 类型的条目。

此 API 可用于以下国家级云部署

全局服务 美国政府 L4 美国政府 L5 (DOD) 由世纪互联运营的中国

权限

为此 API 选择标记为最低特权的权限。 只有在应用需要它时,才使用更高的特权权限。 有关委派权限和应用程序权限的详细信息,请参阅权限类型。 要了解有关这些权限的详细信息,请参阅 权限参考

权限类型 最低特权权限 更高特权权限
委派(工作或学校帐户) WindowsUpdates.ReadWrite.All 不可用。
委派(个人 Microsoft 帐户) 不支持。 不支持。
应用程序 WindowsUpdates.ReadWrite.All 不可用。

若要使应用读取或写入具有委派权限的所有 Windows 更新部署设置,必须为登录用户分配全局管理员Intune管理员Windows 更新部署管理员Microsoft Entra角色

HTTP 请求

GET /admin/windows/updates/catalog/entries

可选的查询参数

此方法支持一些 OData 查询参数来帮助自定义响应,包括 $count、、$filter$orderby$select$skip$top

若要对不是从 catalogEntry 继承的属性使用查询参数,请包含该属性的完整资源类型。 例如,若要筛选等于“Windows 11,版本 22H2”的 featureUpdateCatalogEntry的版本属性,请使用 ?$filter=microsoft.graph.windowsUpdates.featureUpdateCatalogEntry/version eq 'Windows 11, version 22H2'

请求标头

名称 说明
Authorization 持有者 {token}。 必填。 详细了解 身份验证和授权

请求正文

请勿提供此方法的请求正文。

响应

如果成功,此方法在响应正文中返回响应 200 OK 代码和 catalogEntry 对象的集合。

示例

请求

以下示例显示了一个请求。

GET https://graph.microsoft.com/beta/admin/windows/updates/catalog/entries

响应

以下示例显示了相应的响应。

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

{
  "value": [
    {
      "@odata.type": "#microsoft.graph.windowsUpdates.featureUpdateCatalogEntry",
      "id": "c1dec151-c151-c1de-51c1-dec151c1dec1",
      "displayName": "String",
      "releaseDateTime": "String (timestamp)",
      "deployableUntilDateTime": "String (timestamp)",
      "version": "String"
    },
    {
      "@odata.type": "#microsoft.graph.windowsUpdates.qualityUpdateCatalogEntry",
      "id": "d0c03fbb-43b9-4dff-840b-974ef227384d",
      "displayName": "07/11/2023 - 2023.07 B SecurityUpdate for Windows 10 and later",
      "catalogName": "2023-07 Cumulative Update for Windows 10 and later",
      "shortName": "2023.07 B",
      "releaseDateTime": "2023-07-11T00:00:00Z",
      "deployableUntilDateTime": null,
      "isExpeditable": true,
      "qualityUpdateClassification": "security",
      "qualityUpdateCadence": "monthly",
      "cveSeverityInformation": {
        "maxSeverity": "critical",
        "maxBaseScore": 9.8,
        "exploitedCves": [
          {
            "number": "CVE-2023-32046",
            "url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-32046"
          }
        ]
      }
    }
  ]
}