列出部署访问群体排除项List deployment audience exclusions

命名空间:microsoft.graph.windowsUpdatesNamespace: microsoft.graph.windowsUpdates

重要

Microsoft Graph /beta 中的版本下的 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.

列出从deploymentAudience中排除的updatableAsset资源。List the updatableAsset resources that are excluded from a deploymentAudience.

权限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) WindowsUpdates.ReadWrite.AllWindowsUpdates.ReadWrite.All
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account) 不支持。Not supported.
应用程序Application WindowsUpdates.ReadWrite.AllWindowsUpdates.ReadWrite.All

HTTP 请求HTTP request

GET /admin/windows/updates/deployments/{deploymentId}/audience/exclusions

可选的查询参数Optional query parameters

此方法支持一些 OData 查询 参数来帮助自定义响应,包括 $count $filter $orderBy $select 、、 $skip$topThis method supports some of the OData query parameters to help customize the response, including $count, $filter, $orderBy, $select, $skip, and $top.

若要对不是从 updatableAsset继承的属性使用查询参数,请包含属性的完整资源类型。To use a query parameter on a property that is not inherited from updatableAsset, include the full resource type for the property. 例如,若要选择 azureADDevice, errors 请使用 $select=microsoft.graph.windowsUpdates.azureADDevice/errorsFor example, to select azureADDevice errors, use $select=microsoft.graph.windowsUpdates.azureADDevice/errors.

请求标头Request headers

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

请求正文Request body

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

响应Response

如果成功,此方法在响应正文中返回 响应代码和 200 OK updatableAsset 对象集合。If successful, this method returns a 200 OK response code and a collection of updatableAsset objects in the response body.

示例Examples

请求Request

GET https://graph.microsoft.com/beta/admin/windows/updates/deployments/{deploymentId}/audience/exclusions

响应Response

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

{
  "value": [
    {
      "@odata.type": "#microsoft.graph.windowsUpdates.updatableAssetGroup",
      "id": "f5ba7065-7065-f5ba-6570-baf56570baf5"
    },
    {
      "@odata.type": "#microsoft.graph.windowsUpdates.azureADDevice",
      "id": "fb95f07d-9e73-411d-99ab-7eca3a5122b1",
      "errors": [
        {
          "@odata.type": "microsoft.graph.windowsUpdates.azureADDeviceRegistrationError"
        }
      ],
      "enrollments": [
        {
          "@odata.type": "microsoft.graph.windowsUpdates.updateManagementEnrollment"
        }
      ]
    },
  ]
}