Class: Asca::REST::Provisioning::BundleIDs

Inherits:
Object
  • Object
show all
Defined in:
lib/asca/rest/provisioning/bundleids.rb

Class Method Summary collapse

Class Method Details

.list_bundle_idsObject



9
10
11
12
13
14
15
16
17
# File 'lib/asca/rest/provisioning/bundleids.rb', line 9

def list_bundle_ids
    response = HTTP.auth('Bearer ' + Asca::Tools::Token.new_token).get(URI_BUNDLEIDS)
    if response.status.success?
        bundleids = JSON.parse(response.body)
        return bundleids
    else
        puts response.body
    end
end