Unable to deploy proxy to apigee using apigeetool

Not applicable

I am trying to automate the apigee deployment using apigeetool and jenkins

https://www.npmjs.com/package/apigeetool#deployproxy

. I followed the steps from the linkedin post

https://www.linkedin.com/pulse/jenkins-continuous-delivery-apigee-sean-williams.

apigeetool deployproxy -u "uname" -p "Password" -o xyz -n proxy-name -e dev -L "https://dev.api.xyz.com/digital/abc/def/v1/inquiry"

I am getting "Error: HTTP error 404".

0 5 879
5 REPLIES 5

@NAGA SAKETH JALIGAMA,

The -L parameter doesn't look right to me. The -L parameter should specify the "base uri" for your Edge organization. This is the URI that you would use to make Management API calls. For example, the default base URI for Edge Cloud in the create proxy management api is: api.enterprise.apigee.com.

If you have a Private Cloud installation, this value will be something different. You'll need to find out the base of the URL that you use to make management API calls for your private cloud organization and use that. apigeetool behind the scenes is calling these management APIs, so the base uri has to be correct for your setup.

Will

where can i find the baseuri in the tool? i tried this one and this threw 500 error.

"https://preprod.api-mgr.xyz.net/ws/proxy/organizations/xyz/deployments"

when i hit this url in browser i can see all deployments.

please tell me if am using wrong parameter.

Hi @NAGA SAKETH JALIGAMA,

I think you should use "preprod.api-mgr.xyz.net" for the -L parameter. If that's your Management server IP.

Or, the IP might be "preprod.api-mgr.xyz.net/ws/proxy" -- maybe try both.

Here's another post that explains the management server IP in a little more detail.

I'm not sure how to find the Mgmt server IP in the Edge UI, or if there is a way.

Will

Not applicable

can i use maven plugins to build/deploy and update kvm values automatically ?

Hi @NAGA SAKETH JALIGAMA,

Please create a new question for this issue. It's always best not to ask new questions in an answer. That way, more people will see it and you'll get a quicker reply.

Thanks,

Will