aliyun/aliyun-openapi-java-sdk — dự án backend — đang có 1.4k sao GitHub trong nhóm Backend. The Alibaba Cloud V1.0 SDK will soon enter the Basic Security Maintenance phase and is no longer recommended for use. V2.0 SDK is available here: https://github.com/aliyun/alibabacloud-java-sdk
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
⚠️ Important Notice: Alibaba Cloud V1.0 Java SDK has entered the basic security maintenance phase and is no longer recommended for use. New users should directly use the V2.0 Java SDK; users who have already integrated the V1.0 Java SDK are also advised to migrate to the V2.0 Java SDK.
V2.0 Java SDK usage please refer to Help Center Documentation and Alibaba Cloud OpenAPI Developer Portal.
The Alibaba Cloud SDK for Java (V1.0) 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 SDK for Java (V1.0).
If you have any problem while using Alibaba Cloud SDK for Java (V1.0), please submit an issue.
⚠️ Migration Notice
Alibaba Cloud V1.0 Java SDK has entered the basic security maintenance phase and is no longer recommended for use.
Why migrate to V2.0?
Better Performance: Improved architecture and optimized performance
Enhanced Security: Modern security practices and credential management
Active Maintenance: Ongoing updates and bug fixes
Richer Features: New capabilities and improved API design
To use Alibaba Cloud SDK for Java, 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 the Alibaba Cloud SDK for Java to access the APIs of a product, you must first activate the product on the Alibaba Cloud console if required.
The Alibaba Cloud Java SDK requires JDK 1.8 or later.
Installation
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 view the Maven dependencies of different cloud products in Alibaba Cloud SDK Center.
You must install aliyun-java-sdk-core library no matter which product development kit you want to use. For example, to call the ECS SDK, you need to install aliyun-java-sdk-core library and aliyun-java-sdk-ecs library .
To use the Ecs SDK as an example, you only need to declare the following two dependencies in the pom.xml file.
If maven is not downloading jar packages from a central repository, you need to add these dependencies in the pom.xml file, or a NoClassDefFoundError exception will be reported
Troubleshoot Provide OpenAPI diagnosis service to help developers quickly locate and troubleshoot errors by using RequestID or error message, and provide solutions.
Quick Examples
The following code example shows how to use Alibaba Cloud SDK for Java :
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) {
// 1. 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);
// 2. Create an API request and set parameters
DescribeInstancesRequest request = new DescribeInstancesRequest();
request.setPageSize(10);
// 3. Initiate the request and handle the response or exceptions
DescribeInstancesResponse response;
try {
response = client.getAcsResponse(request);
for (DescribeInstancesResponse.Instance instance:response.getInstances()) {
System.out.println(instance.getPublicIpAddress());
}
} catch (ServerException e) {
e.printStackTrace();
} catch (ClientException e) {
e.printStackTrace();
}
}
}
For security reason, we don't recommend to hard code credentials information in source code. You should access
credentials from external configurations or environment variables.
Documentation
Requirements
Installation
Client & Credentials
Connection Pool
Timeout
HTTPS Configurations
Proxy Configurations
Debug
Log
Exception
Endpoint
Issues
Opening an Issue, Issues not conforming to the guidelines may be closed immediately.
Changelog
Detailed changes for each release are documented in the release notes.
Contribution
Please make sure to read the Contributing Guide before making a pull request.
References
Alibaba Cloud Regions & Endpoints
Alibaba Cloud OpenAPI Portal
Latest Release
V2.0 Java SDK Repository
V2.0 Java SDK Documentation
License
Apache-2.0
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
aliyun/aliyun-openapi-java-sdk có 1.4k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/aliyun/aliyun-openapi-java-sdk. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
aliyun/aliyun-openapi-java-sdk có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho aliyun/aliyun-openapi-java-sdk. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
aliyun/aliyun-openapi-java-sdk có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho aliyun/aliyun-openapi-java-sdk. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
aliyun/aliyun-openapi-java-sdk là gì?
aliyun/aliyun-openapi-java-sdk (aliyun/aliyun-openapi-java-sdk) là dự án Java trên GitHub. Theo mô tả gốc: The Alibaba Cloud V1.0 SDK will soon enter the Basic Security Maintenance phase and is no longer recommended for use. V2.0 SDK is available here: https://github.com/aliyun/alibabacloud-java-sdk
aliyun/aliyun-openapi-java-sdk so với các dự án Backend khác thế nào?
aliyun/aliyun-openapi-java-sdk được TopGit xếp vào nhóm Backend, với 1.4k sao GitHub và viết bằng Java. Xem trang chủ đề Backend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Cùng nhóm Backend còn repo nào?
aliyun/aliyun-openapi-java-sdk thuộc nhóm Backend trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về aliyun/aliyun-openapi-java-sdk ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/aliyun/aliyun-openapi-java-sdk là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về aliyun-openapi-java-sdk?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về aliyun-openapi-java-sdk.