Alibaba Cloud SDK overview
You can use Alibaba Cloud software development kits (SDKs) to call OpenAPI and construct HTTPS requests to manage Key Management Service (KMS) resources. This topic describes the supported languages, download and installation information, and identity authentication methods for the SDKs.
Introduction to Alibaba Cloud SDKs
You can integrate an Alibaba Cloud SDK into your application to call OpenAPI through a KMS service Endpoint and perform the following operations:
-
Control plane operations: These include operations related to default keys and KMS instances, such as creating keys, creating credentials, creating KMS instances, and modifying key tags. All KMS control plane operations can only be performed using Alibaba Cloud SDKs.
-
Retrieve credential values: Retrieve the values of credentials from a KMS instance.
Some users of earlier KMS versions can create keys and credentials without purchasing a KMS instance. Applications can also integrate Alibaba Cloud SDKs to perform cryptographic operations with these keys and retrieve the values of these credentials. For more information about the specific API operations, see API overview.
Supported languages
The following table lists the supported languages and provides the download addresses and reference documents for each SDK.
|
Supported languages |
V2.0 SDK (Recommended) |
V1.0 SDK (Not recommended) |
|
Java |
Download address:
Reference: Getting Started |
Download address: aliyun-java-sdk-kms Reference: Getting Started |
|
Python |
Download address: alibabacloud_kms20160120 Reference: Getting Started |
Download address: aliyun-python-sdk-kms Reference: Getting Started |
|
C++ |
Download address: kms-20160120 Reference: None |
Download address: aliyun-openapi-cpp-sdk/kms Reference: None |
|
PHP |
Download address: alibabacloud/kms-20160120 Reference: Getting Started |
Download address: alibabacloud/kms Reference: Getting Started |
|
.NET(C#) |
Download address: AlibabaCloud.SDK.Kms20160120 Reference: Getting Started |
Download address: aliyun-net-sdk-kms Reference: Getting Started |
|
Go |
Download address: kms-20160120 Reference: Getting Started |
Download address: alibaba-cloud-sdk-go Reference: Getting Started |
|
TypeScript |
Download address: kms20160120 Reference: None |
Not provided |
|
Swift |
Download address: kms-20160120 Reference: None |
Not provided |
Identity authentication methods
When you use an Alibaba Cloud SDK, you must integrate authentication information to ensure that your application has permission to call OpenAPI. The following two identity authentication methods are supported:
-
The AccessKey of a Resource Access Management (RAM) user. For more information about how to create a RAM user and an AccessKey, see Create a RAM user and Create an AccessKey.
When you create the RAM user, select OpenAPI Call Access for the access mode.
-
A RAM role that an Alibaba Cloud service can assume. For more information, see Create a RAM role for a trusted Alibaba Cloud service.
When you create the RAM role, set the role type to Service Role and select the Alibaba Cloud service that hosts your application as the trusted service.
After you create a RAM user or RAM role, you must attach an access policy to it before it can access the corresponding KMS resources. For more information about access policies, see Custom policies for Key Management Service.