Copy SnapShot from Production to Test Instance using Groovy
Content
Hi,
I am trying to copy the snapshot using Groovy from the EPBCS production enviornemnt to EPBCS Test Enviornment. The Process is running without any error but it is not copying the snapshot. I am using following code to get the snapshots:
// Copy Snapshot from Prod
String strConnection1="https://planning-test-<domain>.pbcs.<datacenter>.oraclecloud.com/interop/rest/v1/services/pbcs/copysnapshot?";
Connection Con1=connection(strConnection1,"<domain>.<username>","<Password>");
HttpResponse<String> jsonResponse = Con1.post("").header("Content-Type","application/x-www-form-urlencoded").body("snapshotName=TestCopySnapshot&userName=<domain>.<username>&fpwd=<password>&targetURL=https://planning-<domain>.pbcs.<datacenter>.oraclecloud.com&dom=<domain>").asString();
Am I missing anything here?