Hard coded information in scripts

book

Article ID: 16859

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway

Issue/Introduction



Unable to create a tenant using the create-tenant.sh script in Portal 4.2

Environment

Release: APIXSP99000-4.2-API Developer Portal-Enhanced Experience-Partner
Component:

Resolution

The hostname apim-ssg hard coded in the create-tenant.sh script 
This should only work if the user has accepted the default portal name in the config.sh script 

Insert new line on line 6 
TENANT=$(grep ^PORTAL_TENANT_ID= ${USER_CONFIG} | cut -f2- -d= | tr -d '"') 

Change line 87: 
-X POST -k https://${TENANT}-ssg.${SUBDOMAIN}:9443/provision/tenants \ 

Change Line 99 
-X POST -k https://${TENANT}-ssg.${SUBDOMAIN}:9443/provision/tenants \ 

 

Re-run the create-tenant.sh script and the tenant should be created now.

 

Additional Information

This problem is resolved in Portal 4.2.0.1 which can be downloaded from here