docs
api
Kafka(UKafka)
DescribeUKafkaConsumer

Get Kafka Consumer Group Information - DescribeUKafkaConsumer

Overview

Get Kafka Consumer Group Information

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeUKafkaConsumer.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ZonestringAvailability Zone. See Availability Zone ListYes
ProjectIdstringProject ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList Interface.No
ClusterInstanceIdstringKafka Cluster IDYes
ConsumerGroupstringConsumer Group NameYes
TypestringConsumer Group Type (same as the type value returned by the Consumer Group List)Yes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
GroupNamestringConsumer Group NameNo
TypestringConsumer Group TypeNo
TopicsstringInformation on the topic subscribed by the consumer groupNo

Example

Request Example

https://api.surfercloud.com/?Action=DescribeUKafkaConsumer
&Region=cn-bj2
&Zone=cn-bj2-02
&ProjectId=KQFUAJET
&ClusterInstanceId=ukafka-asje3q
&ConsumerGroup=group1
&Type=ZK

Response Example

{
  "Action": "DescribeUKafkaConsumerResponse",
  "GroupName": "group1",
  "RetCode": 0,
  "Topics": {
    "bar": {
      "LagPer": 0.2941239495259584,
      "LastUpdateTime": 1538194238000,
      "PartitionAssignedPer": 0,
      "Partitions": {
        "0": {
          "Consumer": "",
          "CurrentOffset": 2009411,
          "Lag": 837280,
          "LogEndOffset": 2846691
        }
      },
      "TotalLag": 837280
    },
    "foo": {
      "LastUpdateTime": 1538194238000,
      "LogPer": 0.000013680915448685166,
      "PartitionAssignedPer": 1,
      "Partitions": {
        "0": {
          "Consumer": "group1_ukafka-asje3q-kafka2-1538033810949-626a2e06-0",
          "CurrentOffset": 1534824,
          "Lag": 43,
          "LogEndOffset": 1534867
        },
        "1": {
          "Consumer": "group1_ukafka-asje3q-kafka2-1538101885995-a9d3def3-0",
          "CurrentOffset": 1534519,
          "Lag": 10,
          "LogEndOffset": 1534529
        },
        "2": {
          "Consumer": "group1_ukafka-asje3q-kafka2-1538101889777-b0fb1091-0",
          "CurrentOffset": 1535549,
          "Lag": 10,
          "LogEndOffset": 1535559
        }
      },
      "TotalLag": 63
    }
  },
  "Type": "ZK"
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved