Method: OneviewSDK::API200::Volume#delete_snapshot

Defined in:
lib/oneview-sdk/resource/api200/volume.rb

#delete_snapshot(name) ⇒ true

Deletes a snapshot of the volume

Parameters:

  • name (String)

    snapshot name

Returns:

  • (true)

    if snapshot was created successfully



114
115
116
117
118
119
# File 'lib/oneview-sdk/resource/api200/volume.rb', line 114

def delete_snapshot(name)
  result = get_snapshot(name)
  response = @client.rest_api(:delete, result['uri'], {}, @api_version)
  @client.response_handler(response)
  true
end