You can write codes based on Alibaba Cloud SDK to call an Alibaba Cloud API so as to flexibly deploy and quickly operate Alibaba Cloud products and services.

AccessKey is needed in the using process. You can create and manage the AccessKey on the AccessKey Management page.

Environment preparations

You can query and download the latest SDK at;gav~com.aliyun~aliyun-java-sdk-*~~~.

You can download the source codes from GitHub:


            <name>Sonatype Nexus Staging</name>


public static void main(String[] argc) throws Exception {
        String accessKeyID = "xx";
        String accessKeySecret = "xx";
        String region="cn-shenzhen"; // or other
        DescribeApiVersionRequest describeApiVersionRequest = new DescribeApiVersionRequest();
        IClientProfile profile = DefaultProfile.getProfile(region, accessKeyID, accessKeySecret);
        IAcsClient client = new DefaultAcsClient(profile);
        try {
            HttpResponse httpResponse
                    = client.doAction(describeApiVersionRequest);
            System.out.println(new String(httpResponse.getContent()));
        } catch (ClientException e) {