Skip to content

Instantly share code, notes, and snippets.

@StevenACoffman
Forked from cedricvidal/README.md
Created July 27, 2017 02:46
Show Gist options
  • Save StevenACoffman/33b99120ed19361437274b9be9c63a61 to your computer and use it in GitHub Desktop.
Save StevenACoffman/33b99120ed19361437274b9be9c63a61 to your computer and use it in GitHub Desktop.
Netflix Eureka curl registration

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment