lib/jss/server.rb
# Update the activation code and organization name for this server
#
# @param org: [String] the organization to which the server is licensed
# @param code: [String ]  the activation code for the server licence
#
# @return [void]
Update the activation code and organization name for this server
Update the activation code and organization name for this server
def update_activation_code(org:, code:)
      xml = REXML::Document.new JSS::APIConnection::XML_HEADER
      acode = xml.add_element ACTIVATION_CODE_KEY.to_s
      acode.add_element('organization_name').text = org
      acode.add_element('code').text = code
      @api.put_rsrc ACTIVATION_CODE_RSRC, xml.to_s
    end
def update_activation_code ( org : , code : ) xml = REXML :: Document . new JSS :: APIConnection :: XML_HEADER acode = xml . add_element ACTIVATION_CODE_KEY . to_s acode . add_element ( 'organization_name' ) . text = org acode . add_element ( 'code' ) . text = code @api . put_rsrc ACTIVATION_CODE_RSRC , xml . to_s end
Update the activation code and organization name for this server
Update the activation code and organization name for this server
None
void
org
code
org:
the organization to which the server is licensed
the organization to which the server is licensed
code:
the activation code for the server licence
the activation code for the server licence