Alibaba Cloud SDK for Java.
Switch branches/tags
Nothing to show
Clone or download
jxyowen GREEN SDK Auto Released By liuhai.lh,Version:3.4.0
1, api for custom keyword lib、similartext lib、voice keyword lib
2, api for custom image lib
3, support client file detect for image detection scenes、voice detection scenes、video detection scenes、file detection scenes
Latest commit ab3f968 Nov 20, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
aliyun-java-sdk-aegis AEGIS SDK Auto Released By lai.zhoulai,Version:1.0.3 Nov 6, 2018
aliyun-java-sdk-afs fix the license Mar 13, 2018
aliyun-java-sdk-alidns fix the license Mar 13, 2018
aliyun-java-sdk-alikafka ALIKAFKA SDK Auto Released By zyh.zyh,Version:1.0.1 Oct 25, 2018
aliyun-java-sdk-alimt ALIMT SDK Auto Released By xulei.xl,Version:1.0.1 Nov 16, 2018
aliyun-java-sdk-arms ARMS SDK Auto Released By qikai.yangqikai,Version:2.2.0 Oct 16, 2018
aliyun-java-sdk-arms4finance fix the license Mar 13, 2018
aliyun-java-sdk-batchcompute BATCHCOMPUTE SDK Auto Released By yuanyang.hyy,Version:6.0.3 Nov 19, 2018
aliyun-java-sdk-bss fix the license Mar 13, 2018
aliyun-java-sdk-bssopenapi BSSOPENAPI SDK Auto Released By xueyulun,Version:1.0.5 Nov 19, 2018
aliyun-java-sdk-canary-tip CANARY-TIP SDK Auto Released By ruixin.zrx,Version:1.0.4 Oct 10, 2018
aliyun-java-sdk-cas CAS SDK Auto Released By yixiong.jxy,Version:2.0.0713 Jul 31, 2018
aliyun-java-sdk-cbn CBN SDK Auto Released By shuguang.wsg,Version:1.0.1 Sep 14, 2018
aliyun-java-sdk-ccc CCC SDK Auto Released By yonghong.lyh,Version:1.0.11 Nov 7, 2018
aliyun-java-sdk-ccs CCS SDK Auto Released By wilson.liuw,Version:1.0.0 Sep 25, 2018
aliyun-java-sdk-cdn CDN SDK Auto Released By xiaoyao,Version:3.0.2 Nov 10, 2018
aliyun-java-sdk-cds CDS SDK Auto Released By shuwei.hsw,Version:1.8.1 Jun 26, 2018
aliyun-java-sdk-cf fix the license Mar 13, 2018
aliyun-java-sdk-chatbot CHATBOT SDK Auto Released By longda.cld,Version:1.2.0 Nov 15, 2018
aliyun-java-sdk-cloudapi fix the license Mar 13, 2018
aliyun-java-sdk-cloudauth CLOUDAUTH SDK Auto Released By,Version:1.1.6 Oct 26, 2018
aliyun-java-sdk-cloudphoto 由廷诚发起的CLOUDPHOTO SDK自动发布, 版本号:1.1.18 Apr 24, 2018
aliyun-java-sdk-cloudwf fix the license Mar 13, 2018
aliyun-java-sdk-cms CMS SDK Auto Released By yixiong.jxy,Version:6.0.13 Aug 2, 2018
aliyun-java-sdk-commondriver fix the license Mar 13, 2018
aliyun-java-sdk-core CORE SDK Auto Released By haowei.yao,Version:4.2.2 Nov 19, 2018
aliyun-java-sdk-cr 由驹中发起的CR SDK自动发布, 版本号:3.0.0 May 23, 2018
aliyun-java-sdk-crm CRM SDK Auto Released By jingting.xjt,Version:2.2.0 Oct 24, 2018
aliyun-java-sdk-cs fix the license Mar 13, 2018
aliyun-java-sdk-csb CSB SDK Auto Released By,Version:1.1.6 Sep 3, 2018
aliyun-java-sdk-dataworks-public DATAWORKS-PUBLIC SDK Auto Released By sam.liux,Version:1.8.1 Jul 30, 2018
aliyun-java-sdk-dcdn DCDN SDK Auto Released By xiaoyao,Version:1.1.0 Sep 29, 2018
aliyun-java-sdk-dds DDS SDK Auto Released By junjun.zhang,Version:2.0.2 Oct 31, 2018
aliyun-java-sdk-dm fix the license Mar 13, 2018
aliyun-java-sdk-domain-intl DOMAIN-INTL SDK Auto Released By lukang.zlh,Version:1.3.0 Nov 13, 2018
aliyun-java-sdk-domain DOMAIN SDK Auto Released By tieqin.lxy,Version:3.10.1 Nov 19, 2018
aliyun-java-sdk-drds DRDS SDK Auto Released By mingyue.gmy,Version:2.5.1 Jul 26, 2018
aliyun-java-sdk-dyplsapi DYPLSAPI SDK Auto Released By shibo.oysb,Version:1.1.0 Oct 26, 2018
aliyun-java-sdk-dypnsapi DYPNSAPI SDK Auto Released By,Version:1.0.1 Jul 26, 2018
aliyun-java-sdk-dyvmsapi 由峰远发起的DYVMSAPI SDK自动发布, 版本号:1.0.0 May 23, 2018
aliyun-java-sdk-eci ECI SDK Auto Released By lm140765,Version:1.0.0 Nov 7, 2018
aliyun-java-sdk-ecs ECS SDK Auto Released By,Version:4.13.0 Nov 15, 2018
aliyun-java-sdk-ehpc EHPC SDK Auto Released By,Version:1.9.0 Nov 14, 2018
aliyun-java-sdk-emr EMR SDK Auto Released By salmon.smm,Version:3.0.0 Nov 7, 2018
aliyun-java-sdk-ess ESS SDK Auto Released By kangning.tkn,Version:2.2.6 Sep 6, 2018
aliyun-java-sdk-finmall FINMALL SDK Auto Released By,Version:1.0.0 Oct 23, 2018
aliyun-java-sdk-ft Ft SDK Auto Released By AlibabaCloud,Version:null Aug 27, 2018
aliyun-java-sdk-gpdb GPDB SDK Auto Released By yixiong.jxy,Version:1.0.0 Jul 23, 2018
aliyun-java-sdk-green GREEN SDK Auto Released By liuhai.lh,Version:3.4.0 Nov 20, 2018
aliyun-java-sdk-hpc fix the license Mar 13, 2018
aliyun-java-sdk-hsm 由鸿逸发起的HSM SDK自动发布, 版本号:1.0.0 Apr 27, 2018
aliyun-java-sdk-httpdns fix the license Mar 13, 2018
aliyun-java-sdk-idst fix the license Mar 13, 2018
aliyun-java-sdk-imagesearch fix the license Mar 13, 2018
aliyun-java-sdk-imm IMM SDK Auto Released By kuta.zyb,Version:1.8.2 Nov 15, 2018
aliyun-java-sdk-iot IOT SDK Auto Released By cheyun.lxf,Version:6.3.1 Oct 16, 2018
aliyun-java-sdk-itaas fix the license Mar 13, 2018
aliyun-java-sdk-jaq fix the license Mar 13, 2018
aliyun-java-sdk-jarvis-public JARVIS-PUBLIC SDK Auto Released By mainri.mxy,Version:1.0.0 Jun 20, 2018
aliyun-java-sdk-jarvis JARVIS SDK Auto Released By mainri.mxy,Version:1.2.3 Jun 21, 2018
aliyun-java-sdk-kms 由丰鲁成发起的KMS SDK自动发布, 版本号:2.5.0 Mar 29, 2018
aliyun-java-sdk-linkedmall LINKEDMALL SDK Auto Released By bozhu.zb,Version:2.0.1 Oct 19, 2018
aliyun-java-sdk-linkface LINKFACE SDK Auto Released By jiayao.wjy,Version:1.1.2 Nov 2, 2018
aliyun-java-sdk-live LIVE SDK Auto Released By renrang.yl,Version:3.7.2 Oct 30, 2018
aliyun-java-sdk-lubancloud LUBANCLOUD SDK Auto Released By benxiang.hhq,Version:1.0.0 Nov 2, 2018
aliyun-java-sdk-lubanruler fix the license Mar 13, 2018
aliyun-java-sdk-market-inner 由惜龙发起的MARKET-INNER SDK自动发布, 版本号:2.0.14 May 23, 2018
aliyun-java-sdk-market MARKET SDK Auto Released By jinxin.xjx,Version:2.0.13 Sep 5, 2018
aliyun-java-sdk-mopen MOPEN SDK Auto Released By everettli.ll,Version:1.1.0 Jul 31, 2018
aliyun-java-sdk-mts MTS SDK Auto Released By lingkong.mxs,Version:2.6.0 Aug 4, 2018
aliyun-java-sdk-nas fix the license Mar 13, 2018
aliyun-java-sdk-nhcil-imagecut 由沧粟发起的NHCIL-IMAGECUT SDK自动发布, 版本号:1.0.0 May 22, 2018
aliyun-java-sdk-ocs fix the license Mar 13, 2018
aliyun-java-sdk-oms fix the license Mar 13, 2018
aliyun-java-sdk-ons 由明锻发起的ONS SDK自动发布, 版本号:2.0.1 Apr 17, 2018
aliyun-java-sdk-openanalytics OPENANALYTICS SDK Auto Released By yongchun.zyc,Version:1.0.0 Aug 31, 2018
aliyun-java-sdk-ossadmin fix the license Mar 13, 2018
aliyun-java-sdk-ots OTS SDK Auto Released By wanhong.chenwh,Version:4.0.0 Aug 8, 2018
aliyun-java-sdk-petadata PETADATA SDK Auto Released By zhigang.xzg,Version:1.1.0 Aug 21, 2018
aliyun-java-sdk-phoenixsp-inner 由托天发起的PHOENIXSP-INNER SDK自动发布, 版本号:2.1.6 Mar 28, 2018
aliyun-java-sdk-polardb POLARDB SDK Auto Released By zhigang.xzg,Version:1.1.2 Nov 19, 2018
aliyun-java-sdk-pts PTS SDK Auto Released By zhangjin.jsf,Version:1.0.0 Nov 13, 2018
aliyun-java-sdk-push 由释一发起的PUSH SDK自动发布, BUILD_ID=490, 版本号:3.10.0 Mar 23, 2018
aliyun-java-sdk-pvtz 由空木发起的PVTZ SDK自动发布, 版本号:1.0.0 May 17, 2018
aliyun-java-sdk-qualitycheck QUALITYCHECK SDK Auto Released By chundi.zcd,Version:2.8.3 Jun 11, 2018
aliyun-java-sdk-r-kvstore R-KVSTORE SDK Auto Released By junjun.zhang,Version:2.0.3 Sep 6, 2018
aliyun-java-sdk-ram fix the license Mar 13, 2018
aliyun-java-sdk-rds RDS SDK Auto Released By junjun.zhang,Version:2.1.9 Sep 17, 2018
aliyun-java-sdk-release-test fix the license Mar 13, 2018
aliyun-java-sdk-ros fix the license Mar 13, 2018
aliyun-java-sdk-rtc RTC SDK Auto Released By renrang.yl,Version:1.0.1 Nov 8, 2018
aliyun-java-sdk-saf SAF SDK Auto Released By xinfa.duanxf,Version:1.0.1 Oct 9, 2018
aliyun-java-sdk-sample fix the license Mar 13, 2018
aliyun-java-sdk-sas-api fix the license Mar 13, 2018
aliyun-java-sdk-scdn SCDN SDK Auto Released By xiaoyao,Version:1.1.0 Sep 29, 2018
aliyun-java-sdk-slb SLB SDK Auto Released By,Version:3.2.7 Aug 28, 2018
aliyun-java-sdk-smartag-inner SMARTAG-INNER SDK Auto Released By jijun.jj,Version:2.0.1 Oct 24, 2018
aliyun-java-sdk-smartag SMARTAG SDK Auto Released By jijun.jj,Version:1.3.0 Nov 18, 2018
aliyun-java-sdk-snsuapi SNSUAPI SDK Auto Released By shaoping.gsp,Version:1.7.0 Aug 23, 2018
aliyun-java-sdk-sts fix the license Mar 13, 2018
aliyun-java-sdk-tesladam fix the license Mar 13, 2018
aliyun-java-sdk-teslamaxcompute 由荣旸发起的TESLAMAXCOMPUTE SDK自动发布, 版本号:1.5.4 May 8, 2018
aliyun-java-sdk-teslastream TESLASTREAM SDK Auto Released By,Version:1.0.0 Jul 26, 2018
aliyun-java-sdk-trademark-inner TRADEMARK-INNER SDK Auto Released By,Version:1.0.0 Sep 13, 2018
aliyun-java-sdk-trademark TRADEMARK SDK Auto Released By shuangcheng.wsc,Version:1.0.5 Nov 6, 2018
aliyun-java-sdk-ubsms fix the license Mar 13, 2018
aliyun-java-sdk-vod VOD SDK Auto Released By guzhaoyuan,Version:2.11.6 Oct 11, 2018
aliyun-java-sdk-vpc 由晟坤发起的VPC SDK自动发布, 版本号:3.0.2 Apr 25, 2018
aliyun-java-sdk-waf fix the license Mar 13, 2018
aliyun-java-sdk-yundun fix the license Mar 13, 2018
aliyun-java-sdk-zhuque ZHUQUE SDK Auto Released By yixiong.jxy,Version:1.0.3 Jul 23, 2018
.gitignore add May 4, 2018
License first commit aliyun open api sdk to github Jul 23, 2015 add May 4, 2018 update readme Oct 22, 2018

Alibaba Cloud Java Software Development Kit


The Alibaba Cloud Software Development Kit Java (SDK) allows you to access Alibaba Cloud services such as Elastic Compute Service (ECS), Server Load Balancer (SLB), and CloudMonitor. You can access Alibaba Cloud services without the need to handle API related tasks, such as signing and constructing your requests.

This document introduces how to obtain and call Alibaba Cloud Java SDK.

If you have any problem while using Java SDK, please join the DingTalk group: 11771185 (the official SDK customer service group of Alibaba Cloud) for consultation.


  • To use Alibaba Cloud Java SDK, you must have an Alibaba Cloud account as well as an AccessKey ID and an AccessKey Secret. Create and view your AccessKey on the RAM console or contact your system administrator.

  • To use an Alibaba Cloud Java SDK to access the APIs of a product, you must first activate the product on the Alibaba Cloud console if required.

  • Alibaba Cloud Java SDK requires JDK 1.6 or later.

Install Java SDK

If you use Apache Maven to manage Java projects, you only need to add corresponding dependencies to the pom.xml files of the projects. You can download the Maven dependencies of different cloud products in Alibaba Cloud SDK.

You must install the SDK core library for any SDK you use. For example, to call the ECS SDK, you must install both the ECS SDK and the SDK core library.

For example, with SDK core library 3.5.0 and ECS SDK 3.0.0, you need to declare the two SDKs in the pom.xml file.


Initiate a call

The following code example shows the three main steps to use Alibaba Cloud Java SDK:

  1. Create and initialize a DefaultAcsClient instance.

  2. Create an API request and set parameters.

  3. Initiate the request and handle the response or exceptions.

 package com.testprogram;
 import com.aliyuncs.profile.DefaultProfile;
 import com.aliyuncs.DefaultAcsClient;
 import com.aliyuncs.IAcsClient;
 import com.aliyuncs.exceptions.ClientException;
 import com.aliyuncs.exceptions.ServerException;
 import com.aliyuncs.ecs.model.v20140526.*;
 public class Main {
     public static void main(String[] args) {
         // Create and initialize a DefaultAcsClient instance
         DefaultProfile profile = DefaultProfile.getProfile(
             "<your-region-id>",          // The region ID
             "<your-access-key-id>",      // The AccessKey ID of the RAM account
             "<your-access-key-secret>"); // The AccessKey Secret of the RAM account
         IAcsClient client = new DefaultAcsClient(profile);
         // Create an API request and set parameters
         DescribeInstancesRequest request = new DescribeInstancesRequest();
         // Initiate the request and handle the response or exceptions
         DescribeInstancesResponse response;
         try {
             response = client.getAcsResponse(request);
             for (DescribeInstancesResponse.Instance instance:response.getInstances()) {
         } catch (ServerException e) {
         } catch (ClientException e) {