Cloud Config provides a visual console and also offers interaction methods such as OpenAPI, the Alibaba Cloud SDK, the Alibaba Cloud CLI, and Terraform. To improve your development efficiency, we recommend that you select the operation and integration method that best suits your requirements.
OpenAPI Explorer
Alibaba Cloud provides OpenAPI Explorer to help you quickly learn and use cloud service APIs. This all-in-one platform combines API search, documentation, online debugging, SDK generation, code samples, error diagnosis, and call statistics. You can use OpenAPI Explorer to call APIs for various Alibaba Cloud services and view the requests and responses. The platform also automatically generates SDK sample code to help you get started quickly. For more information, see What is OpenAPI.
Version
Alibaba Cloud APIs are versioned to manage different releases. Cloud Config currently supports the API version 2020-09-07. This value is a version identifier, not a date. The APIs under this version always provide the latest data and were not frozen on 2020-09-07.
|
Version |
Description |
|
Recommended |
Online debugging
You can use OpenAPI Explorer to debug Cloud Config APIs online. Before calling an API, you need to know the API version, endpoints, and available integration methods.
For example, to debug the ListSupportedProducts operation, select it from the left-side navigation pane in OpenAPI Explorer. In the center panel, select a region, such as China (Shanghai), from the Service endpoint drop-down list. In the parameter section, enter a string for NextToken for pagination and an integer up to 500 for MaxResults. Click Send Request to debug the API.
Debug portal
To debug the Cloud Config APIs, go to: Cloud Config API Debugging
Endpoints
The endpoint for Cloud Config depends on your account's site, not the region. The following table lists the available endpoints.
|
Site |
Region |
Region ID |
Public endpoint |
VPC endpoint |
IPv6 |
|
China site |
China (Shanghai) |
cn-shanghai |
config.cn-shanghai.aliyuncs.com |
config-vpc.cn-shanghai.aliyuncs.com |
config-dualstack.cn-shanghai.aliyuncs.com |
|
International site |
Singapore |
ap-southeast-1 |
config.ap-southeast-1.aliyuncs.com |
config-vpc.ap-southeast-1.aliyuncs.com |
Not supported |
User identities
When you log on to OpenAPI Explorer with your Alibaba Cloud account, API calls use that account by default. Since an Alibaba Cloud account has full access to your resources, this poses a security risk. We strongly recommend creating and using a RAM user with limited permissions for API calls and daily operations. You must grant the RAM user the necessary permissions to manage Cloud Config resources before making calls. For more information, see Use RAM for access control.
|
Identity |
Supported |
|
Supported |
|
|
RAM user (recommended) |
Supported |
|
RAM role (recommended) |
Supported |
More information
Integration methods
We recommend using an SDK to call APIs. SDKs offer the easiest integration and the most comprehensive support.
Supported methods
|
Method |
Supported |
|
Alibaba Cloud SDK (recommended) |
Supported |
|
Supported |
|
|
Supported |
|
|
Not supported |
|
|
Supported |
-
Alibaba Cloud SDK
-
Alibaba Cloud provides SDKs for multiple programming languages, including Java, C#, Go, Python, Node.js/TypeScript, PHP, and C++. You can integrate an SDK into your application to call APIs directly. The SDKs simplify development by handling common tasks such as request signing, timeouts, and retries, and by returning structured response objects. For more information, see Alibaba Cloud SDK.
-
You can use the Alibaba Cloud SDK to call Cloud Config APIs. For a list of supported languages and instructions on how to install dependencies, see Cloud Config SDK.
-
-
Alibaba Cloud CLI
-
The Alibaba Cloud CLI (Command Line Interface) is a general-purpose tool built on our APIs for managing your Alibaba Cloud services from the command line. You can use the Alibaba Cloud CLI to interact with your services and automate tasks in scripts. For more information, see What is the Alibaba Cloud CLI?
-
You can use the Alibaba Cloud CLI to call Cloud Config APIs. For details, see CLI integration examples.
-
-
Terraform
-
Terraform is an open source tool that allows you to safely and efficiently preview, configure, and manage cloud infrastructure and resources. It operates similarly to Resource Orchestration Service (ROS). It converts templates into internal data to make OpenAPI calls. For more information, see What is Terraform on Alibaba Cloud?
-
Terraform supports orchestrating Cloud Config. For the supported resource types and data sources, see Cloud Config Terraform resources and data sources.
-
To get started quickly with Terraform to orchestrate Cloud Config, see Use Terraform to create a delivery channel.
-
-
Resource Orchestration Service (ROS)
-
Resource Orchestration Service (ROS) is an Alibaba Cloud service that simplifies cloud resource management. Developers and administrators can write templates to define the required Alibaba Cloud resources, such as ECS instances and RDS database instances, and the dependencies between resources. The ROS orchestration engine then automatically creates and configures all resources based on the template, which enables automated deployment and O&M. For more information, see What is Resource Orchestration Service.
-
Resource Orchestration Service (ROS) does not support calling Cloud Config APIs.
-
-
Direct HTTP requests
If you make direct HTTP requests, you must implement the signature algorithm, construct the request, and make the HTTP call. For more information about the signature mechanism, see Cloud Config API overview and V3 request body and signature mechanism.
Usage notes
If a Cloud Config API call returns an error, use the returned error code to check your request parameters and values.
You can also run self-service diagnostics on the Alibaba Cloud OpenAPI Diagnostic Platform by using the request ID or SDK error message from the response.
FAQ
-
Cloud Config is a service that helps you audit your cloud resources. It allows you to track configuration history and evaluate compliance against your policies. This helps you monitor your infrastructure and maintain continuous compliance. For more information, see What is Cloud Config?
-
In addition to Java, SDKs are available for C#, Go, Python, Node.js/TypeScript, PHP, and C++. For more information, see SDK reference.