[
{
"service": "EchoServerGolangTest",
"namespace": "echo",
"host": "127.0.0.1",
"port": 8080,
"location": {
"region": "ap-guangzhou",
"zone": "ap-guangzhou-3",
"campus": ""
},
"metadata": {
"env": "pre"
}
}
]
curl --location --request POST 'http://119.91.66.223:8090/naming/v1/instances' \
--header 'X-Polaris-Token;' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"service": "EchoServerGolangTest",
"namespace": "echo",
"host": "127.0.0.1",
"port": 8080,
"location": {
"region": "ap-guangzhou",
"zone": "ap-guangzhou-3",
"campus": ""
},
"metadata": {
"env": "pre"
}
}
]'
{
"code": 0,
"info": "string"
}