CLI Command Reference
Cluster Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Hibernating a Cluster | hcloud CCE HibernateCluster | This API is used to hibernate a running cluster. After a cluster is hibernated, master node resources stop being billed. | |
| Waking Up a Cluster | hcloud CCE AwakeCluster | This API is used to wake up a hibernated cluster. After the cluster is woken up, master node resources continue to be billed. | |
| Obtaining a Cluster Certificate | hcloud CCE CreateKubernetesClusterCert | This API is used to obtain a certificate of a specified cluster. | |
| Revoking a Cluster Certificate of a User | hcloud CCE RevokeKubernetesClusterCert | This API is used to revoke a certificate of a specified cluster. | |
| Rotating the Cluster Certificate of a User | hcloud CCE RotateClusterCredentials | This API is used to rotate certificates of a specified cluster. | |
| Listing Clusters in a Specified Project | hcloud CCE ListClusters | This API is used to obtain details about all clusters in a specified project. | |
| Creating a Cluster | hcloud CCE CreateCluster | This API is used to create an empty cluster, which has only master nodes but no worker nodes. After creating a cluster by calling this API, you can add nodes by creating nodes. | |
| Reading a Specified Cluster | hcloud CCE ShowCluster | This API is used to obtain details about a specified cluster. | |
| Updating a Specified Cluster | hcloud CCE UpdateCluster | This API is used to update information about a specified cluster. | |
| Deleting a Cluster | hcloud CCE DeleteCluster | This API is used to delete a specified cluster. | |
| Modifying Cluster Specifications | hcloud CCE ResizeCluster | This API is used to modify the specifications of a cluster. | |
| Querying a Job | hcloud CCE ShowJob | This API is used to obtain information about a job via the job ID returned after a query request is delivered. | |
| Binding/Unbinding Public API Server Address | hcloud CCE UpdateClusterEip | This API is used to bind or unbind the public API server address of the cluster by cluster ID. | |
| Obtaining Cluster Access Address | hcloud CCE ShowClusterEndpoints | This API is used to obtain the cluster access addresses by cluster ID, including the private IP (VIP returned by an HA cluster) and public IP. | |
| Obtaining the Global OBS Access Secret of a Cluster | hcloud CCE GetClusterLongAkskConfig | This API is used to obtain the global OBS access secret of a cluster. | |
| Updating the Global OBS Access Secret of a Cluster | hcloud CCE UpdateClusterLongAkskConfig | This API is used to update the global OBS access secret of a cluster. | |
| Obtaining the Global OBS Access Secret of a Project | hcloud CCE GetLongAkskConfig | This API is used to obtain the global OBS access secret of a project. | |
| Updating the Global OBS Access Secret of a Project | hcloud CCE UpdateLongAkskConfig | This API is used to update the global OBS access secret of a project. | |
| Obtaining Available Cluster Flavors | hcloud CCE GetClusterFlavorSpecs | This API is used to obtain the available cluster flavors. | |
| Obtaining the Feature Gate Status | hcloud CCE ShowFeatureGates | This API is used to obtain the feature gate status. | |
| Obtaining a Cluster's Logging Configurations | hcloud CCE ShowClusterConfig | This API is used to obtain LTS configurations reported by the cluster components. | |
| Configuring Cluster Logs | hcloud CCE UpdateClusterLogConfig | This API is used to select the master node components whose logs are reported to LTS. | |
| Obtaining the AZ List | hcloud CCE GetAvaliableZone | This API is used to obtain the AZ list. | |
| Obtaining Cluster Quotas | hcloud CCE GetClusterQuota | This API is used to obtain the cluster quotas. | |
| Obtaining Partition Details | hcloud CCE ShowPartition | This API is used to obtain partition details. | |
| Updating a Partition | hcloud CCE UpdatePartition | This API is used to update a partition. | |
| Obtaining the Partition List | hcloud CCE ListPartitions | This API is used to obtain the partition list. | |
| Creating a Partition | hcloud CCE CreatePartition | This API is used to create a partition. |
Node Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Listing All Nodes in a Cluster | hcloud CCE ListNodes | This API is used to obtain details about all nodes in a specified cluster with the cluster ID. | |
| Creating a Node | hcloud CCE CreateNode | This API is used to create a node in a specified cluster. | |
| Reading a Specified Node | hcloud CCE ShowNode | This API is used to obtain details about a specified node via the node ID. | |
| Updating a Specified Node | hcloud CCE UpdateNode | This API is used to update information about a specified node. | |
| Deleting a Node | hcloud CCE DeleteNode | This API is used to delete a specified node. | |
| Accepting a Node | hcloud CCE AddNode | This API is used to accept a node into a specified cluster. | |
| Rotating node certificates | hcloud CCE RotateNodeCert | This API is used to rotate node certificates in a specified cluster. Compensation mechanism for cluster certificate rotation: When the matching cluster certificate rotation API is used to rotate certificates, if the certificates of some nodes fail to be rotated, you can call this API to retry. | |
| Resetting a Node | hcloud CCE ResetNode | This API is used to reset a node in a specified cluster. | |
| Removing a Node | hcloud CCE RemoveNode | This API is used to remove a node from a specified cluster. | |
| Enabling Scale-In Protection for a Node. | hcloud CCE LockNodepoolNodeScaleDown | This API is used to enable scale-in protection for a node. A node with scale-in protection enabled cannot be removed by simply changing the number of nodes in the node pool. | |
| Disabling Scale-In Protection for a Node. | hcloud CCE UnlockNodepoolNodeScaleDown | This API is used to disable scale-in protection for a node. A node with scale-in protection disabled can be removed by changing the number of nodes in the node pool. Scale-in protection can be disabled only for pay-per-use nodes. | |
| Migrating a Node | hcloud CCE MigrateNode | This API is used to migrate a node from a specified cluster to another cluster. | |
| Changing the Billing Mode of a Node to Yearly/Monthly | hcloud CCE BatchChangeNodeToPeriod | This API is used to change the billing mode of a node from pay-per-use to yearly/monthly. | |
| Migrating a Node to a Custom Node Pool | hcloud CCE MigrateToNodePool | This API is used to migrate a node to a custom node pool. Only nodes in the default node pool can be migrated. Throughout the migration process, the node will remain unaffected and will not require resetting or restarting. Additionally, the original password will be preserved. | |
| sync node | hcloud CCE SyncNode | This API is used to synchronize nodes. | |
| Synchronizing Nodes in Batches | hcloud CCE BatchSyncNodes | This API is used to synchronize nodes in batches. | |
| Obtaining the Supernode List in a Cluster | hcloud CCE ListHyperNodes | This API is used to obtain details about all supernodes in a specified cluster. | |
| Managing a Node in a Customized Node Pool | hcloud CCE AddNodesToNodePool | This API is used to manage a node in a customized node pool of a cluster. Spot instances are not supported. |
Node Pool Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Listing All Node Pools in a Specified Cluster | hcloud CCE ListNodePools | This API is used to obtain information about all node pools in a specified cluster. | |
| Creating a Node Pool | hcloud CCE CreateNodePool | This API is used to create a node pool in a specified cluster. This API can be called only when the cluster is in the available, scaling-out, or scaling-in state. | |
| Reading a Specified Node Pool | hcloud CCE ShowNodePool | This API is used to obtain details about a specified node pool. | |
| Updating a Specified Node Pool | hcloud CCE UpdateNodePool | This API is used to update a specified node pool. This API can be called only when the cluster is in the available, scale-out, or scale-in state. | |
| Deleting a Node Pool | hcloud CCE DeleteNodePool | This API is used to delete a specified node pool. | |
| Node Pool Upgrade | hcloud CCE UpgradeNodePool | This API is used to synchronize the configurations of existing nodes in a node pool. | |
| Scaling a Node Pool | hcloud CCE ScaleNodePool | This API is used to scale in or out a node pool. |
Add-on Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Listing Add-on Instances | hcloud CCE ListAddonInstances | This API is used to list all add-on instances in the cluster. | |
| Installing an Add-on Instance | hcloud CCE CreateAddonInstance | This API is used to install an add-on instance by using an add-on template. | |
| Listing Add-on Templates | hcloud CCE ListAddonTemplates | This API is used to query add-on templates. | |
| Querying an Add-on Instance | hcloud CCE ShowAddonInstance | This API is used to obtain details about an add-on instance. | |
| Updating an Add-on Instance | hcloud CCE UpdateAddonInstance | This API is used to update an add-on instance. | |
| Deleting an Add-on Instance | hcloud CCE DeleteAddonInstance | This API is used to delete an add-on instance. | |
| Rolling Back an Add-on Instance | hcloud CCE RollbackAddonInstance | Roll back the add-on instance version to the source version. Only when the status.isRollbackable parameter is set to true, and the add-on instance is in the running, available, abnormal, upgradeFailed, or rollbackFailed state, the version can be rolled back to the source version. | |
| Creating Add-on Check Tasks in Batches | hcloud CCE BatchCreateAddonPrecheck | This API is used to create add-on check tasks in batches in a specified cluster. | |
| Obtaining the Add-on Check Task Results | hcloud CCE ListAddonPrecheckTasks | This API is used to obtain the results of the add-on check tasks in a cluster. |
Cluster Upgrade
| API Name | Command | Description | Operation |
|---|---|---|---|
| Cluster upgrade | hcloud CCE UpgradeCluster | Cluster upgrade | |
| Obtaining Cluster Upgrade Task Details | hcloud CCE ShowUpgradeClusterTask | Upgrade task ID, obtained from the uid field in the response body after the cluster upgrade API is called. | |
| Retrying a Cluster Upgrade Task | hcloud CCE RetryUpgradeClusterTask | Execute the failed cluster upgrade task again. | |
| Suspending a Cluster Upgrade Task | hcloud CCE PauseUpgradeClusterTask | Suspend the cluster upgrade task. | |
| Continue to execute the cluster upgrade task. | hcloud CCE ContinueUpgradeClusterTask | Resume the suspended cluster upgrade task. | |
| Enabling the Cluster Upgrade Process Booting Task | hcloud CCE CreateUpgradeWorkFlow | This API is used to create a cluster upgrade booting task. After the booting task is created by calling this API, start the check through the cluster pre-upgrade check. | |
| Obtaining a List of Upgrade Workflows | hcloud CCE ListUpgradeWorkFlows | Obtain a list of historical cluster upgrade booting tasks. | |
| Backing Up a Cluster | hcloud CCE CreateClusterMasterSnapshot | Cluster backup | |
| Obtaining a List of Cluster Upgrade Task Details | hcloud CCE ListUpgradeClusterTasks | Obtain a list of cluster upgrade task details. | |
| Performing a Pre-upgrade Check | hcloud CCE CreatePreCheck | Pre-upgrade check | |
| Obtaining Details About a Pre-upgrade Check Task of a Cluster | hcloud CCE ShowPreCheck | Obtain details about a pre-upgrade check task of a cluster. The task ID is obtained from the uid field in the response body after the cluster check API is called. | |
| Obtaining a List of Pre-upgrade Check Tasks of a Cluster | hcloud CCE ListPreCheckTasks | Obtain a list of pre-upgrade check tasks of a cluster. | |
| Obtaining the Cluster Upgrade Information | hcloud CCE ShowClusterUpgradeInfo | Obtain the cluster upgrade information. | |
| Obtaining a List of Cluster Backup Task Details | hcloud CCE ListClusterMasterSnapshotTasks | Obtain a list of cluster backup task details. | |
| Obtaining Details About a Specified Cluster Upgrade Task | hcloud CCE ShowUpgradeWorkFlow | This API is used to obtain details about an upgrade booting task based on the task ID. | |
| Updating the Status of a Specified Cluster Upgrade Booting Task | hcloud CCE UpgradeWorkFlowUpdate | This API is used to update the status of a specified cluster upgrade booting task. This API applies only to the upgrade cancellation process. | |
| Obtaining the Configuration of Cluster Upgrade Feature Gates | hcloud CCE ListClusterUpgradeFeatureGates | Obtain the configuration of cluster upgrade feature gates. | |
| Performing a Post-upgrade Check | hcloud CCE CreatePostCheck | Post-upgrade check, which is used by the customer to check the cluster status after an upgrade and provide feedback after services are restored. Use this API with the console. | |
| Obtaining a Cluster Upgrade Path | hcloud CCE ListClusterUpgradePaths | Obtain the cluster upgrade path. |
Quota Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying Resource Quotas | hcloud CCE ShowQuotas | This API is used to query CCE resource quotas. |
API Versions
| API Name | Command | Description | Operation |
|---|---|---|---|
| Listing API Versions | hcloud CCE ShowVersion | This API is used to query the list of API versions supported by CCE. |
Tag Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Adding Resource Tags to a Specified Cluster in Batches | hcloud CCE BatchCreateClusterTags | This API is used to add resource tags for a specified cluster in batches. | |
| Deleting Resource Tags of a Specified Cluster in Batches | hcloud CCE BatchDeleteClusterTags | This API is used to delete resource tags of a specified cluster in batches. | |
| Obtaining Resource Tags | hcloud CCE GetResourceTags | This API is used to obtain resource tags. | |
| Obtaining Custom Tags | hcloud CCE GetCustomizeTags | This API is used to obtain custom tags. | |
| Obtaining Node Labels | hcloud CCE GetLabels | This API is used to obtain the labels of all nodes in a cluster. |
Configuration Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining the Parameters That Can Be Configured for a Node Pool | hcloud CCE ShowNodePoolConfigurations | This API is used to obtain the parameters that can be configured for a node pool. | |
| Changing the Values of Configuration Parameters of a Node Pool | hcloud CCE UpdateNodePoolConfiguration | This API is used to change the values of parameter configurations of a node pool in the CCE cluster. | |
| Obtaining the Parameters That Can Be Configured for a Node Pool | hcloud CCE ShowNodePoolConfigurationDetails | This API is used to obtain the parameters that can be configured in a specified CCE node pool. | |
| Obtaining the List of Configurable Parameters Supported by a Cluster | hcloud CCE ShowClusterSupportConfiguration | This API is used to obtain the detailed configuration items supported by a cluster based on factors like the cluster version or type. It is specified during cluster creation. | |
| Obtaining the List of Parameters That Can Be Configured for a Cluster | hcloud CCE ShowClusterConfigurationDetails | This API is used to obtain the list of parameters that can be configured for a CCE cluster. |
Chart Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining a Chart List | hcloud CCE ListCharts | This API is used to obtain the chart list. | |
| Uploading a Chart | hcloud CCE UploadChart | This API is used to upload a chart. | |
| Obtaining a Chart | hcloud CCE ShowChart | This API is used to obtain a chart. | |
| Updating a Chart | hcloud CCE UpdateChart | This API is used to update a chart. | |
| Deleting a Chart | hcloud CCE DeleteChart | This API is used to delete a chart. | |
| Downloading a Chart | hcloud CCE DownloadChart | This API is used to download a chart. | |
| Obtaining Chart Values | hcloud CCE ShowChartValues | This API is used to obtain chart values. | |
| Obtaining the Quota of a User Chart | hcloud CCE ShowUserChartsQuotas | This API is used to obtain the quota of a user chart. | |
| Obtaining a Release List | hcloud CCE ListReleases | This API is used to obtain a release list. | |
| Creating a Release | hcloud CCE CreateRelease | This API is used to create a release. | |
| Obtaining a Release | hcloud CCE ShowRelease | This API is used to obtain a release. | |
| Updating a Release | hcloud CCE UpdateRelease | This API is used to update a release. | |
| Deleting a Release | hcloud CCE DeleteRelease | This API is used to delete a release. | |
| Obtaining Historical Records of a Release | hcloud CCE ShowReleaseHistory | This API is used to obtain historical records of a release. |
Permissions Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating an Access Policy | hcloud CCE CreateAccessPolicy | This API is used to create an access policy. | |
| Obtaining the Access Policy List | hcloud CCE ListAccessPolicy | This API is used to obtain the access policy list. | |
| Obtaining Access Policy Details | hcloud CCE GetAccessPolicy | This API is used to obtain an access policy. | |
| Updating an Access Policy | hcloud CCE UpdateAccessPolicy | This API is used to update an access policy. | |
| Deleting an Access Policy | hcloud CCE DeleteAccessPolicy | This API is used to delete an access policy. | |
| Create pod-identity association | hcloud CCE CreatePodIdentityAssociation | This API is used to create pod-identity association, in which service account in certain cluster is bound to agency | |
| Obtaining the pod-identity association list in certain cluster | hcloud CCE ListPodIdentityAssociations | The API is used to obtain the pod-identity association list in certain cluster | |
| Obtaining pod-identity association detail | hcloud CCE ShowPodIdentityAssociation | The API is used to obtain pod-identity association detail | |
| Update pod-identity association | hcloud CCE UpdatePodIdentityAssociation | The API is used to update agency attribute of a pod-identity association | |
| Delete pod-identity association | hcloud CCE DeletePodIdentityAssociation | The API is used to delete a pod-identity association | |
| Assume for temporary credentials of pod-identity association | hcloud CCE AssumeAgencyForPodIdentity | The API is used to assume for temporary credentials of pod-identity association |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot