Gateway documentation
-
Upload
ashok-kumar-palaki -
Category
Education
-
view
162 -
download
0
Transcript of Gateway documentation
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
- GATEWAY DOCUMENTATION
- CONFIGURATION
- Conthellip
- Slide 4
- Slide 5
- Slide 6
- Slide 7
- Slide 8
- Slide 9
- Slide 10
- Slide 11
- Slide 12
- Slide 13
- Slide 14
- Slide 15
- Slide 16
- Slide 17
- Slide 18
-
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
- GATEWAY DOCUMENTATION
- CONFIGURATION
- Conthellip
- Slide 4
- Slide 5
- Slide 6
- Slide 7
- Slide 8
- Slide 9
- Slide 10
- Slide 11
- Slide 12
- Slide 13
- Slide 14
- Slide 15
- Slide 16
- Slide 17
- Slide 18
-
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
- GATEWAY DOCUMENTATION
- CONFIGURATION
- Conthellip
- Slide 4
- Slide 5
- Slide 6
- Slide 7
- Slide 8
- Slide 9
- Slide 10
- Slide 11
- Slide 12
- Slide 13
- Slide 14
- Slide 15
- Slide 16
- Slide 17
- Slide 18
-
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
- GATEWAY DOCUMENTATION
- CONFIGURATION
- Conthellip
- Slide 4
- Slide 5
- Slide 6
- Slide 7
- Slide 8
- Slide 9
- Slide 10
- Slide 11
- Slide 12
- Slide 13
- Slide 14
- Slide 15
- Slide 16
- Slide 17
- Slide 18
-
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
- GATEWAY DOCUMENTATION
- CONFIGURATION
- Conthellip
- Slide 4
- Slide 5
- Slide 6
- Slide 7
- Slide 8
- Slide 9
- Slide 10
- Slide 11
- Slide 12
- Slide 13
- Slide 14
- Slide 15
- Slide 16
- Slide 17
- Slide 18
-
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
- GATEWAY DOCUMENTATION
- CONFIGURATION
- Conthellip
- Slide 4
- Slide 5
- Slide 6
- Slide 7
- Slide 8
- Slide 9
- Slide 10
- Slide 11
- Slide 12
- Slide 13
- Slide 14
- Slide 15
- Slide 16
- Slide 17
- Slide 18
-
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
- GATEWAY DOCUMENTATION
- CONFIGURATION
- Conthellip
- Slide 4
- Slide 5
- Slide 6
- Slide 7
- Slide 8
- Slide 9
- Slide 10
- Slide 11
- Slide 12
- Slide 13
- Slide 14
- Slide 15
- Slide 16
- Slide 17
- Slide 18
-
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
- GATEWAY DOCUMENTATION
- CONFIGURATION
- Conthellip
- Slide 4
- Slide 5
- Slide 6
- Slide 7
- Slide 8
- Slide 9
- Slide 10
- Slide 11
- Slide 12
- Slide 13
- Slide 14
- Slide 15
- Slide 16
- Slide 17
- Slide 18
-
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
- GATEWAY DOCUMENTATION
- CONFIGURATION
- Conthellip
- Slide 4
- Slide 5
- Slide 6
- Slide 7
- Slide 8
- Slide 9
- Slide 10
- Slide 11
- Slide 12
- Slide 13
- Slide 14
- Slide 15
- Slide 16
- Slide 17
- Slide 18
-
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
- GATEWAY DOCUMENTATION
- CONFIGURATION
- Conthellip
- Slide 4
- Slide 5
- Slide 6
- Slide 7
- Slide 8
- Slide 9
- Slide 10
- Slide 11
- Slide 12
- Slide 13
- Slide 14
- Slide 15
- Slide 16
- Slide 17
- Slide 18
-