Sha256: 003cbb704bc1eb70b970c4630ec60cff6f5427124259795622a497a2a9255a16

Contents?: true

Size: 862 Bytes

Versions: 17

Compression:

Stored size: 862 Bytes

Contents

module Katello
  class Api::V2::HostTracerController < Api::V2::ApiController
    #include Katello::Concerns::FilteredAutoCompleteSearch

    before_action :find_host, :only => :index

    resource_description do
      api_version 'v2'
      api_base_url "/api"
    end

    api :GET, "/hosts/:host_id/tracer", N_("List servises that need restarting on the host")
    param :host_id, :identifier, :required => true, :desc => N_("ID of the host")
    def index
      collection = scoped_search(index_relation.uniq, :application, :asc, :resource_class => ::Katello::HostTracer)
      respond_for_index(:collection => collection)
    end

    protected

    def index_relation
      @host.host_traces
    end

    private

    def find_host
      @host = resource_finder(::Host::Managed.authorized(:view_hosts, ::Host::Managed), params[:host_id])
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
katello-3.4.5 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.4.4 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.4.2 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.4.1 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.4.0.2 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.4.0.1 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.3.2 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.4.0 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.4.0.rc2 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.4.0.rc1 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.3.1.1 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.3.1 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.3.0.1 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.3.0 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.3.0.rc2 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.3.0.rc1.1 app/controllers/katello/api/v2/host_tracer_controller.rb
katello-3.3.0.rc1 app/controllers/katello/api/v2/host_tracer_controller.rb