Using the Transformation Advisor APIs
IBM Transformation Advisor provides a set of standard REST APIs. The APIs are compliant with OpenAPI specification 3.0.
BETA release
The APIs provided are not yet fully complete and are subject to change. Transformation Advisor is not yet compatible with earlier versions in relation to APIs. There is no guarantee that future releases will support these APIs. The good news is that we can and will make changes for you. Just ask!
API documentation
<TA_SERVER>/openapi/. An interactive UI for these APIs can be found at:
<TA_SERVER>/openapi/ui/Finding the TA_SERVER value
The <TA_SERVER> value can be found
from the OpenShift Cloud Platform using the following steps:
- Launch the OpenShift Cloud Platform Console UI.
- Click and select the project for Transformation Advisor.
- Click
and select the
openapi-route. - Find Location, which provides the value for
<TA_SERVER>.
Limitations of Try it out
When running Transformation Advisor in
OpenShift Cloud Platform with ingress enabled, the Try it out
capability will fail on execution. This is because the generated
curl command is missing the ingress value.
You can add this value to the command and then run it manually to test the API.
Finding the TA_SERVER value with Transformation Advisor Local
The process for finding the
<TA_SERVER> value is different if you are using
Transformation Advisor Local
(available from the
IBM Garage Methodology website
).
- From the location where you run Transformation Advisor Local, issue this
command:
docker ps. - Look for the image with
serverin the name and check the value of the port.- The default value is
2220, as in this example:9443/tcp, 0.0.0.0:2220->9080/tcp.
- The default value is
- Go to this URL:
<TA_LOCAL_UI_URL>:<SERVER_PORT>/openapi/ui/.
Server authentication
If authentication is enabled for Transformation Advisor, it is necessary to pass credentials with each API call. The Swagger API provides the means to pass the necessary credentials.
- In some cases, the API will return a URL as a result.
- Usually it is not possible to use the URL directly as you will also have to provide credentials.
- In these cases you need to use the appropriate tools to add the credentials as headers.
- The exact format for the headers can be seen in the curl command the Swagger API produces.
The required values to pass credentials are detailed in the following information:
API user token
To access the APIs using your own user token, complete the following steps:
- Launch the OpenShift Cloud Platform Console UI.
- Click on the user dropdown and select Copy Login Command.
- Click Display Token.
- Copy the value of the
tokenattribute. - Enter this value into the apiKey field in the OpenAPI UI.
API key creation
To access the APIs without relying on a user token, complete the following steps to create a service account and use the API associated with that account.
- Launch the OpenShift Cloud Platform Console UI.
- Click on the user dropdown and select Copy Login Command.
- Click Display Token.
- Execute the Login command.
- Create the service account, in this case called
ta-api.oc create sa ta-api - Describe the service account.
oc describe sa ta-api - This will list a set of Mountable secrets. Describe the first token secret.
oc describe secret ta-api-secret-<TOKEN> - Copy the value of the
tokenattribute. - Enter this value into the apiKey field in the OpenAPI UI.
API REST client
To easily integrate Transformation Advisor APIs into your product or tool, an open source REST client is being developed and will be available at a later date.