...
4. Register your REST service to MSB via curl
For testing, we can register the services via curl. MSB is working with OOM team to register For real use case, MSB can register the services automatically when deploying the ONAP components are deployed by OOM or Heat template.
export AAI_IP=10.74.148.80
export AAI_PORT=443
export MSB_IP=10.96.33.44
export MSB_PORT=80
curl -X POST \
-H "Content-Type: application/json" \
-d '"{\"serviceName\": \"aai-cloudInfrastructure\", \"version\": \"v8v11\", \"url\": \"/aai/v8/v11/cloud-infrastructure\",\"protocol\": \"REST\", \"pathenable_ssl\": "/aai/v8\"true\", \"nodes\": [ {\"ip\": "10.74.215.65\"$AAI_IP\",\"port\": \"8443$AAI_PORT\"}]}' \
"http http://127.0.0.1:10081$MSB_IP:$MSB_PORT/api/microservices/v1/services"
5.Access the rest service via api gateway
curl --user AAI:AAI -H "X-TransactionId:123" -H "X-FromAppId:test" http://127.0.0.1$MSB_IP:$MSB_PORT/api/aai/v8/cloud-infrastructure-cloudInfrastructure/v11/cloud-regions
Run MSB microservices using default docker network
...