Help Center/ ROMA Connect/ User Guide/ Service Integration Guide/ Managing Custom Backends/ Adding Public Configurations for Custom Backends
Updated on 2023-02-28 GMT+08:00

Adding Public Configurations for Custom Backends

Global public configuration items, such as variables, passwords, and certificates, can be added for a custom backend. This lets you 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 of an instance.
  2. In the navigation pane on the left, choose API Connect > Custom Backends. On the Configurations tab, click Add Configuration.
  3. In the dialog box displayed, configure related information and click OK.
    Table 1 Adding public backend configurations

    Parameter

    Description

    Configuration Name

    Enter a configuration name.

    Integration Application

    Select an integration application for the configuration item.

    Configuration Type

    Select a configuration type.

    Options: Template variable, Password, Certificate

    Configuration Value

    Available for Configuration Type set to Template variable or Password.

    Enter the template variable or password.

    Confirm Value

    Available for Configuration Type set to Password.

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

    Certificate

    Available for Configuration Type set to Certificate.

    Enter the certificate in PEM format.

    Open the PEM certificate file in the certificate to be uploaded in text, and copy the certificate content to Certificate.

    Private Key

    Available for Configuration Type set to Certificate.

    Enter the private key of the certificate in PEM format.

    Open the KEY/PEM private key file in the certificate to be uploaded in text, and copy the private key to Private Key.

    Password

    Available for Configuration Type set to Certificate.

    Enter the password of the certificate private key.

    Confirm Password

    Available for Configuration Type 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 item.

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