Skip to content

Latest commit

 

History

History
150 lines (123 loc) · 5.59 KB

windowsupdates-updatepolicy-list-compliancechanges-contentapproval.md

File metadata and controls

150 lines (123 loc) · 5.59 KB
title description author ms.localizationpriority ms.subservice doc_type
List contentApprovals
Get a list of the contentApproval objects and their properties.
ryan-k-williams
medium
windows-update-business
apiPageType

List contentApprovals

Namespace: microsoft.graph.windowsUpdates

[!INCLUDE beta-disclaimer]

Get a list of the contentApproval objects and their properties.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

[!INCLUDE rbac-windows-updates-apis]

HTTP request

GET /admin/windows/updates/updatePolicies/{updatePolicyId}/complianceChanges/microsoft.graph.windowsUpdates.contentApproval

Optional query parameters

This method supports some of the OData query parameters to help customize the response. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a collection of microsoft.graph.windowsUpdates.contentApproval objects in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/admin/windows/updates/updatePolicies/a7aa99c1-34a2-850c-5223-7816fde70713/complianceChanges/microsoft.graph.windowsUpdates.contentApproval

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

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

{
  "value": [
    {
      "@odata.type": "#microsoft.graph.windowsUpdates.contentApproval",
      "id": "bba2a340-1e32-b5ed-186e-678e16033319",
      "createdDateTime": "2020-06-09T10:00:00Z",
      "isRevoked": false,
      "updatePolicy": { "@odata.id": "updatePolicies/a7aa99c1-34a2-850c-5223-7816fde70713" },
      "content": {
          "@odata.type": "#microsoft.graph.windowsUpdates.catalogContent",
          "catalogEntry": { "id": "de41eaac-10ce-47bb-890e-300c81214929" }
      },
      "deploymentSettings": {
        "contentApplicability": {
          "offerWhileRecommendedBy": ["Microsoft"],
          "safeguard": {
            "disabledSafeguardProfiles": [
              {
                  "category": "likelyIssues"
              }
            ]
          }
        },
        "schedule": {
          "startDateTime": "2020-06-09T10:00:00Z",
          "gradualRollout": {
            "@odata.type": "#microsoft.graph.windowsUpdates.dateDrivenRolloutSettings",
            "endDateTime": "2020-06-16T10:00:00Z"
          }
        }
      },
      "deployments": [
          { "id": "89c97b65-86cd-45b2-afef-1e4b187f61ce" }
      ]
    }
  ]
}