Module: ViprVirtualArray

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

Overview

The following Virtual Array calls will get and execute virtual array items

Instance Method Summary collapse

Instance Method Details

#get_varray(varray_id, auth = nil, cert = nil) ⇒ JSON

Get single VirtualArray information

Parameters:

  • varray (urn:id)

    URN of a VirtualArray. Required Param

Returns:

  • (JSON)

    The JSON object of the VirtualArray



24
25
26
# File 'lib/vipruby/objects/virtualarray.rb', line 24

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

#get_varray_acl(varray_id, auth = nil, cert = nil) ⇒ JSON

Get single VirtualArray ACL

Parameters:

  • varray (urn:id)

    URN of a VirtualArray. Required Param

Returns:

  • (JSON)

    The JSON object of the VirtualArray ACL



78
79
80
# File 'lib/vipruby/objects/virtualarray.rb', line 78

def get_varray_acl(varray_id,auth=nil, cert=nil)
	rest_get("#{@base_url}/vdc/varrays/#{varray_id}/acl", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert)
end

#get_varray_attributes(varray_id, auth = nil, cert = nil) ⇒ JSON

Get single VirtualArray available attributes

Parameters:

  • varray (urn:id)

    URN of a VirtualArray. Required Param

Returns:

  • (JSON)

    The JSON object of the VirtualArray available attributes



96
97
98
# File 'lib/vipruby/objects/virtualarray.rb', line 96

def get_varray_attributes(varray_id,auth=nil, cert=nil)
	rest_get("#{@base_url}/vdc/varrays/#{varray_id}/available-attributes", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert)
end

#get_varray_autotier_policy(varray_id, auth = nil, cert = nil) ⇒ JSON

Get single VirtualArray Auto-Tier Policy

Parameters:

  • varray (urn:id)

    URN of a VirtualArray. Required Param

Returns:

  • (JSON)

    The JSON object of the VirtualArray Auto-Tier Policy



33
34
35
# File 'lib/vipruby/objects/virtualarray.rb', line 33

def get_varray_autotier_policy(varray_id,auth=nil, cert=nil)
	rest_get("#{@base_url}/vdc/varrays/#{varray_id}/auto-tier-policies", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert)
end

#get_varray_connectivity(varray_id, auth = nil, cert = nil) ⇒ JSON

Get single VirtualArray Connectivity

Parameters:

  • varray (urn:id)

    URN of a VirtualArray. Required Param

Returns:

  • (JSON)

    The JSON object of the VirtualArray Connectivity



87
88
89
# File 'lib/vipruby/objects/virtualarray.rb', line 87

def get_varray_connectivity(varray_id,auth=nil, cert=nil)
	rest_get("#{@base_url}/vdc/varrays/#{varray_id}/connectivity", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert)
end

#get_varray_networks(varray_id, auth = nil, cert = nil) ⇒ JSON

Get single VirtualArray Networks

Parameters:

  • varray (urn:id)

    URN of a VirtualArray. Required Param

Returns:

  • (JSON)

    The JSON object of the VirtualArray Networks



69
70
71
# File 'lib/vipruby/objects/virtualarray.rb', line 69

def get_varray_networks(varray_id,auth=nil, cert=nil)
	rest_get("#{@base_url}/vdc/varrays/#{varray_id}/networks", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert)
end

#get_varray_storage_pools(varray_id, auth = nil, cert = nil) ⇒ JSON

Get single VirtualArray Storage Pools

Parameters:

  • varray (urn:id)

    URN of a VirtualArray. Required Param

Returns:

  • (JSON)

    The JSON object of the VirtualArray Storage Pools



42
43
44
# File 'lib/vipruby/objects/virtualarray.rb', line 42

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

#get_varray_storage_ports(varray_id, auth = nil, cert = nil) ⇒ JSON

Get single VirtualArray Storage Ports

Parameters:

  • varray (urn:id)

    URN of a VirtualArray. Required Param

Returns:

  • (JSON)

    The JSON object of the VirtualArray Storage Ports



51
52
53
# File 'lib/vipruby/objects/virtualarray.rb', line 51

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

#get_varray_virtual_pools(varray_id, auth = nil, cert = nil) ⇒ JSON

Get single VirtualArray Virtual Pools

Parameters:

  • varray (urn:id)

    URN of a VirtualArray. Required Param

Returns:

  • (JSON)

    The JSON object of the VirtualArray Virtual Pools



60
61
62
# File 'lib/vipruby/objects/virtualarray.rb', line 60

def get_varray_virtual_pools(varray_id,auth=nil, cert=nil)
	rest_get("#{@base_url}/vdc/varrays/#{varray_id}/vpools", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert)
end

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

Get/List VirtualArrays in zone

Returns:

  • (json)

    JSON object of all the VirtualArrays in zone



15
16
17
# File 'lib/vipruby/objects/virtualarray.rb', line 15

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

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

Search VirtualArrays

Returns:

  • (json)

    JSON object of all the VirtualArrays in zone



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

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