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