module Bixby::Inventory

Public Class Methods

register_agent(opts) click to toggle source

Register an agent with the manager

@param [Hash] opts @option opts [String] :uuid UUID of the host @option opts [String] :public_key Public key @option opts [String] :hostname Hostname @option opts [String] :token Client registration token @option opts [FixNum] :port Port agent listens on (optional, default: 18000) @option opts [Array<String>] :tags List of tags to assign to host (optional)

@return [JsonResponse]

# File lib/bixby-client/modules/inventory.rb, line 16
def self.register_agent(opts)
  req = JsonRequest.new("inventory:register_agent", opts)
  return Bixby::Client.new(nil, nil).exec_api(req)
end