Help Center> ROMA Connect> User Guide> Service Integration Guide> Custom Backend Management> Adding Public Configurations for a Custom Backend

Adding Public Configurations for a Custom Backend

Overview

You can add global public configurations, such as variables, passwords, and certificates, to a custom backend, and quickly reference the added configuration items in the JavaScript script of a function backend.

Procedure

  1. Log in to the ROMA Connect console. On the Instances page, click View Console next to a specific instance.
  2. In the navigation pane, choose API Connect > Custom Backend. On the Configurations tab page, click Add Configuration.
  3. In the dialog box displayed, configure related information and click OK.
    Table 1 Public reference configurations

    Parameter

    Description

    Configuration Name

    Enter a configuration name.

    Configuration Type

    Select a configuration type. The value can be Template variable, Password, or Certificate.

    Integration Application

    Select the integration application to which the configuration belongs.

    Configuration Value

    This parameter is available only when Configuration Type is set to Template variable or Password.

    Enter the template variable or password.

    Confirm Value

    This parameter is available only when Configuration Type is set to Password.

    Enter the password again, which must be the same as the value of Configuration Value.

    Certificate

    This parameter is available only when Configuration Type is set to Certificate.

    Enter the certificate in PEM format.

    Private Key

    This parameter is available only when Configuration Type is set to Certificate.

    Enter the private key of the certificate in PEM format.

    Password

    This parameter is available only when Configuration Type is set to Certificate.

    Enter the password of the certificate private key.

    Confirm Password

    This parameter is available only when Configuration Type is set to Certificate.

    Enter the password of the certificate private key again, which must be the same as the value of Password.

    Description

    Enter a description of the configuration.

  4. Reference the configuration in the backend function script.
    If the configuration name is example, the reference format of each type of configuration is as follows:
    • Template variable: #{example}
    • Password: CipherUtils.getPlainCipherText("example")
    • Certificate: CipherUtils.getPlainCertificate("example")