| 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 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Create a snapshot for a specific Cloud PC device.
[!INCLUDE national-cloud-support]
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]
POST /deviceManagement/virtualEndpoint/cloudPCs/{id}/createSnapshot| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
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. |
If successful, this method returns a 204 No Content response code.
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]
The following example shows the response.
HTTP/1.1 204 No Content