Sha256: 9f376dd2f7fa8d459c8da4b413d15f2a390906e9318d61628e8d01b71b10b17b

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

module CloudstackClient

	module Volumes

		##
    # Lists all volumes.

    def list_volumes(project_id = nil)
      params = {
          'command' => 'listVolumes',
          'listall' => true,
      }
      params['projectid'] = project_id if project_id
      json = send_request(params)
      json['network'] || []
    end

	end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloudstack-cli-0.3.2 lib/cloudstack-client/commands/volumes.rb
cloudstack-cli-0.3.1 lib/cloudstack-client/commands/volumes.rb
cloudstack-cli-0.2.2 lib/cloudstack-client/commands/volumes.rb
cloudstack-cli-0.2.1 lib/cloudstack-client/commands/volumes.rb
cloudstack-cli-0.2.0 lib/cloudstack-client/commands/volumes.rb