Update register_intance_json.sh
-curl -X POST -H "Content-Type: application/json" -d '{
- "instance": {
- "hostName": "lfgy11",
- "serviceUuid": "3c9b7d12-57d1-4105-b6ff-df7b14c1c53b",
- "ipAddr": "10.130.158.159",
+#!/usr/bin/env bash
+POST /registry/v3/microservices/2/instances HTTP/1.1
+Host: localhost:30100
+Content-Type: application/json
+x-domain-name: default
+X-Project-Name: default
+Cache-Control: no-cache
+Postman-Token: bf33f47f-acfe-76fe-8c53-d1f79a46b246
+
+{
+ "instance":
+ {
+ "endpoints": [
+ "ase://127.0.0.1:99841"
+ ],
+ "hostName":"ase",
"status":"UP",
- "overriddenstatus": "UNKNOWN",
- "port": {
- "$": 9980,
- "@enabled": "true"
+ "stage":"prod",
+ "properties": {
+ "_TAGS": "A, B",
+ "attr1": "a",
+ "nodeIP": "one"
},
- "securePort": {
- "$": 0,
- "@enabled": "false"
- },
- "countryId": 0,
- "dataCenterInfo": {
- "name": "MyOwn"
- },
- "metadata": {
- "test":"value"
- },
- "homePageUrl": "",
- "statusPageUrl": "",
- "healthCheckUrl": "v2/version",
- "vipAddress": "",
- "secureVipAddress": "",
- "isCoordinatingDiscoveryServer": "true",
- "lastUpdatedTimestamp": "1471394003477",
- "lastDirtyTimestamp": "1471394002952"
+ "healthCheck": {
+ "mode": "push",
+ "interval": 30,
+ "times": 2
+ }
+ }
}
-}' "http://localhost:9980/registry/v2/mservices/3c9b7d12-57d1-4105-b6ff-df7b14c1c53b"
\ No newline at end of file
