Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command cluster list-failure-domains #23

Merged
merged 2 commits into from
Sep 4, 2019

Conversation

zymap
Copy link
Member

@zymap zymap commented Sep 3, 2019

Master issue: #2

➜  pulsarctl git:(clusters_list_failure_domain) ./pulsarctl cluster list-failure-domains -h
USED FOR:
    This command is used for getting all failure domain under the cluster <cluster-name>.

REQUIRED PERMISSION:
    This command requires super-user permissions.

EXAMPLES:
    #listing all the failure domains under the specified cluster
    pulsarctl clusters list-failure-domains <cluster-name>

OUTPUT:
    #output example
    {
      "failure-domain": {
        "brokers": [
          "failure-broker-A",
          "failure-broker-B"
        ]
      }
    }

    #the cluster name is not specified or the cluster name is specified more than one
    [✖]  only one argument is allowed to be used as a name

    #the specified cluster does not exist in the broker
    [✖]  code: 404 reason: Cluster does not exist

Usage: pulsarctl clusters list-failure-domains [flags]

Aliases: list-failure-domains, lfd

Common flags:
  -s, --admin-service-url string    The admin web service url that pulsarctl connects to. (default "http://localhost:8080")
      --auth-params string          Authentication parameters are used to configure the public and private key files required by tls
                                     For example: "tlsCertFile:val1,tlsKeyFile:val2"
  -C, --color string                toggle colorized logs (true,false,fabulous) (default "true")
  -h, --help                        help for this command
      --tls-allow-insecure          Allow TLS insecure connection
      --tls-trust-cert-pat string   Allow TLS trust cert file path
  -v, --verbose int                 set log level, use 0 to silence, 4 for debugging (default 3)

Use 'pulsarctl clusters list-failure-domains [command] --help' for more information about a command.

@zymap zymap force-pushed the clusters_list_failure_domain branch from be4318d to 3a47a08 Compare September 4, 2019 05:44
@zymap zymap changed the title [WIP] Add command cluster list-failure-domains Add command cluster list-failure-domains Sep 4, 2019
@zymap zymap added this to the 0.0.1 milestone Sep 4, 2019
@sijie sijie merged commit c52f090 into master Sep 4, 2019
@sijie sijie mentioned this pull request Sep 4, 2019
29 tasks
@wolfstudy wolfstudy deleted the clusters_list_failure_domain branch October 11, 2019 06:26
tisonkun pushed a commit to tisonkun/pulsar-client-go that referenced this pull request Aug 15, 2023
Master issue: streamnative/pulsarctl#2 

```
➜  pulsarctl git:(clusters_list_failure_domain) ./pulsarctl cluster list-failure-domains -h
USED FOR:
    This command is used for getting all failure domain under the cluster <cluster-name>.

REQUIRED PERMISSION:
    This command requires super-user permissions.

EXAMPLES:
    #listing all the failure domains under the specified cluster
    pulsarctl clusters list-failure-domains <cluster-name>

OUTPUT:
    #output example
    {
      "failure-domain": {
        "brokers": [
          "failure-broker-A",
          "failure-broker-B"
        ]
      }
    }

    #the cluster name is not specified or the cluster name is specified more than one
    [✖]  only one argument is allowed to be used as a name

    #the specified cluster does not exist in the broker
    [✖]  code: 404 reason: Cluster does not exist

Usage: pulsarctl clusters list-failure-domains [flags]

Aliases: list-failure-domains, lfd

Common flags:
  -s, --admin-service-url string    The admin web service url that pulsarctl connects to. (default "http://localhost:8080")
      --auth-params string          Authentication parameters are used to configure the public and private key files required by tls
                                     For example: "tlsCertFile:val1,tlsKeyFile:val2"
  -C, --color string                toggle colorized logs (true,false,fabulous) (default "true")
  -h, --help                        help for this command
      --tls-allow-insecure          Allow TLS insecure connection
      --tls-trust-cert-pat string   Allow TLS trust cert file path
  -v, --verbose int                 set log level, use 0 to silence, 4 for debugging (default 3)

Use 'pulsarctl clusters list-failure-domains [command] --help' for more information about a command.
```
tisonkun pushed a commit to apache/pulsar-client-go that referenced this pull request Aug 16, 2023
Master issue: streamnative/pulsarctl#2 

```
➜  pulsarctl git:(clusters_list_failure_domain) ./pulsarctl cluster list-failure-domains -h
USED FOR:
    This command is used for getting all failure domain under the cluster <cluster-name>.

REQUIRED PERMISSION:
    This command requires super-user permissions.

EXAMPLES:
    #listing all the failure domains under the specified cluster
    pulsarctl clusters list-failure-domains <cluster-name>

OUTPUT:
    #output example
    {
      "failure-domain": {
        "brokers": [
          "failure-broker-A",
          "failure-broker-B"
        ]
      }
    }

    #the cluster name is not specified or the cluster name is specified more than one
    [✖]  only one argument is allowed to be used as a name

    #the specified cluster does not exist in the broker
    [✖]  code: 404 reason: Cluster does not exist

Usage: pulsarctl clusters list-failure-domains [flags]

Aliases: list-failure-domains, lfd

Common flags:
  -s, --admin-service-url string    The admin web service url that pulsarctl connects to. (default "http://localhost:8080")
      --auth-params string          Authentication parameters are used to configure the public and private key files required by tls
                                     For example: "tlsCertFile:val1,tlsKeyFile:val2"
  -C, --color string                toggle colorized logs (true,false,fabulous) (default "true")
  -h, --help                        help for this command
      --tls-allow-insecure          Allow TLS insecure connection
      --tls-trust-cert-pat string   Allow TLS trust cert file path
  -v, --verbose int                 set log level, use 0 to silence, 4 for debugging (default 3)

Use 'pulsarctl clusters list-failure-domains [command] --help' for more information about a command.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants