cloudPC: retrieveSnapshots

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

List all cloudPcSnapshot resources for a Cloud PC.

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.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) CloudPC.ReadWrite.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application CloudPC.ReadWrite.All Not available.

HTTP request

GET /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/cloudPCs/b0a9cde2-e170-4dd9-97c3-ad1d3328a711/retrieveSnapshots

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
    }
  ]
}