Create SourceConfig
Create Session
curl -s -X POST -k --data @- http://$DELPHIX_ENGINE_IP/resources/json/delphix/session \
-c ~/cookies.txt -H "Content-Type: application/json" <<EOF
{
"type": "APISession",
"version": {
"type": "APIVersion",
"major": $API_MAJOR,
"minor": $API_MINOR,
"micro": $API_MICRO
}
}
EOF
Authenticate
curl -s -X POST -k --data @- http://$DELPHIX_ENGINE_IP/resources/json/delphix/login \
-b ~/cookies.txt -c ~/cookies.txt -H "Content-Type: application/json" <<EOF
{
"type": "LoginRequest",
"username": "$DELPHIX_ADMIN_USER",
"password": "$DELPHIX_ADMIN_PASSWORD"
}
EOF
Create SourceConfig
curl -s -X POST -k --data @- http://$DELPHIX_ENGINE_IP/resources/json/delphix/sourceconfig -b ~/cookies.txt -H "Content-Type: application/json" <<EOF
{
"type": "AppDataStagedSourceConfig",
"name": "$DELPHIX_SRCCFG_NAME",
"environmentUser": "${DELPHIX_STG_ENVUSER_REF}",
"repository": "$DELPHIX_REPO_REF",
"parameters": {
"dbName": "$DELPHIX_DSOURCE_NAME",
"dbUniqName": "$DELPHIX_SRCCFG_NAME",
"dbIdentityName": "$DELPHIX_SRCCFG_NAME"
}
}
EOF
Note: Update all UNIX variables in above snippet code as per your environment