CLI Command Reference (V1)
Cluster Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating a Cluster | hcloud CSS CreateCluster/v1 | This API is used to create a cluster. | |
| Querying the Cluster List | hcloud CSS ListClustersDetails/v1 | This API is used to query and display the cluster list and cluster status. | |
| Querying Cluster Details | hcloud CSS ShowClusterDetail/v1 | This API is used to query and display the details of a cluster. | |
| Deleting a Cluster | hcloud CSS DeleteCluster/v1 | This API is used to delete a cluster. All resources of the deleted cluster, including customer data, will be released. If you want to retain the data in a customer cluster, create a snapshot before deleting the cluster. | |
| Changing the Cluster Billing Mode from Pay-per-use to Yearly/Monthly | hcloud CSS UpdateOndemandClusterToPeriod/v1 | This API is used to change the cluster billing mode from pay-per-use to yearly/monthly. | |
| Renaming a Cluster | hcloud CSS UpdateClusterName/v1 | This API is used to change the name of a cluster. | |
| Changing the Password of a Cluster | hcloud CSS ResetPassword/v1 | This API is used to change the password of a cluster. | |
| Restarting a Cluster | hcloud CSS RestartCluster/v1 | This API is used to restart a cluster. Services will be interrupted during the restart. | |
| Scaling Out a Cluster | hcloud CSS UpdateExtendCluster/v1 | This API is used to add instances to a cluster (only Elasticsearch instances can be added). This API can only scale out clusters that only have common nodes. Clusters with master, client, or cold data nodes cannot use this API. | |
| Adding Instances and Expanding Instance Storage Capacity | hcloud CSS UpdateExtendInstanceStorage/v1 | This API is used to add instances of different types and expand instance storage capacity in a cluster. This API is available for clusters with master, client, or cold data nodes. | |
| Changing Node Specifications | hcloud CSS UpdateFlavor/v1 | This API is used to modify the specifications of a cluster. Only the nodes of the ESS type can be modified. | |
| Querying All Tags | hcloud CSS ListClustersTags/v1 | This API is used to query all tags in a specified region. | |
| Querying Tags of a Specified Cluster | hcloud CSS ShowClusterTag/v1 | This API is used to query the tags of a specified cluster. | |
| Adding Tags to a Cluster | hcloud CSS CreateClustersTags/v1 | This API is used to add tags to a cluster. | |
| Deleting a Cluster Tag | hcloud CSS DeleteClustersTags/v1 | This API is used to delete a cluster tag. | |
| Adding or Deleting Cluster Tags in Batches | hcloud CSS UpdateBatchClustersTags/v1 | This API is used to add tags to or delete tags from a cluster in batches. | |
| Changing the Specifications of a Specified Node Type | hcloud CSS UpdateFlavorByType/v1 | This API is used to modify cluster specifications. The following node types can be changed: | |
| Scaling In a Cluster by Removing a Specific Node | hcloud CSS UpdateShrinkNodes/v1 | This API is used to scale in a cluster by removing a specified node. | |
| Scaling In Nodes of a Specific Type | hcloud CSS UpdateShrinkCluster/v1 | This API is used to remove instances of different types and reduce instance storage capacity in a cluster. | |
| Downloading a Security Certificate | hcloud CSS DownloadCert/v1 | This API is used to download a security certificate. | |
| Replacing a Node | hcloud CSS UpdateInstance/v1 | This API is used to replace a failed node. | |
| Configuring the Security Mode. | hcloud CSS ChangeMode/v1 | This API is used to configure the security mode of a cluster. | |
| Adding Independent Masters and Clients | hcloud CSS AddIndependentNode/v1 | If you have not enabled the master or client node when creating a cluster, you can call this API to add one. | |
| Upgrading a Cluster Kernel | hcloud CSS UpgradeCore/v1 | This API is used to upgrade Elasticsearch from an earlier version to a later version or the same version. | |
| Obtain the upgradable target image ID | hcloud CSS ListImages/v1 | This API is used to obtain the ID of an image that can be upgraded in the current cluster. | |
| Obtain detailed information on cluster upgrades or AZ switching. | hcloud CSS UpgradeDetail/v1 | The upgrade takes a long time. You can call this API to check the upgrade progress on a node. | |
| Retrying a Failed Upgrade Task | hcloud CSS RetryUpgradeTask/v1 | The upgrade may fail due to network problems. In this case, you can call this API to retry. | |
| Changing the Security Group | hcloud CSS ChangeSecurityGroup/v1 | This API is used to change the security group after a cluster is created. | |
| Changing the AZ of a Cluster Instance | hcloud CSS UpdateAzByInstanceType/v1 | This API is used to change the AZ by specifying node types. | |
| Switching Cluster Subnets | hcloud CSS ChangeClusterSubnet/v1 | This interface can be used to bind new subnets to added nodes in scenarios such as switching cluster subnets, expanding clusters, or adding nodes after the cluster has been successfully created. | |
| Updating Cluster Routes | hcloud CSS UpdateRoute/v1 | This interface is used to update cluster routing. | |
| Obtaining Cluster Routes | hcloud CSS ListRoutes/v1 | This interface is used to obtain cluster routing information. | |
| Automatically create an agency. | hcloud CSS CreateAgency/v1 | Automatically create an agency and assign necessary permissions when the CSS pre-configured agency does not exist. | |
| Query cluster disk usage. | hcloud CSS ShowClusterVolumeUsage/v1 | Query disk usage of the cluster. |
Specifications Query
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining the Instance Specifications List | hcloud CSS ListFlavors/v1 | This API is used to query and display the IDs of supported instance specifications. | |
| Query the list of changeable specifications for a specified cluster. | hcloud CSS ShowResizeFlavors/v1 | Query the specifications to which a specified cluster can be changed. | |
| Query specification details. | hcloud CSS ShowFlavorDetail/v1 | Query detailed information about a specification. | |
| Query specifications supported by a specified engine. | hcloud CSS ShowDataStoreFlavorDetail/v1 | Query specifications supported by a specified engine. | |
| Lists disk types. | hcloud CSS ListDiskType/v1 | Obtain the disk types supported by each AZ. |
Word Dictionary Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Loading Custom Word Dictionaries | hcloud CSS CreateLoadIkThesaurus/v1 | This API is used to load a custom word dictionary stored in OBS. | |
| Querying the Status of a Custom Word Dictionary | hcloud CSS ShowIkThesaurus/v1 | This API is used to query the loading status of a custom word dictionary. | |
| Disabling a Word Dictionary | hcloud CSS DeleteIkThesaurus/v1 | This API is used to delete custom word dictionaries. |
Kibana Public Network Access
| API Name | Command | Description | Operation |
|---|---|---|---|
| Enabling Kibana Public Access | hcloud CSS StartKibanaPublic/v1 | This API is used to enable public network access to Kibana. | |
| Disabling Kibana Public Access | hcloud CSS UpdateCloseKibana/v1 | This API is used to disable public network access to Kibana.Yearly/Monthly clusters cannot disable public access using APIs. | |
| Modifying the Kibana Public Network Bandwidth | hcloud CSS UpdateAlterKibana/v1 | This API is used to modify the public network bandwidth of Kibana. | |
| Modifying Kibana Public Access Control | hcloud CSS UpdatePublicKibanaWhitelist/v1 | This API is used to modify the Kibana access permission by modifying the Kibana whitelist. | |
| Disabling Kibana Public Network Access Control | hcloud CSS StopPublicKibanaWhitelist/v1 | This API is used to disable public network access control for Kibana. |
Logstash
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating a Configuration File | hcloud CSS CreateCnf/v1 | This API is used to create a configuration file. | |
| Updating a Configuration File | hcloud CSS UpdateCnf/v1 | This API is used to update a configuration file. | |
| Starting Pipeline Data Migration | hcloud CSS StartPipeline/v1 | This API is used to start pipeline data migration. | |
| Stopping Pipeline Data Migration | hcloud CSS StopPipeline/v1 | This API is used to stop pipeline data migration. | |
| Adding a Custom Template | hcloud CSS AddFavorite/v1 | This API is used to add a custom template. | |
| Performing a Connectivity Test | hcloud CSS StartConnectivityTest/v1 | This API is used to test connectivity. | |
| Querying the Template List | hcloud CSS ListTemplates/v1 | This API is used to query the template list. | |
| Querying the Configuration File List | hcloud CSS ListConfs/v1 | This API is used to query the configuration file list. | |
| Querying the Pipeline List | hcloud CSS ListPipelines/v1 | This API is used to query the pipeline list. | |
| Querying Operation Records | hcloud CSS ListActions/v1 | This API is used to query operation records. | |
| Querying the Configuration File Content | hcloud CSS ShowGetConfDetail/v1 | This API is used to query the configuration file content. | |
| Deleting a Configuration File | hcloud CSS DeleteConf/v1 | This API is used to delete a configuration file. | |
| Deleting a Custom Template | hcloud CSS DeleteTemplate/v1 | This API is used to delete a custom template. | |
| Hot start pipeline to migrate data. | hcloud CSS StartHotPipeline/v1 | This interface is used for hot-starting pipeline data migration. | |
| Hot stop pipeline data migration. | hcloud CSS StopHotPipeline/v1 | This interface is used to hot-stop pipeline data migration. | |
| Uploading a Certificate File | hcloud CSS UploadCerts/v1 | This interface is used for uploading certificate files. | |
| Querying the Certificate List | hcloud CSS ListCerts/v1 | This interface is used to query the certificate list. | |
| Querying Certificate File Information | hcloud CSS ShowCertsDetail/v1 | This interface is used to query certificate file information. | |
| Deleting a Certificate File | hcloud CSS DeleteCerts/v1 | This interface is used to delete certificate files. | |
| Forcibly restart cluster VMs | hcloud CSS RebootCluster/v1 | The cluster will be unavailable during the restart process. Please proceed with caution. For clusters that are currently in operation, the restart process will automatically stop the Logstash process. If the "Keep Alive" setting for the pipeline list is set to "No," all running pipelines will be set to a stopped state. If the "Keep Alive" setting is set to "Yes," it will trigger the Logstash process recovery mechanism, setting the status of the pipelines to "Recovering." If the Logstash process is restarted within ten minutes, the pipeline status will return to "Working"; otherwise, it will be set to "Failed. |
Log Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Enable log backup or log collection function | hcloud CSS StartLogs/v1 | This interface is used to enable or disable the log backup or log collection function for the cluster. | |
| Disabling the Log Function | hcloud CSS StopLogs/v1 | This API is used to disable the log function. | |
| Querying the Job List | hcloud CSS ListLogsJob/v1 | This API is used to query the job list in the logs of a cluster. | |
| Querying Basic Log Configurations | hcloud CSS ShowGetLogSetting/v1 | This API is used to query basic log configurations. | |
| Modifying Basic Log Configurations | hcloud CSS UpdateLogSetting/v1 | This API is used to modify basic log configurations. | |
| Enabling the Automatic Log Backup Policy | hcloud CSS StartLogAutoBackupPolicy/v1 | This API is used to enable the automatic log backup policy. | |
| Disabling the Automatic Log Backup Policy | hcloud CSS StopLogAutoBackupPolicy/v1 | This API is used to disable the automatic log backup policy. | |
| Backing Up Logs | hcloud CSS CreateLogBackup/v1 | This API is used to back up logs. | |
| Searching for Logs | hcloud CSS ShowLogBackup/v1 | This API is used to query log information. | |
| Connectivity testing. | hcloud CSS StartTargetClusterConnectivityTest/v1 | This interface is used for connectivity testing. |
Public Network Access
| API Name | Command | Description | Operation |
|---|---|---|---|
| Enabling Public Network Access | hcloud CSS CreateBindPublic/v1 | This API is used to enable public network access. | |
| Disabling Public Network Access | hcloud CSS UpdateUnbindPublic/v1 | This API is used to disable public network access to Kibana.Yearly/Monthly clusters cannot disable Kibana public access using APIs. | |
| Modifying Public Network Access Bandwidth | hcloud CSS UpdatePublicBandWidth/v1 | This API is used to modify the public network access bandwidth. | |
| Enabling the Public Network Access Control Whitelist | hcloud CSS StartPublicWhitelist/v1 | This API is used to enable the public network access control whitelist. | |
| Disabling the Public Network Access Control Whitelist | hcloud CSS StopPublicWhitelist/v1 | This API is used to disable the public network access control whitelist. |
Snapshot Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Automatically Setting Basic Configurations of a Cluster Snapshot | hcloud CSS StartAutoSetting/v1 | This API is used to automatically set basic configurations for a cluster snapshot, including configuring OBS buckets and IAM agency. | |
| Modifying Basic Configurations of a Cluster Snapshot | hcloud CSS UpdateSnapshotSetting/v1 | This API is used to modify the basic configurations for a cluster snapshot, including OBS buckets and IAM agency. | |
| Manually Creating a Snapshot | hcloud CSS CreateSnapshot/v1 | This API is used to manually create a snapshot. | |
| Restoring a Snapshot | hcloud CSS RestoreSnapshot/v1 | This API is used to manually restore a snapshot. | |
| Deleting a Snapshot | hcloud CSS DeleteSnapshot/v1 | This API is used to delete a snapshot. | |
| Configuring the Automatic Snapshot Creation Policy | hcloud CSS CreateAutoCreatePolicy/v1 | This API is used to configure automatic snapshot creation. By default, a snapshot is created every day. | |
| Querying the Automatic Snapshot Creation Policy | hcloud CSS ShowAutoCreatePolicy/v1 | This API is used to query the automatic snapshot creation policy. | |
| Querying a Snapshot List | hcloud CSS ListSnapshots/v1 | This API is used to query all the snapshots of a cluster. | |
| Disabling the Snapshot Function | hcloud CSS StopSnapshot/v1 | This API is used to disable the snapshot function. |
VPC Endpoint
| API Name | Command | Description | Operation |
|---|---|---|---|
| Enabling the VPC Endpoint Service | hcloud CSS StartVpecp/v1 | This API is used to enable the VPC endpoint service. | |
| Disabling the VPC Endpoint Service | hcloud CSS StopVpecp/v1 | This API is used to disable the VPC endpoint service. | |
| Obtaining an Endpoint Connection | hcloud CSS ShowVpcepConnection/v1 | This API is used to obtain a VPC endpoint connection. | |
| Updating an Endpoint Connection | hcloud CSS UpdateVpcepConnection/v1 | This API is used to update an endpoint connection. | |
| Modifying the Endpoint Service Whitelist | hcloud CSS UpdateVpcepWhitelist/v1 | This API is used to modify the endpoint service whitelist. |
Parameter Configuration
| API Name | Command | Description | Operation |
|---|---|---|---|
| Modifying Cluster Parameters | hcloud CSS UpdateYmls/v1 | This API is used to modify the parameter settings of a cluster. | |
| Obtaining the Task List of Parameter Configurations | hcloud CSS ListYmlsJob/v1 | This API is used to obtain the parameter configuration task list of a cluster. | |
| Obtaining the Parameter Configuration List | hcloud CSS ListYmls/v1 | This API is used to obtain the parameter configuration list of the current cluster. |
Load Balancing
| API Name | Command | Description | Operation |
|---|---|---|---|
| Query the ELBv3 load balancers supported by the cluster | hcloud CSS ListElbs/v1 | Display the ELBv3 load balancers supported by the query cluster. | |
| Enable or disable the load balancer for the cluster | hcloud CSS EnableOrDisableElb/v1 | This interface enables or disables the load balancer for the cluster. | |
| ES listener configuration. | hcloud CSS CreateElbListener/v1 | This interface is used for configuring the ES listener. | |
| Retrieve the load balancer information of the cluster | hcloud CSS ShowElbDetail/v1 | This interface is used to retrieve the load balancer information of the cluster. | |
| Update Cluster Load Balancer Listener | hcloud CSS UpdateEsListener/v1 | This interface is used to update the cluster load balancer listener. | |
| Querying the Certificate List | hcloud CSS ListElbCerts/v1 | This interface is used to query the certificate list. |
Intelligent Operations
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining the Intelligent O&M Task List and Details | hcloud CSS ListAiOps/v1 | CSS provides intelligent O&M functions to detect potential risks in clusters. After the detection task is complete, you can view details about the risk items of the cluster and handle the risks in a timely manner based on the risk suggestions. This interface is used to obtain the intelligent O&M task list and details. | |
| Create a cluster detection task. | hcloud CSS CreateAiOps/v1 | This interface is used to create a cluster detection task. | |
| Delete a detection task record. | hcloud CSS DeleteAiOps/v1 | This interface is used to delete a detection task record. | |
| Obtaining Available SMN Topics | hcloud CSS ListSmnTopics/v1 | This API is used to obtain available SMN topics for intelligent O&M alarms. | |
| Viewing Intelligent O&M Detection Items | hcloud CSS ShowAiOpsDetector/v1 | CSS provides intelligent O&M functions to detect potential risks in clusters. This API is used to obtain intelligent O&M detection items. | |
| Viewing Scheduled Intelligent O&M Detection Settings | hcloud CSS ShowAiOpsSetting/v1 | CSS provides the intelligent O&M function to periodically detect potential risks in clusters every day. This interface is used to obtain the scheduled detection settings of intelligent O&M. | |
| Updating Scheduled Intelligent O&M Detection Settings | hcloud CSS UpdateAiOpsSetting/v1 | CSS provides the intelligent O&M function to periodically detect potential risks in clusters every day. This interface is used to set scheduled intelligent O&M detection. | |
| Disabling Scheduled Intelligent O&M Detection | hcloud CSS CloseAiOpsSetting/v1 | CSS provides the intelligent O&M function to periodically detect potential risks in clusters every day. This interface is used to disable scheduled intelligent O&M detection. |
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