Created
October 3, 2012 19:37
-
-
Save skihero/3829298 to your computer and use it in GitHub Desktop.
Get costs of hardware using softlayer api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get '/costs' do | |
begin | |
account_service = SoftLayer::Service.new("SoftLayer_Account") | |
costs= account_service.object_mask({"hardware" => ["id", "hostname","notes", "cost"]}).getHardware | |
rescue | |
@error = "Error fetching cost details !! " | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment