Skip to content

Instantly share code, notes, and snippets.

@tlongren
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlongren/bdcc5bc7dbde7009db02 to your computer and use it in GitHub Desktop.
Save tlongren/bdcc5bc7dbde7009db02 to your computer and use it in GitHub Desktop.
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