Skip to content

Latest commit

 

History

History
114 lines (80 loc) · 3.62 KB

File metadata and controls

114 lines (80 loc) · 3.62 KB
title cloudPC: createSnapshot
description Create a snapshot for a specific Cloud PC device.
author liguojing929
ms.localizationpriority medium
ms.subservice cloud-pc
doc_type apiPageType
ms.date 06/04/2024

cloudPC: createSnapshot

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Create a snapshot for a specific Cloud PC device.

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

POST /deviceManagement/virtualEndpoint/cloudPCs/{id}/createSnapshot

Request headers

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

Request body

In the request body, supply a JSON representation of the parameters.

The following table shows the parameter that you can use with this action.

Parameter Type Description
storageAccountId String The storage account which receives the restore point (snapshot).
accessTier String The access tier of the blob file that the snapshot is copied to. Possible values are hot, cool, cold, archive, and unknownFutureValue. The default value is hot.

Response

If successful, this method returns a 204 No Content response code.

Examples

Request

The following example shows a request.

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

[!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 204 No Content