Registering the UGC Moderation Web service microservice as a Capability

If you already used the auto-register switch to register this Server Role as a Capability when you installed it as a standalone microservice, you can skip this task. If you did not, you can make this microservice discoverable through the Discovery Endpoint by hand by adding it as a Capability to the Discovery Service's Storage Layer configuration file and update the Capability registry by rerunning the Discovery Service registration tool.

Procedure

  1. Navigate to the configuration location of your Discovery Service installation.
  2. From this location, copy cd_storage_conf.xml to the location in which you saved the Discovery Service registration tool (the file discovery-registration.jar), and open it for editing.
  3. Find the ConfigRepository section and its Roles subsection.
  4. Find the Role element with its Name attribute set to UGCModerationServiceCapability. This element has a subelement called Targets
  5. Do one of the following:
    • If this is the first Moderation service you install, set the Url attribute of the Target subelement to http://HOST:PORT/moderation.svc, where http://HOST:PORT identifies the base URL of this Moderation Web service microservice. By default, this microservice runs on port 8086.
    • If this is not the first Moderation service you install, add a new Target subelement to Targets and set its Url attribute to http://HOST:PORT/moderation.svc, where http://HOST:PORT identifies the base URL of this new Moderation Web service microservice instance.
  6. In the Target element you configured, set the Name attribute to a meaningful value. This value must be identical to the one in the corresponding target in the Community service.
  7. Save and close cd_storage_conf.xml.
  8. Open a command prompt.
  9. Enter the following command:
    java -jar discovery-registration.jar update
    The tool registers the configured Capabilities.