Overview
Welcome to use CCE (Cloud Container Engine), the core product of cloud platform. You can use the API described in this document to flexibly operate CCE services.
If you call the Baidu AI Cloud API for the first time, you can view API Getting Started Video Guide,to master the ability to call API quickly.
Difference from new API
If you create a cluster by using the old API or the "Create Cluster (Old Version)" option on the Web page, you shall continue to use the old API for operation;
If you create a cluster by using the new API or the "Create Cluster" option on the Web page, you shall continue to use the new API for operation.
Two API versions are not compatible with each other. At present, the maintenance is stopped for the old API. We strongly recommend that you use the new version of clusters.
Cluster Interface
Interface type | Request method | Description |
---|---|---|
/v1/cluster | POST | Create a k8s cluster |
/v1/cluster?status={status} | GET | Returns the k8s cluster information list of corresponding status |
/v1cluster{clusterUuid} | GET | Get the corresponding k8s cluster information according to the clusterUuid |
/v1cluster{clusterUuid} | DELETE | Delete a k8s cluster based on clusterUuid |
/v1/cluster?scalingUp | POST | Cluster expansion (add nodes for cluster) |
/v1/cluster?scalingDown | POST | Cluster scale-down (delete node for cluster) |
/v1/node?clusterUuid={clusterUuid} | GET | List of nodes in the cluster |
Image Interface
Interface | Request method | Description |
---|---|---|
/v1/1image/user | POST | Create image repository user |
/v1/image/user | GET | Get image repository user |
/v1/1image/user | PUT | Update image repository user password |
/v1/image/namespace | POST | Create a namespace |
/v1/image/namespace?user={user} | GET | Get namespace list based on user name |
/v1/image/namespace{namespace} | GET | Check if a namespace exists |
/v1/image/namespace{namespace} | DELETE | Delete a namespace |
/v1/image?user={user} | GET | Get image list based on user name |
/v1/image/meta | POST | Add a new image metadata |
/v1/image/meta | DELETE | Delete an image metadata |
/v1/image/meta | GET | Check if a image metadata exists |