REST APIs

URLs

The URLs panel displays the end points to access the NeoLoad REST APIs:

Port configuration

By default, the NeoLoad Controller embeds a REST API server that listens on port 7400.

The port can be customized in configuration file controller.properties, section [RESTAPIs].

Copy
[RESTAPIs]
port=<portNumber>

Encryption configuration

Client/server communications can be secured using SSL encryption. There are two ways to enable SSL encryption.

  • Use a default self-signed certificate embedded in NeoLoad:

    • Open the controller.properties, section [RESTAPIs].

    • Edit key issecured to set the value to true.

    • Edit key client.trust.all to set the value to true, so that it trusts all the certificates and ignores security warnings.

By default, a keystore contains a self-signed certificate used for encryption. This keystore is named dataexchange.keystore and is located in the user directory: Neotys\NeoLoad\<version>\conf. This keystore is unique per NeoLoad installation and it is generated the first time NeoLoad is launched.

  • Use a certificate signed by a certification authority. To use a certificate signed by a certification authority, you can specify your own keystore, containing the end entity certificate to encrypt the communication.

    • Specify a different keystore by replacing the file named dataexchange.keystore in the Neotys\NeoLoad\<version>\conf directory.

    • Open the controller.properties, section [RESTAPIs].

    • Edit key keystore.encryptedPassword to specify the encrypted password. The password needs to be encrypted using the Password-Scrambler tool. For more information about Password-Scrambler, see How do I use the Password Scrambler tool?

Identification

The Identification panel enables you to manage the client's identification. By default, identification is required at General level. If identification is disabled at General level, it still can be enabled for specific projects, see REST APIs for more information. If identification is disabled both at General level and at Project level, then the server accepts all client connections.

Note: If the identification is enabled at the general settings level, the API key will be required for any project you will open and even if no project is opened. That way, if for example the Create project method is called on the API, it will be secured by the API key generated with the activation of the identification.

To identify a client, follow these steps: 

  1. Check the Identification required option.

  2. Click the + button to create a new identification key entry.

  3. Enter the API key for the client you want to identify.

To remove a client identification, follow these steps: 

  1. Select the API key for the client you want to remove.

  2. Click the - button.