API for V2P for oracle dsource

  • 0
  • 1
  • Question
  • Updated 3 months ago
  • Answered
Hi All,

Just want to know any API is available for V2P provision or we can do it only through the CLI mode.

Thanks in advance.


Regards,
Swathy
Photo of Swathy Sukumar

Swathy Sukumar

  • 816 Points 500 badge 2x thumb

Posted 3 months ago

  • 0
  • 1
Photo of Mouhssine SAIDI

Mouhssine SAIDI

  • 4,632 Points 4k badge 2x thumb
Hi Swathy, 

Yes, you can via a call to this webservice "POST /resources/json/delphix/database/export"

Please cf. for more information "https://docs.delphix.com/docs/reference/web-service-api-guide/gui-api-mapping

Regards,

Mouhssine
Photo of Gary Hallam

Gary Hallam, Official Rep

  • 1,584 Points 1k badge 2x thumb
Hi Swathy,
You should be able to use the API for this.
Check the opensource dxToolkit available here for some examples. https://github.com/delphix/dxtoolkit/
Regards,
Gary
Photo of Swathy Sukumar

Swathy Sukumar

  • 816 Points 500 badge 2x thumb
Hi All,

While i am trying to execute the code through the CLI mode where i am giving my directory path as the 

set filesystemLayout.targetDirectory=/tmp/V2P_db

i am getting error stating as :Connection to host "10.130.25.138" is temporarily lost during export of "oracle_1".    Connection to host "10.130.25.138" is closed during export of "oracle_1".
    DB_EXPORT job for "unknown" suspended due to recoverable error: "Could not create directory "/tmp/datafiles/ORACLE_1/onlinelog" on the remote host "10.130.25.138".".
  Action: Address the error condition and then resume the job to continue execution.

Thanks in advance

Regards,
Swathy
Photo of Mouhssine SAIDI

Mouhssine SAIDI

  • 4,632 Points 4k badge 2x thumb
Hi Swathy,

Please ensure that your delphix user have all required permission on the export directory (rwx)

Regards,

Mouhssine