Module: ViprStorageTier

Included in:
Vipr
Defined in:
lib/vipruby/objects/storagetier.rb

Overview

The following Storage Tier calls will get and execute Storage Tier items

Instance Method Summary collapse

Instance Method Details

#get_storage_tier(storage_tier_id, auth = nil, cert = nil) ⇒ JSON

Get Single Storage Tier information

Parameters:

  • storage_tier_id (urn:id)

    URN of a storage tier. Required Param

Returns:

  • (JSON)

    The JSON object of the Storage Tier



17
18
19
# File 'lib/vipruby/objects/storagetier.rb', line 17

def get_storage_tier(storage_tier_id,auth=nil, cert=nil)
	rest_get("#{@base_url}/vdc/#{storage_tier_id}", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert)
end

#get_storage_tiers(auth = nil, cert = nil) ⇒ json

Get Storage Tiers

Returns:

  • (json)

    JSON object of all the Storage Tiers



8
9
10
# File 'lib/vipruby/objects/storagetier.rb', line 8

def get_storage_tiers(auth=nil, cert=nil)
	rest_get("#{@base_url}/vdc/storage-tiers", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert)
end