Welcome, Guest
Username: Password: Remember me
Archived CloudStack Forums for reference purposes please direct all future inquiries to the Apache CloudStack mailing lists.

incubator.apache.org/cloudstack/mailing-lists.html
  • Page:
  • 1

TOPIC: Unable to make unauthenticated API calls

Unable to make unauthenticated API calls 10 months 3 weeks ago #12364

  • vibhork
  • vibhork's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
I am trying to use unauthenticated APIs which are to be used as:
http://ip_address_of_server:8096/?command="some_command"

For this I have added tcp and udp port 8096 to ACCEPT in iptables. But if I use netstat command(netstat -an | grep "LISTEN"), it is not showing port 8096. Can somebody please tell me how can we make that port listening so that unauthenticated API calls can be made.

Also, what is the procedure for unauthenticated API calls after making that port listening.

Thanks in advance.
The administrator has disabled public write access.

Re: Unable to make unauthenticated API calls 10 months 3 weeks ago #12371

  • jzb
  • jzb's Avatar
  • OFFLINE
  • Administrator
  • Posts: 113
  • Thank you received: 7
  • Karma: 3
You need to ensure that CloudStack is allowing unauthenticated calls. This is described on page 26 of the developer guide:

Port 8096, which allows API calls without authentication, is closed and disabled by default on any fresh 3.0.x installations.
You can enable 8096 (or another port) for this purpose as follows:
1. Ensure that the first Management Server is installed and running.
2. Set the global configuration parameter integration.api.port to the desired port.
3. Restart the Management Server.
4. On the Management Server host machine, create an iptables rule allowing access to that port.

Hope that helps.

You might also want to read this post by David Nalley:

www.cloudstack.org/blog/59-beginners-gui...-cloudstack-api.html
The administrator has disabled public write access.
The following user(s) said Thank You: vibhork

Re: Unable to make unauthenticated API calls 10 months 1 week ago #12565

  • vibhork
  • vibhork's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
Thanks a lot....that really helped :) :)
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.264 seconds
About BuildaCloud.org Resources Site Info

Build a Cloud.org is a resource for those users who want to build cloud computing software with both open source and proprietary software.