Skip to content

Latest commit

 

History

History
134 lines (100 loc) · 4.32 KB

File metadata and controls

134 lines (100 loc) · 4.32 KB
title cloudPC: retrieveSnapshots
description List all snapshots of a Cloud PC.
author doudoujinjin
ms.localizationpriority medium
ms.subservice cloud-pc
doc_type apiPageType
ms.date 10/02/2024

cloudPC: retrieveSnapshots

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

List all cloudPcSnapshot resources for a Cloud PC.

[!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]

HTTP request

GET /deviceManagement/virtualEndpoint/cloudPCs/{cloudPCId}/retrieveSnapshots

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 list of cloudPcSnapshot object in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/cloudPCs/b0a9cde2-e170-4dd9-97c3-ad1d3328a711/retrieveSnapshots

[!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.

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

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(microsoft.graph.cloudPcSnapshot)",
  "value": [
    {
        "id": "CPC_d4cfdeb2-d409-4e97-87ce-618b704d75f1_d95c0bde-485d-400e-9bef-083905e1b768",
        "cloudPcId": "d8b39ec3-03c9-457f-824e-25f48197cec6",
        "status": "ready",
        "createdDateTime": "2024-08-19T14:05:17.2480723Z",
        "lastRestoredDateTime": null,
        "snapshotType": "automatic",
        "expirationDateTime": null
    },
    {
        "id": "CPC_d4cfdeb2-d409-4e97-87ce-618b704d75f1_423e5d9d-06e0-4b3b-8f0c-80f5a5215a10",
        "cloudPcId": "d8b39ec3-03c9-457f-824e-25f48197cec6",
        "status": "ready",
        "createdDateTime": "2024-08-19T02:05:15.624315Z",
        "lastRestoredDateTime": null,
        "snapshotType": "automatic",
        "expirationDateTime": null
    }
  ]
}