Sha256: c767c9c23b81245d4022be6257cc3b60e334de073e6213777f72832473986921
Contents?: true
Size: 749 Bytes
Versions: 1
Compression:
Stored size: 749 Bytes
Contents
module Bixby module Inventory # 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] def self.register_agent(opts) req = JsonRequest.new("inventory:register_agent", opts) return Bixby::Client.new(nil, nil).exec_api(req) end end # Inventory end # Bixby
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bixby-client-0.5.3 | lib/bixby-client/modules/inventory.rb |