Working with APIs
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
- From the console, click the APIs icon or go to
http://<server>/dbapi/index_enterprise.html. The REST API document displays.
- Browse the API document. The document lists the API information such as description, uri, parameters, response samples, and code snippets.
- Choose the API you want to use and refer to the example in the right side pane.
- Go to http://<server>/dbapi/v4/auth/tokens and get an access token by API with user name and password.
- Replace {AUTH_TOKEN} in the example with the retrieved token.
- Call the API and check the response.