Author Archive
More methods, this time for the bean counters.
(This post refers to SoftLayer API version 1. Check out API version 3 for our latest updates.)
We’ve put four new methods into the API. They are:
getInvoiceList()
Return a listing for each account that includes the invoice id, date, starting balance, ending balance, invoice amount, payment amount, and account type.
getAccountBalance()
Return the current balance and next bill date for an account.
getInvoice(intInvoiceId)
Retrieve a copy of an invoice in PDF format.
And by request:
getServerCost(strServerIdentifier)
Return the “Total cost of a single server.”
Keep’em comin’, epratt!
By the way, users running each of these methods must have the “View Account Summary” priviledge. You should not have any problem if you can access the accounting tools in the portal.
No commentsIt pays to ask
(This post refers to SoftLayer API version 1. Check out API version 3 for our latest updates.)
Ask…
And you shall receive…
The newest addition to the API methods has been released and is now available for use. We have improved upon the Portal’s monitoring features by adding just a little more data. In addition to receiving the number of servers that are up, recovering, and down, the new function also returns an array with specific details about the servers that are down. This includes: SERVER_NAME, ID, PUBLIC_IP, PRIVATE_IP, and TIME_FIRST_DOWN, which as requested is “the time that the monitoring system first detected that it was down”.
getServerStatus()
Retreive a server status of UP DOWN or RECOVERING for a given account id.
The new method is available through our SOAP and XML-RPC interfaces. Okay, so we didn’t quite give you exactly what you asked for, we gave you more!
No comments
