You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/07/11 06:02:24 UTC
[pulsar-site] branch main updated: Docs sync done from apache/pulsar(#56f96da)
This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 3acbc1d87c0 Docs sync done from apache/pulsar(#56f96da)
3acbc1d87c0 is described below
commit 3acbc1d87c03629d760d9893ee0f4822b13dc528
Author: Pulsar Site Updater <de...@pulsar.apache.org>
AuthorDate: Mon Jul 11 06:02:18 2022 +0000
Docs sync done from apache/pulsar(#56f96da)
---
site2/website-next/docs/admin-api-brokers.md | 36 +++++++++++-----------------
1 file changed, 14 insertions(+), 22 deletions(-)
diff --git a/site2/website-next/docs/admin-api-brokers.md b/site2/website-next/docs/admin-api-brokers.md
index b2d3a4da2c7..598125a6cc7 100644
--- a/site2/website-next/docs/admin-api-brokers.md
+++ b/site2/website-next/docs/admin-api-brokers.md
@@ -41,28 +41,34 @@ In addition to being configurable when you start them up, brokers can also be [d
Fetch all available active brokers that are serving traffic for local cluster .
-<!--DOCUSAURUS_CODE_TABS-->
-<!--pulsar-admin-->
+````mdx-code-block
+<Tabs groupId="api-choice"
+ defaultValue="pulsar-admin"
+ values={[{"label":"pulsar-admin","value":"pulsar-admin"},{"label":"REST API","value":"REST API"},{"label":"Java","value":"Java"}]}>
+<TabItem value="pulsar-admin">
```shell
$ pulsar-admin brokers list
-```
-
-```
broker1.use.org.com:8080
```
-<!--REST API-->
+</TabItem>
+<TabItem value="REST API">
{@inject: endpoint|GET|/admin/v2/brokers|operation/getActiveBrokers?version=[[pulsar:version_number]]}
-<!--JAVA-->
+
+</TabItem>
+<TabItem value="Java">
```java
admin.brokers().getActiveBrokers()
```
-<!--END_DOCUSAURUS_CODE_TABS-->
+</TabItem>
+
+</Tabs>
+````
Fetch all available active brokers that are serving traffic with cluster name.
@@ -75,11 +81,6 @@ Fetch all available active brokers that are serving traffic with cluster name.
```shell
$ pulsar-admin brokers list use
-
-```
-
-```
-
broker1.use.org.com:8080
```
@@ -116,11 +117,6 @@ Fetch the information of the leader broker, for example, the service url.
```shell
$ pulsar-admin brokers leader-broker
-
-```
-
-```
-
BrokerInfo(serviceUrl=broker1.use.org.com:8080)
```
@@ -161,10 +157,6 @@ It finds all namespaces which are owned and served by a given broker.
$ pulsar-admin brokers namespaces use \
--url broker1.use.org.com:8080
-```
-
-```json
-
{
"my-property/use/my-ns/0x00000000_0xffffffff": {
"broker_assignment": "shared",