Skip to content

Commit

Permalink
Remove 'desc from RegistrationCommandsController
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Oct 19, 2023
1 parent 3e4d60e commit d2b3052
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions app/controllers/api/v2/registration_commands_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ class RegistrationCommandsController < V2::BaseController

api :POST, "/registration_commands", N_("Generate global registration command")
param :registration_command, Hash, required: false, action_aware: true do
param :organization_id, :number, desc: N_("ID of the Organization to register the host in")
param :location_id, :number, desc: N_("ID of the Location to register the host in")
param :hostgroup_id, :number, desc: N_("ID of the Host group to register the host in")
param :operatingsystem_id, :number, desc: N_("ID of the Operating System to register the host in. Operating system must have a `host_init_config` template assigned")
param :smart_proxy_id, :number, desc: N_("ID of the Smart Proxy. This Proxy must have enabled both the 'Templates' and 'Registration' features")
param :setup_insights, :bool, desc: N_("Set 'host_registration_insights' parameter for the host. If it is set to true, insights client will be installed and registered on Red Hat family operating systems")
param :setup_remote_execution, :bool, desc: N_("Set 'host_registration_remote_execution' parameter for the host. If it is set to true, SSH keys will be installed on the host")
param :jwt_expiration, :number, desc: N_("Expiration of the authorization token (in hours)")
param :insecure, :bool, desc: N_("Enable insecure argument for the initial curl")
param :packages, String, desc: N_("Packages to install on the host when registered. Can be set by `host_packages` parameter, example: `pkg1 pkg2`")
param :update_packages, :bool, desc: N_("Update all packages on the host")
param :repo, String, desc: N_("Repository URL / details, for example for Debian OS family: 'deb http://deb.example.com/ buster 1.0', for Red Hat and SUSE OS family: 'http://yum.theforeman.org/client/latest/el8/x86_64/'")
param :repo_gpg_key_url, String, desc: N_("URL of the GPG key for the repository")
param :organization_id, :number
param :location_id, :number
param :hostgroup_id, :number
param :operatingsystem_id, :number
param :smart_proxy_id, :number
param :setup_insights, :bool
param :setup_remote_execution, :bool
param :jwt_expiration, :number
param :insecure, :bool
param :packages, String
param :update_packages, :bool
param :repo, String
param :repo_gpg_key_url, String
end
def create
unless os_with_template?
Expand Down

0 comments on commit d2b3052

Please sign in to comment.