Ping isn't currently provided by the API (at the time or writing), but can be acheived via the command line – see here.