分布式消息服务KAFKA版-Kafka实例查询Topic:响应参数

时间:2024-01-24 16:40:32

响应参数

状态码: 200

表3 响应Body参数

参数

参数类型

描述

total

Integer

topic总数。

size

Integer

分页查询的大小。

remain_partitions

Integer

剩余分区数。

max_partitions

Integer

分区总数。

topic_max_partitions

Integer

单个topic最大占用分区数。

topics

Array of TopicEntity objects

topic列表。

表4 TopicEntity

参数

参数类型

描述

policiesOnly

Boolean

是否为默认策略。

name

String

topic名称。

replication

Integer

副本数,配置数据的可靠性。

partition

Integer

topic分区数,设置消费的并发数。

retention_time

Integer

消息老化时间。

sync_replication

Boolean

是否开启同步复制,开启后,客户端生产消息时相应的也要设置acks=-1,否则不生效,默认关闭。

sync_message_flush

Boolean

是否使用同步落盘。默认值为false。同步落盘会导致性能降低。

external_configs

Object

扩展配置。

topic_type

Integer

topic类型(0:普通Topic 1:系统(内部)Topic)。

topic_other_configs

Array of topic_other_configs objects

topic其他配置

topic_desc

String

topic描述

created_at

Long

topic创建时间

表5 topic_other_configs

参数

参数类型

描述

name

String

配置名称

valid_values

String

配置有效值

default_value

String

配置默认值

config_type

String

配置类型:dynamic/static

value

String

配置值

value_type

String

配置值类型

support.huaweicloud.com/api-kafka/ListInstanceTopics.html