Quantcast
Channel: Dick Wenning's Activities
Viewing all articles
Browse latest Browse all 1245

Database movement operations RESTful API

$
0
0

We have implemented the prerequisite for the database movement API

we are able to list all backups, the impersonated user is project owner on LCS

$projectId = "XXXXXXXXXXXXXXXX"
$sourceEnvironmentId = XXXXXXXXXXXXXXXXXXXXXXXXXXX"
$BackupName = "JAN.bakpak"
$refreshUrl = "">lcsapi.lcs.dynamics.com/.../$BackupName"
$refreshHeader = @{
    Authorization = "Bearer $token"
    "x-ms-version" = '2017-09-15'
    "Content-Type" = "application/json"
}
$refreshResponse = Invoke-RestMethod $refreshUrl -Method 'POST' -Headers $refreshHeader
Write-Output $refreshResponse
IsSuccess OperationActivityId                  ErrorMessage                                                       Versi
2020-05-20T11:11:31.9949463Z                                                                                                                   onEOL
2020-05-20T11:11:31.9965510Z --------- -------------------                  ------------                                                       -----
2020-05-20T11:11:31.9981451Z     False d6a6ce68-10f1-4684-b580-85b1d09b8d95 You don't have the required permissions to perform this operation. 99...

what can it be?


Viewing all articles
Browse latest Browse all 1245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>