Page History
...
You will now configure the inter-component relationships illustrated in the following diagram by modifying their <APIM_HOME>/repository/conf/api-manager.xml
files.
Note |
---|
In a clustered environment, you use Session Affinity to ensure that requests from the same client always get routed to the same server. |
- Open the
<APIM_HOME>/repository/conf/api-manager.xml
files in the Gateway, Publisher, Key Manager and Store components. - Modify each of the files as follows:
Key Manager:
Localtab Group Localtab active true title API Manager 1.9.0 Code Block <APIGateway> <Environments> <Environment type="hybrid"> ... <ServerURL>https://<IP of the Gateway>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> <GatewayEndpoint>http://<IP of the Gateway>:8280,https://<IP of the Gateway>:8243</GatewayEndpoint> </Environment> </Environments> ... </APIGateway>
Localtab title API Manager 1.8.0 and 1.7.0 Configure the
<RevokeAPIURL>
element in theapi-manager.xml
file by providing the URL of the Revoke API that is deployed in the API Gateway node.Code Block <RevokeAPIURL>https://${carbon.local.ip}:${https.nio.port}/revoke</RevokeAPIURL> ... <APIGateway> <Environments> <Environment type="hybrid"> ... <ServerURL>https://<IP of the Gateway>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> <GatewayEndpoint>http://<IP of the Gateway>:8280,https://<IP of the Gateway>:8243</GatewayEndpoint> </Environment> </Environments> ... </APIGateway>
Localtab title API Manager 1.6.0 and 1.5.0 No changes required in the Key Manager node.
Gateway: configure the connection to the Key Manager component as follows:
Localtab Group Localtab active true title API Manager 1.9.0 Code Block language none <APIKeyValidator> <ServerURL>https://<IP of the Key Manager>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> ... </APIKeyValidator>
Localtab title API Manager 1.8.0, 1.7.0, 1.6.0 and 1.5.0 Code Block language none <APIKeyManager> <ServerURL>https://<IP of the Key Manager>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> ... </APIKeyManager>
Publisher: configure connections to the Key Manager and Gateway as follows:
Localtab Group Localtab active true title API Manager 1.9.0 Code Block language none <APIKeyValidator> <ServerURL>https://<IP of the Key Manager>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> ... </APIKeyValidator> <AuthManager> <ServerURL>https://<IP of the Key Manager>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> </AuthManager> <APIGateway> <Environments> <Environment type="hybrid"> ... <ServerURL>https://<IP of the Gateway>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> <GatewayEndpoint>https://<IP of the Gateway>:8280,https://<IP of the Gateway>:8243</GatewayEndpoint> </Environment> </Environments> ... </APIGateway>
Localtab title API Manager 1.8.0, 1.7.0, 1.6.0 and 1.5.0 Configure the
<RevokeAPIURL>
element in theapi-manager.xml
file by providing the URL of the Revoke API that is deployed in the API Gateway node.Code Block language none <APIKeyManager> <ServerURL>https://<IP of the Key Manager>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> ... </APIKeyManager> <AuthManager> <ServerURL>https://<IP of the Key Manager>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> </AuthManager> <APIGateway> <Environments> <Environment type="hybrid"> ... <ServerURL>https://<IP of the Gateway>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> <GatewayEndpoint>https://<IP of the Gateway>:8280,https://<IP of the Gateway>:8243</GatewayEndpoint> </Environment> </Environments> ... </APIGateway>
Info Creating a connection to the Key Manager from the Publisher is required in API Manager 1.3.0 but is no longer required from API Manager 1.4.0 onwards.
Store
Localtab Group Localtab active true title API Manager 1.9.0 Code Block language none <RevokeAPIURL>https://<IP of the Gateway>:8243/revoke</RevokeAPIURL> <APIKeyValidator> <ServerURL>https://<IP of the Key Manager>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> ... </APIKeyValidator> <AuthManager> <ServerURL>https://<IP of the Key Manager>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> </AuthManager> <APIGateway> <Environments> <Environment type="hybrid"> ... <ServerURL>https://<IP of the Gateway>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> <GatewayEndpoint>https://<IP of the Gateway>:8280,https://<IP of the Gateway>:8243</GatewayEndpoint> </Environment> </Environments> ... </APIGateway>
Localtab title API Manager 1.8.0, 1.7.0, 1.6.0 and 1.5.0 Code Block language none <APIKeyManager> <ServerURL>https://<IP of the Key Manager>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> ... </APIKeyManager> <AuthManager> <ServerURL>https://<IP of the Key Manager>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> </AuthManager> <APIGateway> <Environments> <Environment type="hybrid"> ... <ServerURL>https://<IP of the Gateway>:9443/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> <GatewayEndpoint>https://<IP of the Gateway>:8280,https://<IP of the Gateway>:8243</GatewayEndpoint> </Environment> </Environments> ... </APIGateway>
Tip Tip: For more information on how different environment types, see Maintaining Separate Production and Sandbox Gateways. This is useful when configuring environments in different geographical locations.
...