With APIC V10 Reserved Instance you can manage the hostname used for API Calls yourself through the IBM Cloud console without needing to open a support case.
Configure Secrets Manager Service
- If you don’t already have one, create a Secrets Manager instance
- Ensure API Connect Reserved Instance is authorised through IAM to access this Secrets Manager instance.
- Upload a certificate and private key to your Secrets Manager instance for DataPower to present for your hostname
Configure the SNI mapping for the gateway
- Open your Reserved instance from the top-level item from the API Connect services list with the plan of ‘Reserved’
- Select 'Gateways' and then click on the name of the gateway service you wish to configure the hostname against.
- Select your Secrets Manager service from the drop down
- Add the desired domain to the “Domains handled by gateway via SNI” section and select the certificate you uploaded and then Save.
Update your catalog to display the new vanity hostnameA vanity endpoint represents the endpoint by which an API is known externally; that is, the endpoint that is published to the Developer Portal and is used by an application developer to invoke the API.
There are two options how the vanity hostname can be configured
- API vanity endpoint Default behavior
- API vanity endpoint V5 legacy behavior
If you wish to use the same hostname for multiple catalogs, using the URI path <porg>/<catalog> to determine which catalog's APIs to target then use “Default behavior”
If you wish to use a unique hostname that goes directly to a specific catalog's APIs and does not require a URI path that contains <porg>/<catalog> then use “V5 legacy behavior”
Default behavior
- Open the API Manager view for the provider org you wish to update and select ‘Manage Catalogs’
- Select the catalog you wish to update, ‘Catalog settings’, ‘API endpoints’ and then Edit.
- Tick the box “Default behavior”
- Tick the box entitled ‘Display vanity endpoint’, select ‘Catalog priority’ and then add the new hostname URL including the URI <porg>/<catalog> to the list of base endpoints and click Save.
V5 legacy behavior
- Open the API Manager view for the provider org you wish to update and select ‘Manage Catalogs’
- Select the catalog you wish to update, ‘Catalog settings’, ‘API endpoints’ and then Edit.
- Tick the box “v5 legacy behavior”
- Tick the box entitled ‘Display vanity endpoint’, select ‘Catalog priority’ and then add the new hostname URL and from the drop down list the “Gateway URL” and click Save