Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to call Cloud Foundry API from a node.js application deployed? #28

Closed
jabrena opened this issue Aug 10, 2015 · 3 comments
Closed

How to call Cloud Foundry API from a node.js application deployed? #28

jabrena opened this issue Aug 10, 2015 · 3 comments

Comments

@jabrena
Copy link

jabrena commented Aug 10, 2015

Hi,

I would like to know how to call cloud foundry API from a node.js application deployed.

From local, it is very easy to call the API using the absolute address:

https://api.MY_PUBLIC_IP.xip.io/v2/info
http://apidocs.cloudfoundry.org/214/info/get_info.html

but if I deploy a node application, I can't connect with the API.

Does exist a way to call the API from a application deployed?

Many thanks in advance

Juan Antonio

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/100956150.

@jtarchie
Copy link
Contributor

@jabrena calling the API from application should work.

Your Cloud Foundry deployment might not have access to the IP address that you specifying. Some Cloud Foundry deployments have security groups setup on application so that they cannot access certain IP addresses. Ask your Devops if this is the case.

No matter what, I don't believe this to be a buildpack limitation though. Asking this question on the cf-dev mailing list might also help answer your question.

@jabrena
Copy link
Author

jabrena commented Aug 10, 2015

I will use the mailing list, but in my case, any security group was assigned to any space.

Thanks JT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants