Registration
curl -v -X POST -H "Accept: application/xml" -H "Content-type: application/xml" --data @reg.xml http://localhost:8761/eureka/apps/test
Listing
curl -X GET -H "Accept: application/json" http://localhost:8761/eureka/apps
<?xml version="1.0" ?> | |
<instance> | |
<vipAddress>test</vipAddress> | |
<leaseInfo> | |
<evictionDurationInSecs>90</evictionDurationInSecs> | |
</leaseInfo> | |
<securePort>443</securePort> | |
<hostName>foo.local</hostName> | |
<secureVipAddress/> | |
<app>test</app> | |
<homePageUrl/> | |
<ipAddr>1.1.1.1</ipAddr> | |
<dataCenterInfo> | |
<name>MyOwn</name> | |
</dataCenterInfo> | |
<healthCheckUrl/> | |
<region>default</region> | |
<preferSameZone>False</preferSameZone> | |
<port>1010</port> | |
<statusPageUrl/> | |
<metadata> | |
<foo>bar</foo> | |
</metadata> | |
</instance> |