Overview
Welcome to the core product of Baidu AI Cloud—Baidu AI Cloud Container Engine (CCE). The APIs outlined in this document allow for flexible operations of the CCE service.
When calling Baidu AI Cloud’s API for the first time, please watch the API Beginner's Video Guide to quickly master API calling capabilities.
Differences from new APIs
If you have created cluster by the legacy API or the Create Cluster (Legacy) option on the Web page, you should continue using the legacy API for operation.
If you have created cluster by the new API or the Create Cluster option on the Web page, you should continue using the new API for operation.
The two API versions are incompatible, and the legacy API is no longer maintained. We strongly recommend you to use the new version of cluster.
Cluster API
| API type | Request method | Description |
|---|---|---|
| [/v1/cluster](CCE/API Reference/Cluster Related Interfaces.md#Create cluster) | POST | Create a K8s cluster |
| [/v1/cluster?status={status}](CCE/API Reference/Cluster Related Interfaces.md#Cluster list) | GET | Return a list of K8s cluster information corresponding to the status |
| [/v1/cluster/{clusterUuid}](CCE/API Reference/Cluster Related Interfaces.md#Cluster details) | GET | Retrieve corresponding K8s cluster information based on clusterUuid |
| [/v1/cluster/{clusterUuid}](CCE/API Reference/Cluster Related Interfaces.md#Delete cluster) | DELETE | Delete a K8s cluster based on clusterUuid |
| [/v1/cluster?scalingUp](CCE/API Reference/Cluster Related Interfaces.md#Cluster scaling up) | POST | Cluster scale-up (adding nodes to the cluster) |
| [/v1/cluster?scalingDown](CCE/API Reference/Cluster Related Interfaces.md#Cluster scaling down) | POST | Cluster scale-down (deleting nodes from the Cluster) |
| [/v1/node?clusterUuid={clusterUuid}](CCE/API Reference/Cluster Related Interfaces.md#Node list) | GET | List of nodes in the cluster |
Image API
| API | Request method | Description |
|---|---|---|
| [/v1/image/user](CCE/API Reference/Image-related APIs.md#Create image registry user) | POST | Create image registry user |
| [/v1/image/user](CCE/API Reference/Image-related APIs.md#Retrieve image registry user) | GET | Retrieve image registry user |
| [/v1/image/user](CCE/API Reference/Image-related APIs.md#Update image registry user password) | PUT | Update image registry user password |
| [/v1/image/namespace](CCE/API Reference/Image-related APIs.md#Create namespace) | POST | Create namespace |
| [/v1/image/namespace?user={user}](CCE/API Reference/Image-related APIs.md#Retrieve the namespace list by username) | GET | Retrieve the namespace list by username |
| [/v1/image/namespace/{namespace}](CCE/API Reference/Image-related APIs.md#Check whether a namespace exists) | GET | Check whether a namespace exists |
| [/v1/image/namespace/{namespace}](CCE/API Reference/Image-related APIs.md#Delete a namespace) | DELETE | Delete a namespace |
| [/v1/image?user={user}](CCE/API Reference/Image-related APIs.md#Retrieve the image list by username) | GET | Retrieve the image list by username |
| [/v1/image/meta](CCE/API Reference/Image-related APIs.md#Add an image metadata) | POST | Add an image metadata |
| [/v1/image/meta](CCE/API Reference/Image-related APIs.md#Delete an image metadata) | DELETE | Delete an image metadata |
| [/v1/image/meta](CCE/API Reference/Image-related APIs.md#Check whether an image metadata exists) | GET | Check whether an image metadata exists |
