Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Autonomiccs/apache-cloudstack-java-client
This project facilitates the integration of Java applications with Apache CloudStack through its API.
https://github.com/Autonomiccs/apache-cloudstack-java-client
Last synced: 2 months ago
JSON representation
This project facilitates the integration of Java applications with Apache CloudStack through its API.
- Host: GitHub
- URL: https://github.com/Autonomiccs/apache-cloudstack-java-client
- Owner: Autonomiccs
- License: apache-2.0
- Created: 2016-08-11T03:21:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-13T19:08:15.000Z (almost 6 years ago)
- Last Synced: 2024-01-31T05:58:23.453Z (about 1 year ago)
- Language: Java
- Size: 101 KB
- Stars: 16
- Watchers: 8
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cloudstack - apache-cloudstack-java-client (Java)
README
# apache-cloudstack-java-client
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:```java
String secretKey = "";
String apiKey = "";
String cloudStackUrl = "https://cloud.domain.com/client/api";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:
```
br.com.autonomiccs
apache-cloudstack-java-client
1.0.8```
# 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 athttp://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.