CLI Command Reference
UCS Cluster
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying the Cluster List | hcloud UCS ShowClusterList | This API is used to query the cluster list. | |
| Registering a Cluster | hcloud UCS RegisterCluster | This API is used to register a cluster. Third-party clusters and CCE clusters can be registered. | |
| Querying a Cluster | hcloud UCS ShowCluster | This API is used to query a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permission on the corresponding cluster. Otherwise, the authentication fails. | |
| Updating a Cluster | hcloud UCS UpdateCluster | This API is used to update a cluster. Currently, only the country/city of attached clusters and on-premises clusters, and the number of worker nodes in a multi-cloud cluster can be updated. | |
| Deregistering a Cluster | hcloud UCS DeleteCluster | This API is used to deregister a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permission on the corresponding cluster. Otherwise, the authentication fails. | |
| Querying Cluster Access Information | hcloud UCS ShowClusterAccessInfo | This API is used to query the cluster access information. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the permission to query the corresponding cluster. Otherwise, the authentication fails. The agent certificate can be downloaded only once. This API is only used to query the access information of third-party clusters. If a CCE cluster ID is transferred, 400 will be returned. | |
| Activating a Cluster | hcloud UCS RetryClusterActivation | This API is used to activate a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permission on the corresponding cluster. Otherwise, the authentication fails. | |
| Querying the CCE Cluster List | hcloud UCS ListManagedClusters | This API is used to query CCE cluster list. | |
| Associating a Cluster with Permission Policies | hcloud UCS UpdateClusterRules | This API is used to associate a cluster with permission policies. | |
| Querying the Cluster Version List | hcloud UCS ListRegisteredClusterVersions | This API is used to query the list of cluster versions that are supported by UCS. |
Fleet
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining the Fleet List | hcloud UCS ListClusterGroup | This API is used to list all fleets. | |
| Registering a Fleet | hcloud UCS RegisterClusterGroup | This API is used to create a fleet. You can select clusters during fleet creation. | |
| Querying a Fleet | hcloud UCS ShowClusterGroup | This API is used to query a fleet. | |
| Deleting a Fleet | hcloud UCS DeleteClusterGroup | This API is used to delete a fleet. A fleet can only be deleted when there are no clusters in it. To delete a fleet, remove the clusters from the fleet first. The cluster IDs must comply with the Kubernetes UUID format rules, and you must have the operation permission on the clusters. Otherwise, the authentication fails. | |
| Adding Clusters to a Fleet | hcloud UCS UpdateClusterGroupAssociatedClusters | This API is used to add clusters to a fleet. One or more clusters can be added at the same time. This API cannot be used to remove clusters from a fleet. | |
| Updating Permission Policies Associated with a Fleet | hcloud UCS UpdateClusterGroupAssociatedRules | This API is used to update the permission policies associated with a fleet. | |
| Updating Fleet Description | hcloud UCS UpdateClusterGroup | This API is used to update the description of a fleet. You must have the permission to update the fleet. | |
| Adding a Cluster to a Fleet | hcloud UCS JoinGroup | This API is used to add a cluster to a fleet. | |
| Removing a Cluster from a Fleet | hcloud UCS LeaveGroup | This API is used to remove a cluster from a fleet. | |
| Querying Federation Enabling Progress | hcloud UCS ShowFederationProgress | This API is used to query the federation enabling progress. | |
| Enabling Fleet Federation | hcloud UCS EnableFederation | Enabling Fleet Federation | |
| Disabling Cluster Federation | hcloud UCS DisableFederation | This API is used to disable cluster federation for a fleet. | |
| Updating the Zone Associated with the Federation of a Fleet | hcloud UCS UpdateClusterGroupAssociatedZones | This API is used to update the zone associated with the federation of a fleet. | |
| Creating a Federation Connection and Downloading kubeconfig | hcloud UCS CreateFederationCert | This API is used to create a VPC endpoint for connecting to the federation API server and downloading kubeconfig of the federation API server after federation is enabled for a fleet. | |
| Creating a Federation Connection | hcloud UCS CreateFederationConnection | This API is used to create a VPC endpoint for connecting to the federation API server after federation is enabled for a fleet. | |
| Downloading Federation kubeconfig | hcloud UCS DownloadFederationKubeconfig | This API is used to download the kubeconfig file after the federation is enabled for a fleet and the federation connection is created. |
Permissions Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying the Permission Policy List | hcloud UCS ListRule | This API is used to query the permission policy list. | |
| Creating a Permission Policy | hcloud UCS CreateRule | This API is used to create a permission policy. | |
| Updating a Permission Policy | hcloud UCS UpdateRule | Updating a permission policy | |
| Deleting a Permission Policy | hcloud UCS DeleteRule | This API is used to delete a permission policy. |
Add-on Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining an Add-on Instance | hcloud UCS ShowAddonInstance | This API is used to obtain the add-on instance. | |
| Updating an Add-on Instance | hcloud UCS UpdateAddonInstance | This API is used to update an add-on instance. | |
| Uninstalling an Add-on Instance | hcloud UCS DeleteAddonInstance | This API is used to uninstall an add-on instance. | |
| Obtaining the Add-on Instance List | hcloud UCS ListAddonInstances | This API is used to obtain the add-on instance list. | |
| Installing an Add-on Instance | hcloud UCS CreateAddonInstance | This API is used to install an add-on instance. | |
| Obtaining the Add-on Template List | hcloud UCS ListAddonTemplates | This API is used to obtain the add-on template list. |
Configuration Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining Information About All Configuration Sets | hcloud UCS ListConfigSets | This API is used to obtain information about all configuration sets. | |
| Creating a Configuration Set | hcloud UCS CreateConfigSet | This API is used to create a configuration set. | |
| Obtaining Details About a Configuration Set | hcloud UCS ShowConfigSet | This API is used to obtain details about a configuration set, including the repository source information. | |
| Updating a Configuration Set | hcloud UCS UpdateConfigSet | This API is used to update a configuration set, excluding the repository source. | |
| Deleting a Configuration Set | hcloud UCS DeleteConfigSet | This API is used to delete a configuration set, not the repository source. | |
| Collecting Statistics on the Statuses of All Configuration Sets of a User | hcloud UCS ShowGitopsStatistics | This API is used to collect statistics on the statuses of all configuration sets of a user. | |
| Obtaining the Repository Source List | hcloud UCS ListRepos | This API is used to obtain the repository source list. | |
| Creating a Repository Source | hcloud UCS CreateRepo | This API is used to create a repository source. | |
| Updating a Repository Source | hcloud UCS UpdateRepo | This API is used to update a repository source. | |
| Deleting a Repository Source | hcloud UCS DeleteRepo | This API is used to delete a repository source. | |
| Querying Service Configuration | hcloud UCS ListServerConfigs | This API is used to obtain the global configuration of each cluster type. |
Policy Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining the Policy Instance List | hcloud UCS ListPolicyInstances | This API is used to obtain the policy instance list. | |
| Obtaining the Policy Definition List | hcloud UCS ListPolicyDefinitions | This API is used to obtain the policy definition list. | |
| Obtaining a Policy Definition | hcloud UCS ShowPolicyDefinition | This API is used to obtain a policy definition. | |
| Updating a Policy Definition | hcloud UCS UpdatePolicyDefination | This API is used to update a policy definition. | |
| Obtaining a Specific Policy Instance | hcloud UCS ShowPolicyInstance | This API is used to obtain a specific policy instance. | |
| Updating a Specific Policy Instance | hcloud UCS UpdatePolicyInstance | This API is used to update a specific policy instance. | |
| Deleting a Specific Policy Instance | hcloud UCS DeletePolicyInstance | This API is used to delete a specific policy instance. | |
| Obtaining the Policy Instance Job List | hcloud UCS ListPolicyJobs | This API is used to obtain the policy instance job list. | |
| Obtaining the Job Related to a Specific Policy Instance | hcloud UCS ShowPolicyJob | This API is used to obtain the job related to a specific policy instance. |
Traffic Management
Quota Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining Quota Information | hcloud UCS ShowQuota | This API is used to obtain UCS quota information. |
UCS Clusters
| API Name | Command | Description | Operation |
|---|---|---|---|
| Enabling the Policy Center for a Cluster | hcloud UCS EnableClusterPolicy | This API is used to enable the policy center for a cluster. | |
| Disabling the Policy Center of a Cluster | hcloud UCS DisableClusterPolicy | This API is used to disable the policy center of a cluster. | |
| Obtaining the Progress of Enabling GitOps | hcloud UCS ShowGitOpsStatus | This API is used to obtain the progress of enabling GitOps. | |
| Enabling the GitOps Add-on | hcloud UCS EnableGitOps | This API is used to enable the GitOps add-on. | |
| Uninstalling the GitOps add-on from a Cluster | hcloud UCS DisableGitOps | This API is used to uninstall the GitOps add-on from a cluster. | |
| Creating a Cluster Policy Instance | hcloud UCS CreateClusterPolicyInstance | This API is used to create a cluster policy instance. | |
| Obtaining the Configuration Required for Cluster Installation | hcloud UCS CreateClusterConf | This API is used to obtain the configuration required for cluster installation (currently, only for on-premises clusters). | |
| Obtaining the kubeconfig of a Cluster | hcloud UCS CreateClusterKubeconfig | This API is used to obtain the kubeconfig of a cluster. |
Fleets
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying a Federated Workload | hcloud UCS ShowProxyUnitedWorkload | This API is used to query a federated workload. | |
| Creating a Federated Workload | hcloud UCS CreateProxyUnitedWorkload | This API is used to create a federated workload. | |
| Updating a Federated Workload | hcloud UCS UpdateProxyUnitedWorkload | This API is used to update a federated workload. | |
| Deleting a Federated Workload | hcloud UCS DeleteProxyUnitedWorkload | This API is used to delete a federated workload. | |
| Enabling the Policy Center for a Fleet | hcloud UCS EnableClusterGroupPolicy | This API is used to enable the policy center for a fleet. | |
| Disabling the Policy Center of a Fleet | hcloud UCS DisableClusterGroupPolicy | This API is used to disable the policy center of a fleet. | |
| Creating a Fleet Policy Instance | hcloud UCS CreateClusterGroupPolicyInstance | This API is used to create a fleet policy instance. | |
| Upgrading the Federation | hcloud UCS UpgradeFederation | This API is used to upgrade the federation version. |
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