Method: HPE3PAR_API#restore_snapshot_online
- Defined in:
- lib/puppet/util/hpe3par_api.rb
#restore_snapshot_online(snapshot_name, allow_remote_copy_parent, debug = false) ⇒ Object
192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/puppet/util/hpe3par_api.rb', line 192 def restore_snapshot_online(snapshot_name, allow_remote_copy_parent, debug = false) cl = Hpe3parSdk::Client.new(@rest_url, debug: debug) begin cl.login(@url.user, @url.password) optional = {:online => true, :allowRemoteCopyParent => allow_remote_copy_parent } cl.restore_snapshot(snapshot_name, optional) ensure cl.logout end end |