Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ServerPilot API: Request All Servers and JSON Response
{
"data": [
{
"id": "FqHWrrcUfRI18F0l",
"name": "www1",
"autoupdates": true,
"firewall": true,
"lastaddress": "1.2.3.4",
"lastconn": 1403130552,
"datecreated": 1403130551
}, {
"id": "4zGDDO2xg30yEeum",
"name": "vagrant",
"autoupdates": true,
"firewall": true,
"lastaddress": "1.2.3.4",
"lastconn": 1403130554,
"datecreated": 1403130553
}]
}
curl https://api.serverpilot.io/v1/servers \
-u $CLIENTID:$APIKEY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment