What should be my url (in setenv.sh) in private cloud setup

I have set up a private cloud referred by localhost running in port 9000.I need to upload a java-hello proxy for java callout. I have created org.I need to edit to setup file.I need to give details of the following:

org="myorg"

username="user1@user.com"

url=?

env="test"

api_domain=?

I need to find values for url and api_domain.

Can you please help me out.

My URL for apigee is localhost:9000/login

Solved Solved
0 7 262
2 ACCEPTED SOLUTIONS

Not applicable

You have to give router ip with port number for url.

But why are you updating the setup file? We don't update the setup file.

View solution in original post

Hi

I think you are using a python script to deploy the process.

am able deploy the proxy, follow below steps

Step 1:

Setenv.sh

	## Do not change thesettings below
	##--------------------------------------
	export org=lab01
	export username=elango.dhanasekaran@xxxxx.com
	export env=lab
	export url=http://ManagementsServerIP:8080
	export password=<Password>
	#export	api_domain=$api_domain
	~

Step 2:

Source the env variable ( its automatically taken care by the deploy.sh or deploy_all.sh)

	source setenv.sh

Step3:

Since am deploying once single proxy. In deploy.sh file add appropirate proxy folder

deploy.sh

	#!/bin/bash
	#source ../../setup/setenv.sh
	echo "Enter your password for the Apigee Enterprise organization $org, followed by [ENTER]:"
	#read -s password
	echo $password
	echo Deploying $proxy to $env on $url using $username and $org ../tools/deploy.py -n access-entity -u $username:$password -o $org -h $url -e $env -p / -d ../test-proxy
	echo "If 'State: deployed', then your API Proxy is ready to be invoked."
	echo "Run'invoke.sh'"

Step 4:

Run the script

	 ./deploy.sh
<u>Shell Output:</u>

	Enter your password
for the Apigee Enterprise organization testlab01, followed by [ENTER]:
	<Password>
	Deploying to lab on 
	http://<ManagementsServerIP>:8080
	using elango.dhanasekaran@xxxxx.comand lab01
	Writing../sample-proxies/access-entity/README.md to ./README.md
	Writing../sample-proxies/access-entity/deploy.sh to ./deploy.sh
	Writing../sample-proxies/access-entity/invoke.sh to ./invoke.sh
	Writing../sample-proxies/access-entity/apiproxy/access-entity.xml to
apiproxy/access-entity.xml
	Writing ../sample-proxies/access-entity/apiproxy/policies/EchoVariables.xml to
apiproxy/policies/EchoVariables.xml
	Writing ../sample-proxies/access-entity/apiproxy/policies/GetDeveloperProfile.xml toapiproxy/policies/GetDeveloperProfile.xml
	Writing../sample-proxies/access-entity/apiproxy/policies/SetDeveloperProfile.xml toapiproxy/policies/SetDeveloperProfile.xml
	Writing ../sample-proxies/access-entity/apiproxy/proxies/default.xml to
apiproxy/proxies/default.xml
	Imported new proxy version 1
	Environment: lab
	  Revision: 1 BasePath = /
	  State: deployed
	If 'State:deployed', then your API Proxy is ready to be invoked.
	Run 'invoke.sh'

Quick Debug:

Why you are running on localhost:9000/login , its should be {hostname -i}:9000/login

In setenv : add http://ManagementsServerIP:8080 not 9000(its for edgeUI)

Since its private cloud u can comment out #export api_domain=$api_domain

Hope it help to resolve your issue

View solution in original post

7 REPLIES 7

When I give url as "http://localhost:9000" and api_domain as "apigee.net", I am getting error as connection refused.Please help me out.

Not applicable

You have to give router ip with port number for url.

But why are you updating the setup file? We don't update the setup file.

Hi,

This is what my setup file look like. I need to edit the fields right.So I was just asking what should be the values of each fields.I have created an org as myorg, user as user1@user.com, environment is test. I wanted to know url and api_domain values, as I am setting up a private cloud setup in mu localhost with address as http://localhost:9000/login.

org="Enter your Apigee Edge organization name"
username="Enter your Apigee Edge email address"
url="https://api.enterprise.apigee.com"
env="Enter the environment to deploy to (test or prod)"
api_domain="apigee.net"

I hope I am clear.Please help me out.

Url will be router ip : port,

Domain you can give your company domain

Thanks for your response.

Hi, I tried giving my router_ip:port, but its still not able to deploy the proxy.

Help me out please.

Being true I never update setup script. Did you create organization and environment with passing configuration file ?

That should take care of these.

Hi

I think you are using a python script to deploy the process.

am able deploy the proxy, follow below steps

Step 1:

Setenv.sh

	## Do not change thesettings below
	##--------------------------------------
	export org=lab01
	export username=elango.dhanasekaran@xxxxx.com
	export env=lab
	export url=http://ManagementsServerIP:8080
	export password=<Password>
	#export	api_domain=$api_domain
	~

Step 2:

Source the env variable ( its automatically taken care by the deploy.sh or deploy_all.sh)

	source setenv.sh

Step3:

Since am deploying once single proxy. In deploy.sh file add appropirate proxy folder

deploy.sh

	#!/bin/bash
	#source ../../setup/setenv.sh
	echo "Enter your password for the Apigee Enterprise organization $org, followed by [ENTER]:"
	#read -s password
	echo $password
	echo Deploying $proxy to $env on $url using $username and $org ../tools/deploy.py -n access-entity -u $username:$password -o $org -h $url -e $env -p / -d ../test-proxy
	echo "If 'State: deployed', then your API Proxy is ready to be invoked."
	echo "Run'invoke.sh'"

Step 4:

Run the script

	 ./deploy.sh
<u>Shell Output:</u>

	Enter your password
for the Apigee Enterprise organization testlab01, followed by [ENTER]:
	<Password>
	Deploying to lab on 
	http://<ManagementsServerIP>:8080
	using elango.dhanasekaran@xxxxx.comand lab01
	Writing../sample-proxies/access-entity/README.md to ./README.md
	Writing../sample-proxies/access-entity/deploy.sh to ./deploy.sh
	Writing../sample-proxies/access-entity/invoke.sh to ./invoke.sh
	Writing../sample-proxies/access-entity/apiproxy/access-entity.xml to
apiproxy/access-entity.xml
	Writing ../sample-proxies/access-entity/apiproxy/policies/EchoVariables.xml to
apiproxy/policies/EchoVariables.xml
	Writing ../sample-proxies/access-entity/apiproxy/policies/GetDeveloperProfile.xml toapiproxy/policies/GetDeveloperProfile.xml
	Writing../sample-proxies/access-entity/apiproxy/policies/SetDeveloperProfile.xml toapiproxy/policies/SetDeveloperProfile.xml
	Writing ../sample-proxies/access-entity/apiproxy/proxies/default.xml to
apiproxy/proxies/default.xml
	Imported new proxy version 1
	Environment: lab
	  Revision: 1 BasePath = /
	  State: deployed
	If 'State:deployed', then your API Proxy is ready to be invoked.
	Run 'invoke.sh'

Quick Debug:

Why you are running on localhost:9000/login , its should be {hostname -i}:9000/login

In setenv : add http://ManagementsServerIP:8080 not 9000(its for edgeUI)

Since its private cloud u can comment out #export api_domain=$api_domain

Hope it help to resolve your issue