Namespace: microsoft.graph
Wichtig
Die APIs unter der /beta Version in Microsoft Graph können sich ändern. Die Verwendung dieser APIs in Produktionsanwendungen wird nicht unterstützt. Um festzustellen, ob eine API in v1.0 verfügbar ist, verwenden Sie die Version Selektor.
Wiederholen Sie ein cloudPcBulkAction-Objekt mit ausgewählten Cloud-PCs.
Diese API ist in den folgenden nationalen Cloudbereitstellungen verfügbar.
| Weltweiter Service |
US Government L4 |
US Government L5 (DOD) |
China, betrieben von 21Vianet |
| ✅ |
✅ |
❌ |
❌ |
Berechtigungen
Wählen Sie die Berechtigungen aus, die für diese API als am wenigsten privilegiert markiert sind. Verwenden Sie eine höhere Berechtigung oder Berechtigungen nur, wenn Ihre App dies erfordert. Ausführliche Informationen zu delegierten Berechtigungen und Anwendungsberechtigungen finden Sie unter Berechtigungstypen. Weitere Informationen zu diesen Berechtigungen finden Sie in der Berechtigungsreferenz.
| Berechtigungstyp |
Berechtigungen mit den geringsten Berechtigungen |
Berechtigungen mit höheren Berechtigungen |
| Delegiert (Geschäfts-, Schul- oder Unikonto) |
CloudPC.ReadWrite.All |
Nicht verfügbar. |
| Delegiert (persönliches Microsoft-Konto) |
Nicht unterstützt |
Nicht unterstützt |
| Application |
Nicht unterstützt |
Nicht unterstützt |
HTTP-Anforderung
POST /deviceManagement/virtualEndpoint/bulkActions/{id}/retry
Anforderungstext
Geben Sie im Anforderungstext eine JSON-Darstellung der Parameter an.
Die folgende Tabelle zeigt die Parameter, die mit dieser Methode verwendet werden können.
| Eigenschaft |
Typ |
Beschreibung |
| cloudPcIds |
String collection |
Eine Liste der IDs für die Cloud PC-Geräte, die für die angegebene Massenaktion wiederholt werden sollen. Dies ist optional; Wenn nicht angegeben, werden alle fehlerhaften Geräte versucht. |
Antwort
Wenn die Methode erfolgreich verläuft, wird der Antwortcode 202 Accepted zurückgegeben.
Beispiele
Anforderung
Das folgende Beispiel zeigt eine Anfrage.
POST https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/bulkActions/0d76d02b-e0a0-4f58-baff-d1718cc2d144/retry
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.cloudPcBulkAction",
"cloudPcIds": [
"30d0e128-de93-41dc-89ec-33d84bb662a0",
"7c82a3e3-9459-44e4-94d9-b92f93bf78dd"
]
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
var requestBody = new CloudPcBulkAction
{
OdataType = "#microsoft.graph.cloudPcBulkAction",
CloudPcIds = new List<string>
{
"30d0e128-de93-41dc-89ec-33d84bb662a0",
"7c82a3e3-9459-44e4-94d9-b92f93bf78dd",
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.DeviceManagement.VirtualEndpoint.BulkActions["{cloudPcBulkAction-id}"].Retry.PostAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphmodels "github.com/microsoftgraph/msgraph-beta-sdk-go/models"
//other-imports
)
requestBody := graphmodels.NewRetryPostRequestBody()
cloudPcIds := []string {
"30d0e128-de93-41dc-89ec-33d84bb662a0",
"7c82a3e3-9459-44e4-94d9-b92f93bf78dd",
}
requestBody.SetCloudPcIds(cloudPcIds)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.DeviceManagement().VirtualEndpoint().BulkActions().ByCloudPcBulkActionId("cloudPcBulkAction-id").Retry().Post(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
CloudPcBulkAction retryPostRequestBody = new CloudPcBulkAction();
retryPostRequestBody.setOdataType("#microsoft.graph.cloudPcBulkAction");
LinkedList<String> cloudPcIds = new LinkedList<String>();
cloudPcIds.add("30d0e128-de93-41dc-89ec-33d84bb662a0");
cloudPcIds.add("7c82a3e3-9459-44e4-94d9-b92f93bf78dd");
retryPostRequestBody.setCloudPcIds(cloudPcIds);
graphClient.deviceManagement().virtualEndpoint().bulkActions().byCloudPcBulkActionId("{cloudPcBulkAction-id}").retry().post(retryPostRequestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const retry = {
'@odata.type': '#microsoft.graph.cloudPcBulkAction',
cloudPcIds: [
'30d0e128-de93-41dc-89ec-33d84bb662a0',
'7c82a3e3-9459-44e4-94d9-b92f93bf78dd'
]
};
await client.api('/deviceManagement/virtualEndpoint/bulkActions/0d76d02b-e0a0-4f58-baff-d1718cc2d144/retry')
.version('beta')
.post(retry);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\CloudPcBulkAction;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new CloudPcBulkAction();
$requestBody->setOdataType('#microsoft.graph.cloudPcBulkAction');
$requestBody->setCloudPcIds(['30d0e128-de93-41dc-89ec-33d84bb662a0', '7c82a3e3-9459-44e4-94d9-b92f93bf78dd', ]);
$graphServiceClient->deviceManagement()->virtualEndpoint()->bulkActions()->byCloudPcBulkActionId('cloudPcBulkAction-id')->retry()->post($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.cloud_pc_bulk_action import CloudPcBulkAction
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = CloudPcBulkAction(
odata_type = "#microsoft.graph.cloudPcBulkAction",
cloud_pc_ids = [
"30d0e128-de93-41dc-89ec-33d84bb662a0",
"7c82a3e3-9459-44e4-94d9-b92f93bf78dd",
],
)
await graph_client.device_management.virtual_endpoint.bulk_actions.by_cloud_pc_bulk_action_id('cloudPcBulkAction-id').retry.post(request_body)
Antwort
Das folgende Beispiel zeigt die Antwort.
HTTP/1.1 202 Accepted