1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| curl http://192.168.100.140:8500/v1/agent/service/register -X PUT -i -H "Content-Type:application/json" -d '{ "ID": "test.zlz.01", "Name": "test_zlz", "Tags": ["zlz"], "Address": "192.168.101.35", "Port": 9003, "Check": { "DeregisterCriticalServiceAfter": "90m", "Args": [], "HTTP": "http://192.168.101.35:9003/hc", "Interval": "15s" }, "Meta": { "version": "1.0" }, "EnableTagOverride": false }'
curl http://192.168.100.140:8500/v1/agent/service/register -X PUT -i -H "Content-Type:application/json" -d '{ "ID": "test.zlz.02", "Name": "test_zlz", "Tags": ["zlz"], "Address": "192.168.101.36", "Port": 9003, "Check": { "DeregisterCriticalServiceAfter": "90m", "Args": [], "HTTP": "http://192.168.101.36:9003/hc", "Interval": "15s" }, "Meta": { "version": "1.0" }, "EnableTagOverride": false }'
|