CLI Command Reference
Managing Lifecycle
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating a Kafka Instance | hcloud Kafka CreatePostPaidKafkaInstance | This API is used to create an instance. | |
| Listing All Instances | hcloud Kafka ListInstances | This API is used to query the instances of an account by the specified conditions. | |
| Querying an Instance | hcloud Kafka ShowInstance | This API is used to query the details about a specified instance. | |
| Deleting an Instance | hcloud Kafka DeleteInstance | This API is used to delete an instance to release all the resources occupied by it. | |
| Modifying Instance Information | hcloud Kafka UpdateInstance | This API is used to modify the instance information. | |
| Batch Restarting or Deleting Instances | hcloud Kafka BatchRestartOrDeleteInstances | This API is used to restart or delete instances in batches. | |
| Obtaining Instance Configurations | hcloud Kafka ShowInstanceConfigs | This API is used to obtain instance configurations. | |
| Modifying Instance Configurations | hcloud Kafka ModifyInstanceConfigs | This API is used to modify instance configurations. | |
| Upgrading an Instance | hcloud Kafka UpgradeInstance | This API is used to upgrading the kernel of an instance. | |
| Querying the Kafka Instance Version | hcloud Kafka ShowUpgradeInstanceVersion | This API is used to query the Kafka instance version information. |
Instance Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Resetting the Password | hcloud Kafka ResetPassword | This API is used to reset the password for an instance with SSL enabled. | |
| Resetting Kafka Manager Password | hcloud Kafka ResetManagerPassword | This API is used to reset the Kafka Manager password. | |
| Restarting Kafka Manager | hcloud Kafka RestartManager | This API is used to restart Kafka Manager. | |
| Modifying the Private IP Address for Cross-VPC Access | hcloud Kafka UpdateInstanceCrossVpcIp | This API is used to modify the private IP address for cross-VPC access. | |
| Querying Kafka Cluster Metadata | hcloud Kafka ShowCluster | This API is used to query Kafka cluster metadata. | |
| Querying Coordinator Details of a Kafka Instance | hcloud Kafka ShowCoordinators | This API is used to query coordinator details of a Kafka instance. | |
| Modifying Kafka Access Modes | hcloud Kafka UpdateKafkaPortProtocol | This API is used to modify private or public access for Kafka. | |
| Querying the Disk Storage Status of Topics | hcloud Kafka ShowKafkaTopicPartitionDiskusage | This API is used to query the disk usage of topics on brokers. | |
| Restoring Instances from the Recycle Bin | hcloud Kafka RestoreRecycleInstance | This API is used to restore instances from the recycle bin. | |
| Querying the Recycle Bin Instance List | hcloud Kafka ShowRecycleInstances | This API is used to query the recycle bin instance list. | |
| Updating the Recycle Bin Policy | hcloud Kafka ModifyRecyclePolicy | This API is used to update the recycle bin policy. | |
| Disabling Kafka Manager | hcloud Kafka CloseKafkaManager | This API is used to disable Kafka Manager. After Kafka Manager is disabled, the related management APIs will become unavailable. | |
| Querying Kafka Instance Rebalancing Log Details | hcloud Kafka ShowKafkaRebalanceLog | This API is used to query rebalancing log details of a Kafka instance. | |
| Enabling Kafka Instance Rebalancing Logging | hcloud Kafka CreateKafkaRebalanceLogTask | This API is used to enable Kafka instance rebalancing logging. | |
| Disabling Kafka Instance Rebalancing Logging | hcloud Kafka StopKafkaRebalanceLogTask | This API is used to disable Kafka instance rebalancing logging. | |
| Configuring Public Access to a Kafka Instance | hcloud Kafka ModifyKafkaPublicIpAccessSwitch | This API is used to enable or disable public access to a Kafka instance. | |
| Querying Kafka Cluster Information | hcloud Kafka ShowKafkaCluster | This API is used to query Kafka cluster information. |
Smart Connect
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying Resource Information Required for Enabling Smart Connect | hcloud Kafka ShowConnectorResourceInfo | This API is used to query resources to be used for enabling Smart Connect. | |
| Enabling Smart Connect (Pay-per-Use Instance) | hcloud Kafka CreateConnector | This API is used to enable Smart Connect so you can create a connector. | |
| Disabling Smart Connect (Pay-per-Use Instance) | hcloud Kafka DeleteConnector | This API is used to disable Smart Connect for a pay-per-use instance. | |
| Creating a Smart Connect Task | hcloud Kafka CreateConnectorTask | This API is used to create a Smart Connect task. | |
| Querying Smart Connect Tasks | hcloud Kafka ListConnectorTasks | This API is used to query Smart Connect tasks. | |
| Querying Smart Connect Task Details | hcloud Kafka ShowConnectorTask | This API is used to query details about a Smart Connect task. | |
| Deleting a Smart Connect Task | hcloud Kafka DeleteConnectorTask | This API is used to delete a Smart Connect task. | |
| Modifying the Configuration of a Smart Connect Task | hcloud Kafka ModifyConnectorTask | This API is used to modify the Smart Connect task configuration. | |
| Verifying Connector Connectivity | hcloud Kafka ValidateConnectorConnectivity | This API is used to verify the connector connectivity. | |
| Pausing a Smart Connect Task | hcloud Kafka PauseConnectorTask | This API is used to pause a Smart Connect task. | |
| Restarting a Smart Connect Task | hcloud Kafka ResumeConnectorTask | This API is used to restart a Smart Connect task. | |
| Starting a Smart Connect Task or Restarting a Paused or Running Smart Connect Task | hcloud Kafka RestartConnectorTask | This API is used to start a Smart Connect task or restart a paused or running Smart Connect task. Note that the sync progress will reset and the task will restart. | |
| Querying the OBS Bucket List | hcloud Kafka ListObsBuckets | This API is used to query the list of OBS buckets. |
Specification Modification Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Increasing Instance Specifications | hcloud Kafka ResizeKafkaInstance | This API is used to modify instance specifications. Currently, this API can be only used to increase the specifications of pay-per-use instances. | |
| Querying Product Information for Instance Specification Modification | hcloud Kafka ShowKafkaInstanceExtendProductInfo | This API is used to query the product information for instance specification modification. | |
| Querying the Automatic Disk Storage Expansion Configuration | hcloud Kafka ShowVolumeExpandConfig | This API is used to query the automatic disk storage expansion configuration covering whether this feature is enabled, the threshold, increase, and upper limit. | |
| Modifying the Automatic Disk Storage Expansion Configuration | hcloud Kafka UpdateVolumeExpansionConfig | This API is used to modify the automatic disk storage expansion configuration covering whether this feature is enabled, the threshold, increase, and upper limit. | |
| Obtaining Pre-check Information Before Expanding a Kafka Instance | hcloud Kafka ShowKafkaScalePreCheckInfo | This API is used to obtain pre-check information before expanding a Kafka instance. |
Topic Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Configuring Automatic Topic Creation | hcloud Kafka UpdateInstanceAutoCreateTopic | This API is used to configure automatic topic creation. | |
| Producing Messages to Kafka | hcloud Kafka SendKafkaMessage | This API is used to send specific messages to a Kafka instance on the console. | |
| Creating a Topic for a Kafka Instance | hcloud Kafka CreateInstanceTopic | This API is used to create a topic for a Kafka instance. | |
| Listing Topics of a Kafka Instance | hcloud Kafka ListInstanceTopics | This API is used to query details about topics of a Kafka instance. | |
| Modifying Topics of a Kafka Instance | hcloud Kafka UpdateInstanceTopic | This API is used to modify topics of a Kafka instance. | |
| Obtaining Kafka Topic Details | hcloud Kafka ShowKafkaTopicDetail | This API is used to obtain Kafka topic details. | |
| Batch Deleting Topics of a Kafka Instance | hcloud Kafka BatchDeleteInstanceTopic | This API is used to delete multiple topics of a Kafka instance in batches. If some topics are deleted successfully while some fail to be deleted, a success response is returned with information about topics that fail to be deleted. | |
| Querying the Partition List of a Topic | hcloud Kafka ListTopicPartitions | This API is used to query the partition list of a topic. | |
| Querying the Current Producer List of a Topic | hcloud Kafka ListTopicProducers | This API is used to query the current producer list of a topic. | |
| Deleting a Topic Quota | hcloud Kafka DeleteKafkaTopicQuota | This API is used to submit a topic-level quota deletion task to a Kafka instance. If the task is successfully submitted, a job ID of the quota task is returned. | |
| Creating a Topic Quota | hcloud Kafka CreateKafkaTopicQuota | This API is used to submit a topic-level quota creation task to a Kafka instance. If the task is successfully submitted, a job ID of the quota task is returned. | |
| Modifying a Topic Quota | hcloud Kafka ModifyKafkaTopicQuota | This API is used to submit a topic-level quota modification task to a Kafka instance. If the task is successfully submitted, a job ID of the quota task is returned. | |
| Querying a Topic Quota | hcloud Kafka ShowKafkaTopicQuota | This API is used to query a topic-level quota task. | |
| Initiating Partition Reassignment for a Kafka Instance | hcloud Kafka CreateKafkaReassignmentTask | This API is used to submit a partition reassignment task for a Kafka instance. If the task is successfully submitted, its job ID is returned. |
Managing Consumer Groups
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying Consumer Group Details | hcloud Kafka ShowGroups | This API is used to query consumer group details. | |
| Resetting Consumer Group Offset to the Specified Position | hcloud Kafka ResetMessageOffsetWithEngine | Kafka instances do not support resetting the consumer offset online. Before resetting, stop the client for which the offset is to be reset. After a client is stopped, the server considers the client offline only after the time period specified in ConsumerConfig.SESSION_TIMEOUT_MS_CONFIG (1000 ms by default). | |
| Querying All Consumer Groups | hcloud Kafka ListInstanceConsumerGroups | This API is used to query all consumer groups. | |
| Deleting Consumer Groups of a Kafka Instance in Batches | hcloud Kafka BatchDeleteGroup | This API is used to delete multiple consumer groups of a Kafka instance in batches. | |
| Creating a Consumer Group | hcloud Kafka CreateKafkaConsumerGroup | This API is used to create a consumer group. | |
| Querying the Offset of a Consumer Group | hcloud Kafka ListInstanceConsumerGroupMessageOffset | This API is used to query the offset of a consumer group. | |
| Modifying All Consumer Groups | hcloud Kafka UpdateInstanceGroup | This API is used to modify all consumer groups. | |
| Querying a Specified Consumer Group | hcloud Kafka ListInstanceConsumerGroup | This API is used to query a specified consumer group. | |
| Deleting a Specified Consumer Group | hcloud Kafka DeleteInstanceConsumerGroup | This API is used to delete a specified consumer group. | |
| Modifying a Specified Consumer Group | hcloud Kafka UpdateInstanceConsumerGroup | This API is used to modify a specified consumer group. | |
| Querying Topics of a Specified Consumer Group | hcloud Kafka ListInstanceConsumerGroupTopics | This API is used to query topics of a specified consumer group. | |
| Deleting Consumer Offset in a Specified Topic | hcloud Kafka DeleteConsumerGroupOffsets | This API is used to delete consumer offset in a specified topic. | |
| Querying Consumers in a Specified Consumer Group | hcloud Kafka ListInstanceConsumerGroupMembers | This API is used to query consumers in a specified consumer group. |
User Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Deleting a User or Client Quota | hcloud Kafka DeleteKafkaUserClientQuotaTask | This API is used to submit a task of deleting a user or client quota from a Kafka instance. A job_id is returned if the task succeeds. | |
| Querying User or Client Quotas | hcloud Kafka ShowKafkaUserClientQuota | This API is used to query quotas of a Kafka instance. A list of quotas is returned if the query succeeds. | |
| Creating User or Client Quotas | hcloud Kafka CreateKafkaUserClientQuotaTask | This API is used to submit a task to create user or client quotas for a Kafka instance. A job_id is returned if the task succeeds. | |
| Modifying User or Client Quotas | hcloud Kafka UpdateKafkaUserClientQuotaTask | This API is used to submit a task to modify user or client quotas of a Kafka instance. A job_id is returned if the task succeeds. | |
| Querying the User List | hcloud Kafka ShowInstanceUsers | This API is used to query the user list. | |
| Creating a User | hcloud Kafka CreateInstanceUser | This API is used to create a user for a Kafka instance for which SASL is enabled. For Kafka instances created before July 15, 2023, a maximum of 20 users can be created for each instance. For Kafka instances created since July 15, 2023, a maximum of 500 users can be created for each instance. | |
| Deleting Users in Batches | hcloud Kafka BatchDeleteInstanceUsers | This API is used to delete multiple users of a Kafka instance. | |
| Resetting a User Password | hcloud Kafka ResetUserPasswrod | This API is used to reset a user password. | |
| Modifying User Parameters | hcloud Kafka UpdateInstanceUser | This API is used to modify user parameters. | |
| Querying User Permissions | hcloud Kafka ShowTopicAccessPolicy | This API is used to query user permissions. | |
| Granting User Permissions | hcloud Kafka UpdateTopicAccessPolicy | This API is used to grant user permissions. |
Managing Messages
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying Messages | hcloud Kafka ShowInstanceMessages | Kafka instances support two message query modes. | |
| Querying a Message with a Specified Offset | hcloud Kafka ShowPartitionMessage | This API is used to query a message with a specified offset. | |
| Querying a Message with a Specified Time Period | hcloud Kafka ShowMessages | This API is used to query a message with a specified time period. | |
| Querying Offset of the Earliest Message in a Partition | hcloud Kafka ShowPartitionBeginningMessage | This API is used to query the offset of the earliest message in a partition. | |
| Querying Offset of the Latest Message in a Partition | hcloud Kafka ShowPartitionEndMessage | This API is used to query the offset of the latest message in a partition. | |
| Deleting Kafka Messages | hcloud Kafka DeleteKafkaTopicMessages | This API is used to delete Kafka messages. |
Background Task Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Listing Background Tasks | hcloud Kafka ListBackgroundTasks | This API is used to list background tasks of an instance. | |
| Querying a Background Task | hcloud Kafka ShowBackgroundTask | This API is used to query a specified background task. | |
| Deleting a Background Task | hcloud Kafka DeleteBackgroundTask | This API is used to delete a specified background task. | |
| Querying the Scheduled Task List of an Instance | hcloud Kafka ListScheduledTasks | This API is used to query the scheduled task list of an instance. | |
| Querying the Change Progress of a Specified Instance in a Background Task | hcloud Kafka ShowBackgroundTaskProgress | This API is used to query the change progress of a specified instance in a background task. | |
| Deleting a Specified Scheduled Task | hcloud Kafka DeleteScheduledTask | This API is used to delete a specified scheduled task. This operation can be performed only when the scheduled task is in the successful or canceled state. | |
| Modifying a Specified Scheduled Task | hcloud Kafka UpdateScheduledTask | This API is used to modify a specified scheduled task. |
Tag Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Batch Adding or Deleting Tags | hcloud Kafka BatchCreateOrDeleteKafkaTag | This API is used to add or delete instance tags in batches. | |
| Listing Tags of an Instance | hcloud Kafka ShowKafkaTags | This API is used to query instance tags. | |
| Listing Tags of a Project | hcloud Kafka ShowKafkaProjectTags | This API is used to query project tags. |
Diagnosis Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Pre-check Before Diagnosing Message Stack | hcloud Kafka ShowDiagnosisPreCheck | This API is used to pre-check before diagnosing message stack. | |
| Creating a Message Stack Diagnosis Task | hcloud Kafka CreateMessageDiagnosisTask | This API is used to create a message stack diagnosis task. | |
| Querying the Message Stack Diagnosis Report List | hcloud Kafka ListMessageDiagnosisReports | This API is used to query the message stack diagnosis report list. | |
| Batch Deleting Message Stack Diagnosis Reports | hcloud Kafka BatchDeleteMessageDiagnosisReports | This API is used to delete message stack diagnosis reports in batches. | |
| Querying Diagnosis Report Details | hcloud Kafka ShowMessageDiagnosisReport | This API is used to query diagnosis report details. |
Other APIs
| API Name | Command | Description | Operation |
|---|---|---|---|
| Listing Maintenance Time Windows | hcloud Kafka ShowMaintainWindows | This API is used to query the start time and end time of maintenance time windows. | |
| Listing AZ Information | hcloud Kafka ListAvailableZones | This API is used to query the AZ ID for creating an instance. | |
| Querying Product Specifications List | hcloud Kafka ListEngineProducts | This API is used to query the product specifications list. | |
| Querying Kafka Instance Monitoring Dimensions | hcloud Kafka ShowCesHierarchy | This API is used to query Kafka instance monitoring dimensions. | |
| Querying vCPUs of a Kafka Flavor | hcloud Kafka ShowKafkaProductCores | This API is used to query the number of vCPUs of a Kafka flavor. | |
| Querying the Feature Switch List | hcloud Kafka ListConfigFeatures | This API is used to obtain the feature switch list. |
Log Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying a Log Task | hcloud Kafka ShowKafkaLogTask | This API is used to query a log task. | |
| Enabling a Log Task | hcloud Kafka StartKafkaLogTask | This API is used to enable a log task. | |
| Stopping a Log Task | hcloud Kafka StopKafkaLogTask | This API is used to stop a log task. |
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