Welcome to Baidu AI Cloud's core product, the Baidu AI Cloud Container Engine (CCE). The APIs in this document enable flexible management 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 legacy 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
Request method
Description
[/v2/cluster](CCE/API_V2 Reference/Cluster Related Interfaces.md#Create cluster)
POST
Create CCE K8S cluster
[/v2/clusters](CCE/API_V2 Reference/Cluster Related Interfaces.md#Cluster list)
GET
Query CCE K8S cluster list
[/v2/cluster/{clusterID}](CCE/API_V2 Reference/Cluster Related Interfaces.md#Cluster details)
GET
Query specified cluster details
[/v2/cluster/{clusterID}](CCE/API_V2 Reference/Cluster Related Interfaces.md#Delete cluster)
DELETE
Delete specified cluster
InstanceGroup API
API
Request method
Description
[/v2/cluster/{clusterID}/instancegroup](CCE/API_V2 Reference/InstanceGroup Related Interfaces.md#Create node group)
POST
Create node group
[/v2/cluster/{clusterID}/instancegroups](CCE/API_V2 Reference/InstanceGroup Related Interfaces.md#Retrieve the node group list of a cluster)
GET
Retrieve the node group list of a cluster
[/v2/cluster/{clusterID}/instancegroup/{instanceGroupID}](CCE/API_V2 Reference/InstanceGroup Related Interfaces.md#Retrieve node group details)
GET
Retrieve node group details
[/v2/cluster/{clusterID}/instancegroup/{instanceGroupID}/replicas](CCE/API_V2 Reference/InstanceGroup Related Interfaces.md#Modify replicas of nodes in the node group)
PUT
Modify replicas of nodes in the node group
[/v2/cluster/{clusterID}/instancegroup/{instanceGroupID}/autoscaler](CCE/API_V2 Reference/InstanceGroup Related Interfaces.md#Modify auto scaling configurations of nodes in the node group)
PUT
Modify auto scaling configurations of nodes in the node group
[/v2/cluster/{clusterID}/instancegroup/{instanceGroupID}](CCE/API_V2 Reference/InstanceGroup Related Interfaces.md#Delete node group)
DELETE
Delete node group
Instance API
API
Request method
Description
[/v2/cluster/{clusterID}/instances](CCE/API_V2 Reference/Instance Related Interfaces.md#Create node (cluster scale-up))
POST
Create node (cluster scale-up)
[/v2/cluster/{clusterID}/instance/{instanceID}](CCE/API_V2 Reference/Instance Related Interfaces.md#Retrieve node details)
GET
Retrieve node details
[/v2/cluster/{clusterID}/instances](CCE/API_V2 Reference/Instance Related Interfaces.md#Retrieve the node list of a cluster)
GET
Retrieve the node list of a cluster
[/v2/cluster/{clusterID}/instancegroup/{instanceGroupID}/instances](CCE/API_V2 Reference/Instance Related Interfaces.md#Get the node list of node group)
GET
Get the node list of node group
[/v2/cluster/{clusterID}/instance/{instanceID}](CCE/API_V2 Reference/Instance Related Interfaces.md#Update node attributes)
PUT
Update node attributes
[/v2/cluster/{clusterID}/instances](CCE/API_V2 Reference/Instance Related Interfaces.md#Delete node (cluster scale-down))
PUT
Delete node (cluster scale-down)
Network API
API
Request method
Description
[/v2/net/check_clusterip_cidr](CCE/API_V2 Reference/Network Related Interfaces.md#Check the ClusterIP network segment for the cluster)
POST
Check the ClusterIP network segment for the cluster
[/v2/net/check_container_network_cidr](CCE/API_V2 Reference/Network Related Interfaces.md#Check cluster container network segment)
POST
Check cluster container network segment
[/v2/net/recommend_clusterip_cidr](CCE/API_V2 Reference/Network Related Interfaces.md#Recommended ClusterIP network segment)
POST
Recommended ClusterIP network segment for the cluster
[/v2/net/recommend_container_cidr](CCE/API_V2 Reference/Network Related Interfaces.md#Recommended container network segment)
POST
Recommended container network segment for the cluster
Autoscaler API
API
Request method
Description
[/v2/autoscaler/{clusterID}](CCE/API_V2 Reference/Autoscaler Related Interfaces.md)
POST
Create cluster Autoscaler
[/v2/autoscaler/{clusterID}](CCE/API_V2 Reference/Autoscaler Related Interfaces.md#Query Autoscaler configuration)
GET
Query cluster Autoscaler configuration
[/v2/autoscaler/{clusterID}](CCE/API_V2 Reference/Autoscaler Related Interfaces.md#Updating Autoscaler configurations)
PUT
Update cluster Autoscaler configuration
Kubeconfig API
API
Request method
Description
[/v2/kubeconfig/{clusterID}/admin/{type}](CCE/API_V2 Reference/Kubeconfig Related Interfaces.md#Querying cluster AdminKubeConfig)