Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 935 Bytes

File metadata and controls

24 lines (17 loc) · 935 Bytes
description Automatically generated file. DO NOT MODIFY
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\SharePointMigrationJob;
use Microsoft\Graph\Generated\Models\SharePointMigrationContainerInfo;


$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);

$requestBody = new SharePointMigrationJob();
$containerInfo = new SharePointMigrationContainerInfo();
$containerInfo->setDataContainerUri('https://spoxxx.blob.core.windows.net/data?sp=rw&sig=');
$containerInfo->setMetadataContainerUri('https://spoxxx.blob.core.windows.net/metadata?sp=rw&sig=');
$containerInfo->setEncryptionKey('base64 encoded key for AES-256-CBC encryption');
$requestBody->setContainerInfo($containerInfo);

$result = $graphServiceClient->storage()->fileStorage()->containers()->byFileStorageContainerId('fileStorageContainer-id')->migrationJobs()->post($requestBody)->wait();