def discard_suspended_state_action(id, type=:vapp)
        params = {
            "method" => :post,
            "command" => "/vApp/#{type}-#{id}/action/discardSuspendedState"
        }
        response, headers = send_request(params)
        task_id = headers[:location].gsub(/.*\/task\//, "")
        task_id
      end
def discard_suspended_state_action(id, type=:vapp)
        params = {
            "method" => :post,
            "command" => "/vApp/#{type}-#{id}/action/discardSuspendedState"
        }
        response, headers = send_request(params)
        task_id = headers[:location].gsub(/.*\/task\//, "")
        task_id
      end
Discard suspended state of a vApp/VM