Example: OGG Microservice Architecture RestAPI Commands

–Get the information of Distribution Path
curl -u oggadmin:oracle -k -H “Content-Type: application/json” -H “Accept: application/json” -X GET http://linuxvm01:9102/services/v2/sources
curl -u oggadmin:Oracle1! -k -H “Content-Type: application/json” -H “Accept: application/json” -X GET https://127.0.0.1:9102/services/v2/sources
curl -u oggadmin:Oracle1! -k -H “Content-Type: application/json” -H “Accept: application/json” -X GET https://linuxvm01:19102/services/v2/sources/DIST01| python -m json.tool
curl -u oggadmin:Oracle1! -k -H “Content-Type: application/json” -H “Accept: application/json” -X GET https://linuxvm01:19102/services/v2/sources/DIST01/checkpoints |python -m json.tool

curl -u oggadmin:Oracle1! -k -H –insecure “Content-Type: application/json” -H “Accept: application/json” -X GET https://127.0.0.1:9102/services/v2/sources

–Post change to Distributipath Path
curl -u oggadmin:Oracle1! -X POST https://127.0.0.1:19102/services/v2/sources/PATH2 -H “Content-Type: application/json” –data ‘{“$schema”:”ogg:distPath”,”status”:”stopped”}’

–Get the information of deployment
curl -u oggadmin:Oracle1! -k -H “Content-Type: application/json” -H “Accept: application/json” -X GET https://linuxvm01:16000/services/v2/deployments
curl -u user01:oracle -k -H “Content-Type: application/json” -H “Accept: application/json” -X GET https://linuxvm01:16000/services/v2/deployments/CDHSTG
curl -u oggadmin:Oracle1! -k -H “Content-Type: application/json” -H “Accept: application/json” -X GET https://linuxvm01:19100/services/v2/deployments |python -m json.tool
curl -u oggadmin:Oracle1! -k -H “Content-Type: application/json” -H “Accept: application/json” -X GET https://linuxvm01:19100/services/v2/deployments/TICOGG |python -m json.tool

 

 

https://docs.oracle.com/goldengate/c1230/gg-winux/OGGRA/index.html 

Leave a Reply

Your email address will not be published. Required fields are marked *