Making a Traffic Call
- In a Docker Swarm cluster, you can use any machine's IP to make a traffic call. You can make a traffic call from your local terminal. The endpoint and API key in the following curl call corresponds to the sample data.zip mentioned in the previous section.
curl -H 'Host:api.example.com' 'http://MASTER_HOST_IP/hw_path_01?api_key=sra663fmnshjazx5sv2mgtmw'
A successful call should give an output similar to the following:{"time":"2018-11-22 06:22:06.885+0000","message":"Hello world"}
Copyright © Cloud Software Group, Inc. All rights reserved.