Migrate VDB using API

  • 0
  • 1
  • Question
  • Updated 1 month ago
  • Answered
Hi there,
Do we have a sample script for migrating a VDB through an API call?
Regards
Photo of EnterpriseMan

EnterpriseMan

  • 630 Points 500 badge 2x thumb

Posted 1 month ago

  • 0
  • 1
Photo of MichaelT

MichaelT, Official Rep

  • 2,026 Points 2k badge 2x thumb
Official Response
So, in talking with our Oracle team, there does not seem to be a single call to do this. It is a combination of 3 calls, first to disable, next to update info, third to enable/startup again.

It's not an operation directly on the api,  It's the combination of disable, update sourceconfig and enable again
here is an example of the api calls to do a migrate
POST /resources/json/delphix/source/ORACLE_VIRTUAL_SOURCE-1/disable
{
   "type": "OracleDisableParameters"
}


POST /resources/json/delphix/sourceconfig/ORACLE_SINGLE_CONFIG-2 {
   "type": "OracleSIConfig",
   "environmentUser": "HOST_USER-1",
   "repository": "ORACLE_INSTALL-2"
}

POST /resources/json/delphix/source/ORACLE_VIRTUAL_SOURCE-1/enable
{
   "type": "OracleEnableParameters"
}

3 posts, first to disable, second to update the user and repository to point to the new environment, and third to enable it again and start it up in the new environment
Hope this helps.
Michael