cluster gateway local
Lists the gateways that are configured on the MapR cluster where this command is run.
Syntax
- CLI
-
/opt/mapr/bin/maprcli cluster gateway local [ -cluster cluster on which command to be run ] [ -format dns/text. default: text ]
- REST
http[s]://<host>:<port>/rest/cluster/gateway/local
Parameters
Parameter | Description |
---|---|
format |
The output format. Value types: dns or
text . Default: text . NOTE
|
cluster |
If you are not on a MapR cluster where one or more gateways are configured,
provide the name of the cluster.
|
Example
This example shows text output of the list of gateways that are configured on a MapR cluster:
- CLI
-
/opt/mapr/bin/maprcli cluster gateway local
- REST
-
https://<host>:<port>/rest/cluster/gateway/local
- Example Output
gatewayinfo centos23 centos22
This example shows DNS output of the list of gateways that are configured on a MapR cluster:
- CLI
-
/opt/mapr/bin/maprcli cluster gateway local -format dns
- REST
-
https://<host>:<port>/rest/cluster/gateway/local?format=dns
- Example Output
gatewaydnsinfo ; TXT Record addresses gateway.mycluster IN TXT "centos23 centos22"