Full example:
DEIP="10.0.1.10"
USER="delphix_admin"
PASS="landshark"
# 1) Create Delphix API Session
curl -s -X POST -k --data @-
http://${DEIP}/resources/json/delphix/session \
-c ~/cookies.txt -H "Content-Type: application/json" <{
"type": "APISession",
"version": {
"type": "APIVersion",
"major": 1,
"minor": 6,
"micro": 0
}
}
EOF
# 2) Delphix Login
curl -s -X POST -k --data @-
http://${DEIP}/resources/json/delphix/login \
-b ~/cookies.txt -H "Content-Type: application/json" <{
"type": "LoginRequest",
"username": "${USER}",
"password": "${PASS}"
}
EOF
echo "+++++++++++++++++++++++++++++++++++"
# 3) Provision VDB
curl -X POST -k --data @-
http://${DEIP}/resources/json/delphix/database/provision \
-b cookies.txt -H "Content-Type: application/json" <{
"container": {
"group": "GROUP-2",
"name": "EGVDB",
"type": "OracleDatabaseContainer"
},
"source": {
"type": "OracleVirtualSource",
"mountBase": "/mnt/provision",
"allowAutoVDBRestartOnHostReboot": true
},
"sourceConfig": {
"type": "OracleSIConfig",
"databaseName": "EGVDB",
"uniqueName": "EGVDB",
"repository": "ORACLE_INSTALL-3",
"instance": {
"type": "OracleInstance",
"instanceName": "EGVDB",
"instanceNumber": 1
}
},
"timeflowPointParameters": {
"type": "TimeflowPointLocation",
"timeflow": "ORACLE_TIMEFLOW-123",
"location": "3043123"
},
"type": "OracleProvisionParameters"
}
EOF