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

Instance Method Details

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

Get All Auto Tier Policies

Returns:

  • (json)

    JSON object of all the 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

Parameters:

  • auto_tier_policy_id (urn:id)

    URN of a auto tier policy. Required Param

Returns:

  • (JSON)

    The JSON object of the Auto Tier Policy



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

Parameters:

  • auto_tier_policy_id (urn:id)

    URN of a auto tier policy. Required Param

Returns:

  • (JSON)

    The JSON object of the 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