Upload
ashok-kumar-palaki
View
164
Download
0
Embed Size (px)
Citation preview
GATEWAY DOCUMENTATION
ASHOK KUMAR PALAKI
CONFIGURATION
bull First we have to maintain 3 or more API managers(wso2am) separately
bull Then change all servers ldquooffsetrdquo value for avoiding port conflict
(wso2am-1100repositoryconfcarbonxml)
Conthellip
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml files in the second and the third API Manager instances and set the ltEnableThriftServergt property to false
(by default true)
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml files in the second and the thirdGateway instances and change the followingltAuthManagergt ltServerURLgthttpsltIP of the first instancegt9443servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltAuthManagergt
bull Exbull ltAuthManagergt
ltServerURLgthttps19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt
ltPasswordgtadminltPasswordgthelliphelliphellipltAuthManagergt
bull And change here alsoltAPIKeyValidatorgt ltServerURLgthttpsltIP of the first instancegt9443servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttpsltIP of the first instancegt8243revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull ExltAPIKeyValidatorgt ltServerURLgthttps 19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttps 19216811459444revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml file in the first API Manager instance
bull Add two API Gateway environments under the ltEnvironmentsgt element and delete the ltenvironmentgt that comes by default
ltEnvironmentsgt ltEnvironment type=productiongt ltNamegtProduction GatewayltNamegt ltDescriptiongtProduction Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8281httpslocalhost8244ltGatewayEndpointgt ltEnvironmentgt ltEnvironment type=sandboxgt ltNamegtSandbox GatewayltNamegt ltDescriptiongtSandbox Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9445servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8282httpslocalhost8245ltGatewayEndpointgt ltEnvironmentgtltEnvironmentsgt
bull Then start the all servers
bull Copy the first instance IP address of publisher and enter the credentials
bull Note- second and third servers will not open on browser
CONFIGURATION
bull First we have to maintain 3 or more API managers(wso2am) separately
bull Then change all servers ldquooffsetrdquo value for avoiding port conflict
(wso2am-1100repositoryconfcarbonxml)
Conthellip
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml files in the second and the third API Manager instances and set the ltEnableThriftServergt property to false
(by default true)
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml files in the second and the thirdGateway instances and change the followingltAuthManagergt ltServerURLgthttpsltIP of the first instancegt9443servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltAuthManagergt
bull Exbull ltAuthManagergt
ltServerURLgthttps19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt
ltPasswordgtadminltPasswordgthelliphelliphellipltAuthManagergt
bull And change here alsoltAPIKeyValidatorgt ltServerURLgthttpsltIP of the first instancegt9443servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttpsltIP of the first instancegt8243revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull ExltAPIKeyValidatorgt ltServerURLgthttps 19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttps 19216811459444revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml file in the first API Manager instance
bull Add two API Gateway environments under the ltEnvironmentsgt element and delete the ltenvironmentgt that comes by default
ltEnvironmentsgt ltEnvironment type=productiongt ltNamegtProduction GatewayltNamegt ltDescriptiongtProduction Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8281httpslocalhost8244ltGatewayEndpointgt ltEnvironmentgt ltEnvironment type=sandboxgt ltNamegtSandbox GatewayltNamegt ltDescriptiongtSandbox Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9445servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8282httpslocalhost8245ltGatewayEndpointgt ltEnvironmentgtltEnvironmentsgt
bull Then start the all servers
bull Copy the first instance IP address of publisher and enter the credentials
bull Note- second and third servers will not open on browser
Conthellip
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml files in the second and the third API Manager instances and set the ltEnableThriftServergt property to false
(by default true)
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml files in the second and the thirdGateway instances and change the followingltAuthManagergt ltServerURLgthttpsltIP of the first instancegt9443servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltAuthManagergt
bull Exbull ltAuthManagergt
ltServerURLgthttps19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt
ltPasswordgtadminltPasswordgthelliphelliphellipltAuthManagergt
bull And change here alsoltAPIKeyValidatorgt ltServerURLgthttpsltIP of the first instancegt9443servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttpsltIP of the first instancegt8243revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull ExltAPIKeyValidatorgt ltServerURLgthttps 19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttps 19216811459444revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml file in the first API Manager instance
bull Add two API Gateway environments under the ltEnvironmentsgt element and delete the ltenvironmentgt that comes by default
ltEnvironmentsgt ltEnvironment type=productiongt ltNamegtProduction GatewayltNamegt ltDescriptiongtProduction Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8281httpslocalhost8244ltGatewayEndpointgt ltEnvironmentgt ltEnvironment type=sandboxgt ltNamegtSandbox GatewayltNamegt ltDescriptiongtSandbox Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9445servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8282httpslocalhost8245ltGatewayEndpointgt ltEnvironmentgtltEnvironmentsgt
bull Then start the all servers
bull Copy the first instance IP address of publisher and enter the credentials
bull Note- second and third servers will not open on browser
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml files in the second and the thirdGateway instances and change the followingltAuthManagergt ltServerURLgthttpsltIP of the first instancegt9443servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltAuthManagergt
bull Exbull ltAuthManagergt
ltServerURLgthttps19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt
ltPasswordgtadminltPasswordgthelliphelliphellipltAuthManagergt
bull And change here alsoltAPIKeyValidatorgt ltServerURLgthttpsltIP of the first instancegt9443servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttpsltIP of the first instancegt8243revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull ExltAPIKeyValidatorgt ltServerURLgthttps 19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttps 19216811459444revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml file in the first API Manager instance
bull Add two API Gateway environments under the ltEnvironmentsgt element and delete the ltenvironmentgt that comes by default
ltEnvironmentsgt ltEnvironment type=productiongt ltNamegtProduction GatewayltNamegt ltDescriptiongtProduction Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8281httpslocalhost8244ltGatewayEndpointgt ltEnvironmentgt ltEnvironment type=sandboxgt ltNamegtSandbox GatewayltNamegt ltDescriptiongtSandbox Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9445servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8282httpslocalhost8245ltGatewayEndpointgt ltEnvironmentgtltEnvironmentsgt
bull Then start the all servers
bull Copy the first instance IP address of publisher and enter the credentials
bull Note- second and third servers will not open on browser
bull Exbull ltAuthManagergt
ltServerURLgthttps19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt
ltPasswordgtadminltPasswordgthelliphelliphellipltAuthManagergt
bull And change here alsoltAPIKeyValidatorgt ltServerURLgthttpsltIP of the first instancegt9443servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttpsltIP of the first instancegt8243revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull ExltAPIKeyValidatorgt ltServerURLgthttps 19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttps 19216811459444revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml file in the first API Manager instance
bull Add two API Gateway environments under the ltEnvironmentsgt element and delete the ltenvironmentgt that comes by default
ltEnvironmentsgt ltEnvironment type=productiongt ltNamegtProduction GatewayltNamegt ltDescriptiongtProduction Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8281httpslocalhost8244ltGatewayEndpointgt ltEnvironmentgt ltEnvironment type=sandboxgt ltNamegtSandbox GatewayltNamegt ltDescriptiongtSandbox Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9445servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8282httpslocalhost8245ltGatewayEndpointgt ltEnvironmentgtltEnvironmentsgt
bull Then start the all servers
bull Copy the first instance IP address of publisher and enter the credentials
bull Note- second and third servers will not open on browser
bull And change here alsoltAPIKeyValidatorgt ltServerURLgthttpsltIP of the first instancegt9443servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttpsltIP of the first instancegt8243revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull ExltAPIKeyValidatorgt ltServerURLgthttps 19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttps 19216811459444revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml file in the first API Manager instance
bull Add two API Gateway environments under the ltEnvironmentsgt element and delete the ltenvironmentgt that comes by default
ltEnvironmentsgt ltEnvironment type=productiongt ltNamegtProduction GatewayltNamegt ltDescriptiongtProduction Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8281httpslocalhost8244ltGatewayEndpointgt ltEnvironmentgt ltEnvironment type=sandboxgt ltNamegtSandbox GatewayltNamegt ltDescriptiongtSandbox Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9445servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8282httpslocalhost8245ltGatewayEndpointgt ltEnvironmentgtltEnvironmentsgt
bull Then start the all servers
bull Copy the first instance IP address of publisher and enter the credentials
bull Note- second and third servers will not open on browser
bull ExltAPIKeyValidatorgt ltServerURLgthttps 19216811459444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltRevokeAPIURLgthttps 19216811459444revokeltRevokeAPIURLgtltAPIKeyValidatorgt
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml file in the first API Manager instance
bull Add two API Gateway environments under the ltEnvironmentsgt element and delete the ltenvironmentgt that comes by default
ltEnvironmentsgt ltEnvironment type=productiongt ltNamegtProduction GatewayltNamegt ltDescriptiongtProduction Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8281httpslocalhost8244ltGatewayEndpointgt ltEnvironmentgt ltEnvironment type=sandboxgt ltNamegtSandbox GatewayltNamegt ltDescriptiongtSandbox Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9445servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8282httpslocalhost8245ltGatewayEndpointgt ltEnvironmentgtltEnvironmentsgt
bull Then start the all servers
bull Copy the first instance IP address of publisher and enter the credentials
bull Note- second and third servers will not open on browser
bull Open the ltAPIM_HOMEgtrepositoryconfapi-managerxml file in the first API Manager instance
bull Add two API Gateway environments under the ltEnvironmentsgt element and delete the ltenvironmentgt that comes by default
ltEnvironmentsgt ltEnvironment type=productiongt ltNamegtProduction GatewayltNamegt ltDescriptiongtProduction Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8281httpslocalhost8244ltGatewayEndpointgt ltEnvironmentgt ltEnvironment type=sandboxgt ltNamegtSandbox GatewayltNamegt ltDescriptiongtSandbox Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9445servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8282httpslocalhost8245ltGatewayEndpointgt ltEnvironmentgtltEnvironmentsgt
bull Then start the all servers
bull Copy the first instance IP address of publisher and enter the credentials
bull Note- second and third servers will not open on browser
ltEnvironmentsgt ltEnvironment type=productiongt ltNamegtProduction GatewayltNamegt ltDescriptiongtProduction Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9444servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8281httpslocalhost8244ltGatewayEndpointgt ltEnvironmentgt ltEnvironment type=sandboxgt ltNamegtSandbox GatewayltNamegt ltDescriptiongtSandbox Gateway EnvironmentltDescriptiongt ltServerURLgthttpslocalhost9445servicesltServerURLgt ltUsernamegtadminltUsernamegt ltPasswordgtadminltPasswordgt ltGatewayEndpointgthttplocalhost8282httpslocalhost8245ltGatewayEndpointgt ltEnvironmentgtltEnvironmentsgt
bull Then start the all servers
bull Copy the first instance IP address of publisher and enter the credentials
bull Note- second and third servers will not open on browser
bull Then start the all servers
bull Copy the first instance IP address of publisher and enter the credentials
bull Note- second and third servers will not open on browser