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.
Restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
CloudPC.ReadWrite.All
Delegated (personal Microsoft account)
Not supported.
Application
CloudPC.ReadWrite.All
HTTP request
POST /deviceManagement/managedDevices/bulkRestoreCloudPc
Request headers
Name
Description
Authorization
Bearer {token}. Required.
Content-Type
application/json. Required.
Request body
In the request body, supply a JSON representation of the parameters.
The following table shows the parameters that can be used with this action.
Parameter
Type
Description
managedDeviceIds
String collection
The IDs of the Cloud PC devices.
restorePointDateTime
DateTimeOffset
The UTC time point for the selected Cloud PC devices to restore to a previous state. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is '2014-01-01T00:00:00Z'.
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var managedDeviceIds = new List<String>()
{
"30d0e128-de93-41dc-89ec-33d84bb662a0",
"7c82a3e3-9459-44e4-94d9-b92f93bf78dd"
};
var restorePointDateTime = DateTimeOffset.Parse("2021-09-23T04:00:00");
var timeRange = RestoreTimeRange.Before;
await graphClient.DeviceManagement.ManagedDevices
.BulkRestoreCloudPc(managedDeviceIds,restorePointDateTime,timeRange)
.Request()
.PostAsync();
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
//THE GO SDK IS IN PREVIEW. NON-PRODUCTION USE ONLY
graphClient := msgraphsdk.NewGraphServiceClient(requestAdapter)
requestBody := graphmodels.NewBulkRestoreCloudPcPostRequestBody()
managedDeviceIds := []string {
"30d0e128-de93-41dc-89ec-33d84bb662a0",
"7c82a3e3-9459-44e4-94d9-b92f93bf78dd",
}
requestBody.SetManagedDeviceIds(managedDeviceIds)
restorePointDateTime , err := time.Parse(time.RFC3339, "2021-09-23T04:00:00.0000000")
requestBody.SetRestorePointDateTime(&restorePointDateTime)
timeRange := graphmodels.BEFORE_RESTORETIMERANGE
requestBody.SetTimeRange(&timeRange)
result, err := graphClient.DeviceManagement().ManagedDevices().BulkRestoreCloudPc().Post(context.Background(), requestBody, nil)
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new BulkRestoreCloudPcPostRequestBody();
$requestBody->setManagedDeviceIds(['30d0e128-de93-41dc-89ec-33d84bb662a0', '7c82a3e3-9459-44e4-94d9-b92f93bf78dd', ]);
$requestBody->setRestorePointDateTime(new DateTime('2021-09-23T04:00:00.0000000'));
$requestBody->setTimeRange(new RestoreTimeRange('before'));
$requestResult = $graphServiceClient->deviceManagement()->managedDevices()->bulkRestoreCloudPc()->post($requestBody);
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.