Changing the API Data Store HTTP Port

About this task

The default HTTP port that clients use to make calls to API Gateway Data Store is 9240. Use the following procedure to change the HTTP port number.
Note: You cannot add a new port from this section. You can only edit existing port details.

To change the API Data Store HTTP port

Procedure

  1. In Command Central, navigate to Environments > Instances > All > API Data Store > Configuration.
  2. Select Ports from the drop-down menu.
  3. Click http port and specify the HTTP port number in the Port Number field.
  4. Optionally, click Test to verify your configuration.
  5. Save your changes.
  6. Stop API Gateway instance, if it is running.
  7. Update the Elasticsearch entry in the config.properties file located at SAG_Installdir/IntegrationServer/instances/tenant_name/packages/WmAPIGateway/config/resources/elasticsearch/.
    Instead of changing the entries manually you can include these changes in one of the following ways:
  8. Restart the API Gateway instance.

Changing the API Data Store HTTP Port using Template

About this task

You can change the HTTP Port details using the following Command Central template:

sagcc exec templates composite import -i ports.yaml

sagcc exec templates composite apply sag-apigw-datastore-port nodes=local port.alias=port_alias port.number=port_number

Sample ports configuration file:

alias: sag-apigw-datastore-port
description: API Gateway Data Store Port configuration

layers:
  runtime:
    templates:
     - apigw-datastore-port

templates:
  apigw-datastore-port:
    products:
      CEL:
        default:
          configuration:
            CEL:
              COMMON-PORTS:
                COMMON-PORTS-defaultHttp:
                  Port:
                    '@alias': ${port.alias}
                    Number: ${port.number}
                    Protocol: HTTP
                  
                  
provision:
  default:
    runtime: ${nodes}