Configuration

The REST API can be configured by the rest_api.properties file, which is located in the following folder:

  • Embedded: <UCMDB_Server_Home>/conf/
  • Standalone: $CATALINA_HOME/conf/

The available options and default values are as follows:

#hostname of ucmdb server
ucmdb_host=localhost
#protocol to be used when connecting to ucmdb server(http or https)
ucmdb_protocol=http
#port of ucmdb server
ucmdb_port=8080
#default ucmdb customer
default_customer=1
#rest authorization token lifespan
token_expiration_minutes=30

Note If the rest_api.properties file is not present in the above location, the REST API uses these default values.

For the embedded deployment, the REST API supports the HTTP and HTTPS protocols. You can choose a protocol by changing the value of the Rest-Api Port Mapping setting, which locates under UCMDB UI > Administration > Infrastructure Settings Manager > Web Components to Connectors.

For the standalone deployment, you can configure the REST API to run on HTTP or HTTPS by following the Tomcat documentation.

Note  

  • There is a global limit of 15 requests/second for all the REST endpoints.

    All the REST endpoints for the Changes Repots (/changes/*) are limited to 5 concurrent requests.

  • Input dates checking validates the date interval that is sent to the rest-api/changeReports endpoint, namely the dateFrom and dateTo fields of the request body:

    • The dateTo field value can no longer occur 5 days after current time in the future.
    • The dateFrom field value cannot occur after dateTo.
    • The dateFrom field value cannot be longer than history.purging.months.to.save.back (UCMDB setting, default value 3) months in the past.