CA JCLCheck REST API with the Zowe API ML connection showing incorrect host/port

book

Article ID: 192247

calendar_today

Updated On:

Products

CA JCLCheck Workload Automation

Issue/Introduction

Goal:
Trying to integrate the CA JCLCheck REST API with Zowe API Mediation Layer. 

Issue:
When verifying the connection with the API Mediation Layer in the JCLCheck REST Server log, the IP address in API ML section is not the one specified in the JCLCheck YAM file.  

API ML configuration in the jclcheck.yml file: 
                                         
apiml:                                                                  
        enabled: true                                                  
        service:                                                      
        hostname:  usjclchk.broadcom.net                                           
        ipAddress: 127.0.0.1                                           
        discoveryServiceUrls:                                          
         - https://usjclchk.broadcom.net:10011/eureka      
        

The JCLCheck REST Server log section "Registering to API Mediation Layer" shows:  

yyyy-mm-dd hh:mm:ss  INFO nnnnnnnn --- .           main. o.zowe.commons.apiml.RegisterToApiLayer  : Registering to API Mediation
 Layer: baseUrl=https://my.service.hostname:12345/, ipAddress=123.123.123.123, discoveryServiceUrls=.https://<eurekahostname>:<eurek
aport>/eureka.                        



                                                                                             

Cause

 

Environment

Release : 12.0
Product: CA JCLCheck Workload Automation
Component : JCLCheck REST API

Resolution

Indentation is important in the YAM files. In this case, all the properties under service need to be indented as follows:    

apiml:                                                                  
        enabled: true                                                  
        service:                                                      
                hostname:  usjclchk.broadcom.net                                           
                ipAddress: 127.0.0.1                                           
                discoveryServiceUrls:                                          
                         - https://usjclchk.broadcom.net:10011/eureka


Reference: 
https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-mainframe-software/automation/ca-jclcheck-workload-automation/12-0/using/install-configure-and-deploy-the-jclcheck-rest-api/integrate-the-rest-api-with-api-mediation-layer.html