Work with Restful API

IBM® Db2® Data Management Console provides REST API to access the console by an HTTP request which in turn enables access by programming or script.

Procedure

  1. From the console, go to Help > REST API or go to http://<server>/dbapi/index_enterprise.html.
    The REST API document displays.
  2. Browse the API document. The document lists the API information such as description, uri, parameters, response samples, and code snippets.
  3. Choose the API you want to use and refer to the example in the right side pane.
  4. Go to http://<server>/dbapi/v4/auth/tokens and get an access token by API with user name and password.
  5. Replace {AUTH_TOKEN} in the example with the retrieved token.
  6. Call the API and check the response.