Upstream Reference
An Upstream declares a service that an API Instance can route to when that service is not a plain service of the environment, typically a service outside the platform.
Rationale: Why upstreams exist.
Create an upstream
Open API Manager, go to Upstreams, then create one.
Target types
An upstream points at one destination. How you designate it depends on where the service runs.
| Target | What you give | Example |
|---|---|---|
| Host name | One or several public host names, each with its port | api.partner.com:443 |
| IP address | One or several public IP addresses, each with its port | 203.0.113.10:8443 |
| Platform service | A service of the platform, chosen by name | — |
Connection options
These options tune how the gateway connects to the destination. The defaults suit a plain HTTP service; an HTTPS destination needs TLS turned on.
| Option | What it does | Default |
|---|---|---|
| TLS | The gateway speaks TLS to the upstream. Not asked for a platform service. | On |
| Application Protocol | Only when the upstream does not speak HTTP/1.1: HTTP/2 cleartext, WebSocket, or WebSocket over TLS. | — |
An upstream points at public host names and public addresses, or at a service of the platform chosen by name. Addresses inside the platform cannot be typed in by hand.
Reference an upstream from an API instance
When creating an API instance, choose the upstream as its Backend Service. The upstream comes with its own ports: none is asked for on the API.
How the gateway negotiates TLS with upstreams (the versions allowed, and the certificate it presents to an upstream that requires one) is set with the Backend TLS setting. The certificate is a stored configuration of the kind TLS Certificate.