Module: ViprAutoTier
- Included in:
- Vipr
- Defined in:
- lib/vipruby/objects/autotier.rb
Overview
The following Auto Tier calls will get and execute Auto Tier items
Instance Method Summary collapse
-
#get_auto_tier_policies(auth = nil, cert = nil) ⇒ json
Get All Auto Tier Policies.
-
#get_auto_tier_policy(auto_tier_policy_id, auth = nil, cert = nil) ⇒ JSON
Get Single Auto Tier Policy information.
-
#get_auto_tier_policy_storage_tiers(auto_tier_policy_id, auth = nil, cert = nil) ⇒ JSON
List storage tiers for auto tiering policy.
Instance Method Details
#get_auto_tier_policies(auth = nil, cert = nil) ⇒ json
Get All Auto Tier Policies
8 9 10 |
# File 'lib/vipruby/objects/autotier.rb', line 8 def get_auto_tier_policies(auth=nil, cert=nil) rest_get("#{@base_url}/vdc/auto-tier-policies", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert) end |
#get_auto_tier_policy(auto_tier_policy_id, auth = nil, cert = nil) ⇒ JSON
Get Single Auto Tier Policy information
17 18 19 |
# File 'lib/vipruby/objects/autotier.rb', line 17 def get_auto_tier_policy(auto_tier_policy_id,auth=nil, cert=nil) rest_get("#{@base_url}/vdc/#{auto_tier_policy_id}", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert) end |
#get_auto_tier_policy_storage_tiers(auto_tier_policy_id, auth = nil, cert = nil) ⇒ JSON
List storage tiers for auto tiering policy
26 27 28 |
# File 'lib/vipruby/objects/autotier.rb', line 26 def get_auto_tier_policy_storage_tiers(auto_tier_policy_id,auth=nil, cert=nil) rest_get("#{@base_url}/vdc/#{auto_tier_policy_id}/storage-tiers", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert) end |