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

Support HTTP Post in API #22

Open
breakfastattiffs opened this issue Jun 25, 2014 · 1 comment
Open

Support HTTP Post in API #22

breakfastattiffs opened this issue Jun 25, 2014 · 1 comment

Comments

@breakfastattiffs
Copy link

As of 4.2, cloudstack supports http post for the updateVirtualMachine api call. It would be great if there were a way to specify http POST or GET for all the the api commands, and have a way to provide a json body for post requests.

@pdion891
Copy link
Contributor

I'm not sure what you are asking but does something like this does the trick?

    host_conf = {
        :hypervisor => host["hypervisor"],
        :url => host["url"],
        :username => host["username"],
        :password => host["password"],
        :clusterid => cluster["cluster"].first["id"],
        :zoneid => zone["zone"]["id"],
        :podid => pod["pod"]["id"]
    }
    host = client.add_host(host_conf)

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

2 participants