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.
Aktualisieren sie die Eigenschaften eines sharePointRestoreSession-Objekts .
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) |
BackupRestore-Restore.ReadWrite.All |
Nicht verfügbar. |
| Delegiert (persönliches Microsoft-Konto) |
Nicht unterstützt |
Nicht unterstützt |
| Application |
BackupRestore-Restore.ReadWrite.All |
Nicht verfügbar. |
HTTP-Anforderung
PATCH /solutions/backupRestore/sharePointRestoreSessions/{sharePointRestoreSessionId}
Anforderungstext
Geben Sie im Anforderungstext nur die Werte für zu aktualisierende Eigenschaften an. Vorhandene Eigenschaften, die nicht im Anforderungstext enthalten sind, behalten ihre vorherigen Werte bei oder werden basierend auf Änderungen an anderen Eigenschaftswerten neu berechnet.
In der folgenden Tabelle sind die Eigenschaften angegeben, die aktualisiert werden können.
Um eine siteRestoreArtifact aus einer Sitewiederherstellungssitzung zu entfernen, geben Sie die @removed Anmerkung im Anforderungstext für das entsprechende Wiederherstellungspunktartefakt zusammen mit der ID von siteRestoreArtifact an.
Um eine granularSiteRestoreArtifact aus einer präzisen Wiederherstellungssitzung zu entfernen, geben Sie die @removed Anmerkung im Anforderungstext für die entsprechende Artefakt-ID der granularSiteRestoreArtifact an.
Antwort
Bei erfolgreicher Ausführung gibt die Methode einen 200 OK Antwortcode und ein aktualisiertes sharePointRestoreSession-Objekt im Antworttext zurück.
Eine Liste der möglichen Fehlerantworten finden Sie unter Fehlerantworten der Backup Storage-API.
Beispiele
Beispiel 1: Aktualisieren einer Standardwiederherstellungssitzung.
Anforderung
Das folgende Beispiel zeigt eine Anfrage.
PATCH https://graph.microsoft.com/beta/solutions/backupRestore/sharepointRestoreSessions/845457dc-4bb2-4815-bef3-8628ebd1952
Content-Type: application/json
{
"siteRestoreArtifacts@delta": [
{
"restorePoint": { "id": "1b014d8c-71fe-4d00-a01a-31850bc5b32c" }, //Create a new site restore artifact and add it under the Restore Session.
"destinationType": "new"
},
{
"restorePoint": { "id": "2b014d8c-71fe-4d00-a01a-31850bc5b32" },
"destinationType": "new"
},
{
"restorePoint": { "id": "3b014d8c-71fe-4d00-a01a-31850bc5b32c" },
"destinationType": "new"
},
{
"restorePoint": { "id": "4b014d8c-71fe-4d00-a01a-31850bc5b32c" },
"destinationType": "new"
},
{
"@removed": {
"reason": "changed"
},
"id": "959ba739-70b5-43c4-8c90-b2c22014f18a"
},
{
"@removed": {
"reason": "changed"
},
"id": "959ba739-70b5-43c4-8c90-b2c22014f18b"
},
{
"@removed": {
"reason": "changed"
},
"id": "959ba739-70b5-43c4-8c90-b2c22014f18c"
}
]
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
using Microsoft.Kiota.Abstractions.Serialization;
var requestBody = new SharePointRestoreSession
{
AdditionalData = new Dictionary<string, object>
{
{
"siteRestoreArtifacts@delta" , new List<object>
{
new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"restorePoint", new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"id", new UntypedString("1b014d8c-71fe-4d00-a01a-31850bc5b32c")
},
})
},
{
"destinationType", new UntypedString("new")
},
}),
new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"restorePoint", new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"id", new UntypedString("2b014d8c-71fe-4d00-a01a-31850bc5b32")
},
})
},
{
"destinationType", new UntypedString("new")
},
}),
new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"restorePoint", new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"id", new UntypedString("3b014d8c-71fe-4d00-a01a-31850bc5b32c")
},
})
},
{
"destinationType", new UntypedString("new")
},
}),
new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"restorePoint", new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"id", new UntypedString("4b014d8c-71fe-4d00-a01a-31850bc5b32c")
},
})
},
{
"destinationType", new UntypedString("new")
},
}),
new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"@removed", new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"reason", new UntypedString("changed")
},
})
},
{
"id", new UntypedString("959ba739-70b5-43c4-8c90-b2c22014f18a")
},
}),
new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"@removed", new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"reason", new UntypedString("changed")
},
})
},
{
"id", new UntypedString("959ba739-70b5-43c4-8c90-b2c22014f18b")
},
}),
new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"@removed", new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"reason", new UntypedString("changed")
},
})
},
{
"id", new UntypedString("959ba739-70b5-43c4-8c90-b2c22014f18c")
},
}),
}
},
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Solutions.BackupRestore.SharePointRestoreSessions["{sharePointRestoreSession-id}"].PatchAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
SharePointRestoreSession sharePointRestoreSession = new SharePointRestoreSession();
HashMap<String, Object> additionalData = new HashMap<String, Object>();
LinkedList<Object> siteRestoreArtifactsDelta = new LinkedList<Object>();
property = new ();
restorePoint = new ();
restorePoint.setId("1b014d8c-71fe-4d00-a01a-31850bc5b32c");
property.setRestorePoint(restorePoint);
property.setDestinationType("new");
siteRestoreArtifactsDelta.add(property);
property1 = new ();
restorePoint1 = new ();
restorePoint1.setId("2b014d8c-71fe-4d00-a01a-31850bc5b32");
property1.setRestorePoint(restorePoint1);
property1.setDestinationType("new");
siteRestoreArtifactsDelta.add(property1);
property2 = new ();
restorePoint2 = new ();
restorePoint2.setId("3b014d8c-71fe-4d00-a01a-31850bc5b32c");
property2.setRestorePoint(restorePoint2);
property2.setDestinationType("new");
siteRestoreArtifactsDelta.add(property2);
property3 = new ();
restorePoint3 = new ();
restorePoint3.setId("4b014d8c-71fe-4d00-a01a-31850bc5b32c");
property3.setRestorePoint(restorePoint3);
property3.setDestinationType("new");
siteRestoreArtifactsDelta.add(property3);
property4 = new ();
removed = new ();
removed.setReason("changed");
property4.setRemoved(removed);
property4.setId("959ba739-70b5-43c4-8c90-b2c22014f18a");
siteRestoreArtifactsDelta.add(property4);
property5 = new ();
removed1 = new ();
removed1.setReason("changed");
property5.setRemoved(removed1);
property5.setId("959ba739-70b5-43c4-8c90-b2c22014f18b");
siteRestoreArtifactsDelta.add(property5);
property6 = new ();
removed2 = new ();
removed2.setReason("changed");
property6.setRemoved(removed2);
property6.setId("959ba739-70b5-43c4-8c90-b2c22014f18c");
siteRestoreArtifactsDelta.add(property6);
additionalData.put("siteRestoreArtifacts@delta", siteRestoreArtifactsDelta);
sharePointRestoreSession.setAdditionalData(additionalData);
SharePointRestoreSession result = graphClient.solutions().backupRestore().sharePointRestoreSessions().bySharePointRestoreSessionId("{sharePointRestoreSession-id}").patch(sharePointRestoreSession);
const options = {
authProvider,
};
const client = Client.init(options);
const sharePointRestoreSession = {
'siteRestoreArtifacts@delta': [
{
restorePoint: { id: '1b014d8c-71fe-4d00-a01a-31850bc5b32c' }, //Create a new site restore artifact and add it under the Restore Session.
destinationType: 'new'
},
{
restorePoint: { id: '2b014d8c-71fe-4d00-a01a-31850bc5b32' },
destinationType: 'new'
},
{
restorePoint: { id: '3b014d8c-71fe-4d00-a01a-31850bc5b32c' },
destinationType: 'new'
},
{
restorePoint: { id: '4b014d8c-71fe-4d00-a01a-31850bc5b32c' },
destinationType: 'new'
},
{
'@removed': {
reason: 'changed'
},
id: '959ba739-70b5-43c4-8c90-b2c22014f18a'
},
{
'@removed': {
reason: 'changed'
},
id: '959ba739-70b5-43c4-8c90-b2c22014f18b'
},
{
'@removed': {
reason: 'changed'
},
id: '959ba739-70b5-43c4-8c90-b2c22014f18c'
}
]
};
await client.api('/solutions/backupRestore/sharepointRestoreSessions/845457dc-4bb2-4815-bef3-8628ebd1952')
.version('beta')
.update(sharePointRestoreSession);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\SharePointRestoreSession;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new SharePointRestoreSession();
$additionalData = [
'siteRestoreArtifacts@delta' => [
[
'restorePoint' => [
'id' => '1b014d8c-71fe-4d00-a01a-31850bc5b32c',
],
'destinationType' => 'new',
],
[
'restorePoint' => [
'id' => '2b014d8c-71fe-4d00-a01a-31850bc5b32',
],
'destinationType' => 'new',
],
[
'restorePoint' => [
'id' => '3b014d8c-71fe-4d00-a01a-31850bc5b32c',
],
'destinationType' => 'new',
],
[
'restorePoint' => [
'id' => '4b014d8c-71fe-4d00-a01a-31850bc5b32c',
],
'destinationType' => 'new',
],
[
'@removed' => [
'reason' => 'changed',
],
'id' => '959ba739-70b5-43c4-8c90-b2c22014f18a',
],
[
'@removed' => [
'reason' => 'changed',
],
'id' => '959ba739-70b5-43c4-8c90-b2c22014f18b',
],
[
'@removed' => [
'reason' => 'changed',
],
'id' => '959ba739-70b5-43c4-8c90-b2c22014f18c',
],
],
];
$requestBody->setAdditionalData($additionalData);
$result = $graphServiceClient->solutions()->backupRestore()->sharePointRestoreSessions()->bySharePointRestoreSessionId('sharePointRestoreSession-id')->patch($requestBody)->wait();
Import-Module Microsoft.Graph.Beta.BackupRestore
$params = @{
"siteRestoreArtifacts@delta" = @(
@{
restorePoint = @{
id = "1b014d8c-71fe-4d00-a01a-31850bc5b32c"
}
destinationType = "new"
}
@{
restorePoint = @{
id = "2b014d8c-71fe-4d00-a01a-31850bc5b32"
}
destinationType = "new"
}
@{
restorePoint = @{
id = "3b014d8c-71fe-4d00-a01a-31850bc5b32c"
}
destinationType = "new"
}
@{
restorePoint = @{
id = "4b014d8c-71fe-4d00-a01a-31850bc5b32c"
}
destinationType = "new"
}
@{
"@removed" = @{
reason = "changed"
}
id = "959ba739-70b5-43c4-8c90-b2c22014f18a"
}
@{
"@removed" = @{
reason = "changed"
}
id = "959ba739-70b5-43c4-8c90-b2c22014f18b"
}
@{
"@removed" = @{
reason = "changed"
}
id = "959ba739-70b5-43c4-8c90-b2c22014f18c"
}
)
}
Update-MgBetaSolutionBackupRestoreSharePointRestoreSession -SharePointRestoreSessionId $sharePointRestoreSessionId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.share_point_restore_session import SharePointRestoreSession
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = SharePointRestoreSession(
additional_data = {
"site_restore_artifacts@delta" : [
{
"restore_point" : {
"id" : "1b014d8c-71fe-4d00-a01a-31850bc5b32c",
},
"destination_type" : "new",
},
{
"restore_point" : {
"id" : "2b014d8c-71fe-4d00-a01a-31850bc5b32",
},
"destination_type" : "new",
},
{
"restore_point" : {
"id" : "3b014d8c-71fe-4d00-a01a-31850bc5b32c",
},
"destination_type" : "new",
},
{
"restore_point" : {
"id" : "4b014d8c-71fe-4d00-a01a-31850bc5b32c",
},
"destination_type" : "new",
},
{
"@removed" : {
"reason" : "changed",
},
"id" : "959ba739-70b5-43c4-8c90-b2c22014f18a",
},
{
"@removed" : {
"reason" : "changed",
},
"id" : "959ba739-70b5-43c4-8c90-b2c22014f18b",
},
{
"@removed" : {
"reason" : "changed",
},
"id" : "959ba739-70b5-43c4-8c90-b2c22014f18c",
},
],
}
)
result = await graph_client.solutions.backup_restore.share_point_restore_sessions.by_share_point_restore_session_id('sharePointRestoreSession-id').patch(request_body)
Antwort
Das folgende Beispiel zeigt die Antwort.
HTTP/1.1 200 OK
{
"siteRestoreArtifacts@delta": [
{
"id": "89014d8c-71fe-4d00-a01a-31850bc5b32c",
"restorePoint": { "id": "1b014d8c-71fe-4d00-a01a-31850bc5b32c" },
"destinationType": "new",
"status": "added",
"createdDateTime": "2015-06-19T12:01:03.45Z"
},
{
"id": "67014d8c-71fe-4d00-a01a-31850bc5b32c",
"restorePoint": { "id": "2b014d8c-71fe-4d00-a01a-31850bc5b32c" },
"destinationType": "new",
"status": "added",
"createdDateTime": "2015-06-19T12:01:03.45Z"
},
{
"id": "56014d8c-71fe-4d00-a01a-31850bc5b32c",
"restorePoint": { "id": "3b014d8c-71fe-4d00-a01a-31850bc5b32c" },
"destinationType": "new",
"status": "added",
"createdDateTime": "2015-06-19T12:01:03.45Z"
},
{
"id": "32014d8c-71fe-4d00-a01a-31850bc5b32c",
"restorePoint": { "id": "4b014d8c-71fe-4d00-a01a-31850bc5b32c" },
"destinationType": "new",
"status": "added",
"createdDateTime": "2015-06-19T12:01:03.45Z"
},
{
"id": "99954f18-c8ec-4b62-85bf-cdf3b70b140e",
"restorePoint": { "id": "7b014d8c-71fe-4d00-a01a-31850bc5b32c" },
"destinationType": "new",
"status": "added",
"createdDateTime": "2015-06-19T12:01:03.45Z"
},
{
//Error scenario
"@contentId": "3467e382-71a9-4c07-bef7-bda97e09c0d2", // To add context and more traceability.
"@Core.DataModificationException": {
"info": {
"code": "Invalid",
"message": "The identifier to be removed from the Restore Session does not exist"
},
"failedOperation": "remove",
"responseCode": 409
},
"id": "4267e382-71a9-4c07-bef7-bda97e09c0d2"
}
]
}
Beispiel 2: Aktualisieren einer präzisen Wiederherstellungssitzung
Anforderung
Das folgende Beispiel zeigt eine Anfrage.
PATCH https://graph.microsoft.com/beta/solutions/backupRestore/sharePointRestoreSessions/01b9d504-a6a4-464b-b2e1-0085d9fab651
Content-Type: application/json
{
"granularSiteRestoreArtifacts@delta": [
{
"browseSessionId": "m_RtZ8BiiUXOK69cuN6gwubfm9_yeVlDg8s6hci01_cVOAE",
"id": "f3846f8d-80a6-4480-ae20-5966ebdf2009,26380145-c085-4772-b5ef-94de6bc9447e,3be2f282-276a-4a1a-8db0-8bf0849df84d,8d1ba53f-986a-409f-bf90-3bf55dbd7526"
},
{
"@removed": {
"reason": "changed"
},
"id": "a535851e-9fc6-4eb1-90ab-2955fd9117b5,2a8b7eaf-092a-4561-a25a-998ad2e5142e,38eec3f1-b879-44a6-8ae6-05bd46ed4b3d,ce66019f-cdf9-4575-aa81-de3aabe844a2"
}
]
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
using Microsoft.Kiota.Abstractions.Serialization;
var requestBody = new SharePointRestoreSession
{
AdditionalData = new Dictionary<string, object>
{
{
"granularSiteRestoreArtifacts@delta" , new List<object>
{
new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"browseSessionId", new UntypedString("m_RtZ8BiiUXOK69cuN6gwubfm9_yeVlDg8s6hci01_cVOAE")
},
{
"id", new UntypedString("f3846f8d-80a6-4480-ae20-5966ebdf2009,26380145-c085-4772-b5ef-94de6bc9447e,3be2f282-276a-4a1a-8db0-8bf0849df84d,8d1ba53f-986a-409f-bf90-3bf55dbd7526")
},
}),
new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"@removed", new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"reason", new UntypedString("changed")
},
})
},
{
"id", new UntypedString("a535851e-9fc6-4eb1-90ab-2955fd9117b5,2a8b7eaf-092a-4561-a25a-998ad2e5142e,38eec3f1-b879-44a6-8ae6-05bd46ed4b3d,ce66019f-cdf9-4575-aa81-de3aabe844a2")
},
}),
}
},
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Solutions.BackupRestore.SharePointRestoreSessions["{sharePointRestoreSession-id}"].PatchAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
SharePointRestoreSession sharePointRestoreSession = new SharePointRestoreSession();
HashMap<String, Object> additionalData = new HashMap<String, Object>();
LinkedList<Object> granularSiteRestoreArtifactsDelta = new LinkedList<Object>();
property = new ();
property.setBrowseSessionId("m_RtZ8BiiUXOK69cuN6gwubfm9_yeVlDg8s6hci01_cVOAE");
property.setId("f3846f8d-80a6-4480-ae20-5966ebdf2009,26380145-c085-4772-b5ef-94de6bc9447e,3be2f282-276a-4a1a-8db0-8bf0849df84d,8d1ba53f-986a-409f-bf90-3bf55dbd7526");
granularSiteRestoreArtifactsDelta.add(property);
property1 = new ();
removed = new ();
removed.setReason("changed");
property1.setRemoved(removed);
property1.setId("a535851e-9fc6-4eb1-90ab-2955fd9117b5,2a8b7eaf-092a-4561-a25a-998ad2e5142e,38eec3f1-b879-44a6-8ae6-05bd46ed4b3d,ce66019f-cdf9-4575-aa81-de3aabe844a2");
granularSiteRestoreArtifactsDelta.add(property1);
additionalData.put("granularSiteRestoreArtifacts@delta", granularSiteRestoreArtifactsDelta);
sharePointRestoreSession.setAdditionalData(additionalData);
SharePointRestoreSession result = graphClient.solutions().backupRestore().sharePointRestoreSessions().bySharePointRestoreSessionId("{sharePointRestoreSession-id}").patch(sharePointRestoreSession);
const options = {
authProvider,
};
const client = Client.init(options);
const sharePointRestoreSession = {
'granularSiteRestoreArtifacts@delta': [
{
browseSessionId: 'm_RtZ8BiiUXOK69cuN6gwubfm9_yeVlDg8s6hci01_cVOAE',
id: 'f3846f8d-80a6-4480-ae20-5966ebdf2009,26380145-c085-4772-b5ef-94de6bc9447e,3be2f282-276a-4a1a-8db0-8bf0849df84d,8d1ba53f-986a-409f-bf90-3bf55dbd7526'
},
{
'@removed': {
reason: 'changed'
},
id: 'a535851e-9fc6-4eb1-90ab-2955fd9117b5,2a8b7eaf-092a-4561-a25a-998ad2e5142e,38eec3f1-b879-44a6-8ae6-05bd46ed4b3d,ce66019f-cdf9-4575-aa81-de3aabe844a2'
}
]
};
await client.api('/solutions/backupRestore/sharePointRestoreSessions/01b9d504-a6a4-464b-b2e1-0085d9fab651')
.version('beta')
.update(sharePointRestoreSession);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\SharePointRestoreSession;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new SharePointRestoreSession();
$additionalData = [
'granularSiteRestoreArtifacts@delta' => [
[
'browseSessionId' => 'm_RtZ8BiiUXOK69cuN6gwubfm9_yeVlDg8s6hci01_cVOAE',
'id' => 'f3846f8d-80a6-4480-ae20-5966ebdf2009,26380145-c085-4772-b5ef-94de6bc9447e,3be2f282-276a-4a1a-8db0-8bf0849df84d,8d1ba53f-986a-409f-bf90-3bf55dbd7526',
],
[
'@removed' => [
'reason' => 'changed',
],
'id' => 'a535851e-9fc6-4eb1-90ab-2955fd9117b5,2a8b7eaf-092a-4561-a25a-998ad2e5142e,38eec3f1-b879-44a6-8ae6-05bd46ed4b3d,ce66019f-cdf9-4575-aa81-de3aabe844a2',
],
],
];
$requestBody->setAdditionalData($additionalData);
$result = $graphServiceClient->solutions()->backupRestore()->sharePointRestoreSessions()->bySharePointRestoreSessionId('sharePointRestoreSession-id')->patch($requestBody)->wait();
Import-Module Microsoft.Graph.Beta.BackupRestore
$params = @{
"granularSiteRestoreArtifacts@delta" = @(
@{
browseSessionId = "m_RtZ8BiiUXOK69cuN6gwubfm9_yeVlDg8s6hci01_cVOAE"
id = "f3846f8d-80a6-4480-ae20-5966ebdf2009,26380145-c085-4772-b5ef-94de6bc9447e,3be2f282-276a-4a1a-8db0-8bf0849df84d,8d1ba53f-986a-409f-bf90-3bf55dbd7526"
}
@{
"@removed" = @{
reason = "changed"
}
id = "a535851e-9fc6-4eb1-90ab-2955fd9117b5,2a8b7eaf-092a-4561-a25a-998ad2e5142e,38eec3f1-b879-44a6-8ae6-05bd46ed4b3d,ce66019f-cdf9-4575-aa81-de3aabe844a2"
}
)
}
Update-MgBetaSolutionBackupRestoreSharePointRestoreSession -SharePointRestoreSessionId $sharePointRestoreSessionId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.share_point_restore_session import SharePointRestoreSession
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = SharePointRestoreSession(
additional_data = {
"granular_site_restore_artifacts@delta" : [
{
"browse_session_id" : "m_RtZ8BiiUXOK69cuN6gwubfm9_yeVlDg8s6hci01_cVOAE",
"id" : "f3846f8d-80a6-4480-ae20-5966ebdf2009,26380145-c085-4772-b5ef-94de6bc9447e,3be2f282-276a-4a1a-8db0-8bf0849df84d,8d1ba53f-986a-409f-bf90-3bf55dbd7526",
},
{
"@removed" : {
"reason" : "changed",
},
"id" : "a535851e-9fc6-4eb1-90ab-2955fd9117b5,2a8b7eaf-092a-4561-a25a-998ad2e5142e,38eec3f1-b879-44a6-8ae6-05bd46ed4b3d,ce66019f-cdf9-4575-aa81-de3aabe844a2",
},
],
}
)
result = await graph_client.solutions.backup_restore.share_point_restore_sessions.by_share_point_restore_session_id('sharePointRestoreSession-id').patch(request_body)
Antwort
Das folgende Beispiel zeigt die Antwort.
Hinweis: Das hier gezeigte Antwortobjekt kann zur besseren Lesbarkeit gekürzt werden.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@context": "https://graph.microsoft.com/beta/$metadata#solutions/backupRestore/sharePointRestoreSessions/$entity",
"id": "01b9d504-a6a4-464b-b2e1-0085d9fab651",
"granularSiteRestoreArtifacts@delta": [
{
"siteId": null,
"id": "f3846f8d-80a6-4480-ae20-5966ebdf2009,26380145-c085-4772-b5ef-94de6bc9447e,3be2f282-276a-4a1a-8db0-8bf0849df84d,8d1ba53f-986a-409f-bf90-3bf55dbd7526",
"browseSessionId": "m_RtZ8BiiUXOK69cuN6gwubfm9_yeVlDg8s6hci01_cVOAE",
"restoredItemKey": "",
"webUrl": "",
"restoredItemPath": null,
"restoredItemWebUrl": "",
"status": "added",
"restorePointDateTime": "0001-01-01T00:00:00Z",
"startDateTime": "0001-01-01T00:00:00Z",
"completionDateTime": "0001-01-01T00:00:00Z"
},
{
"id": "a535851e-9fc6-4eb1-90ab-2955fd9117b5,2a8b7eaf-092a-4561-a25a-998ad2e5142e,38eec3f1-b879-44a6-8ae6-05bd46ed4b3d,ce66019f-cdf9-4575-aa81-de3aabe844a2",
"@removed": {
"reason": "changed"
}
}
]
}