You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Copy SnapShot from Production to Test Instance using Groovy

Received Response
35
Views
2
Comments
edited Sep 17, 2019 9:17PM in Planning 2 comments

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?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!