Git Product home page Git Product logo

apache-cloudstack-java-client's Introduction

apache-cloudstack-java-client

Project status: Build StatusSonar quality gateCode coverageduplicated lines densitybugs

This project facilitates the integration of Java applications with Apache CloudStack through its API. It is a Java framework that enables the execution of requests to Apache CloudStack API. If you want to write only a simple script I recommend you using CloudMonkey, instead of this framework. However, if you have the need to write a Java application that has to consume Apache CloudStack API, you are welcome to use this framework.

You can find examples on how to use the framework at examples. The usage is as simple as that:

        String secretKey = "<secretKey>";
        String apiKey = "<apiKey>";
        String cloudStackUrl = "https://cloud.domain.com/client";

        ApacheCloudStackUser apacheCloudStackUser = new ApacheCloudStackUser(secretKey, apiKey);
        ApacheCloudStackClient apacheCloudStackClient = new ApacheCloudStackClient(cloudStackUrl, apacheCloudStackUser);

        ApacheCloudStackRequest apacheCloudStackRequest = new ApacheCloudStackRequest("listClusters");
        apacheCloudStackRequest.addParameter("response", "json");
        apacheCloudStackRequest.addParameter("name", "clusterName");

        String response = apacheCloudStackClient.executeRequest(apacheCloudStackRequest);
        System.out.println(response);

The component is on Maven central repo; to use it, you only need to add the following piece of code to your pom.xml:

<dependency>
    <groupId>br.com.autonomiccs</groupId>
    <artifactId>apache-cloudstack-java-client</artifactId>
    <version>1.0.3</version>
</dependency>

License

Apache CloudStack Java Client

Copyright (C) 2016 Autonomiccs, Inc.

Licensed to the Autonomiccs, Inc. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The Autonomiccs, Inc. licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

apache-cloudstack-java-client's People

Contributors

autonomiccs-jenkins avatar rafaelweingartner avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.