cluster gateway get
Lists the data-fabric gateways that a source data-fabric cluster is using.
The source data-fabric cluster might be using the data-fabric gateways either for replication of table data to a destination data-fabric cluster or for the indexing of data in an Elasticsearch cluster.
This list of gateways is created by the cluster gateway set
command.
Syntax
- CLI
-
maprcli cluster gateway get [ -cluster <sourceCluster> ] -dstcluster <destinationCluster>
- REST
-
Request Type GET Request URL http[s]://<host>:<port>/rest/cluster/gateway/get?<parameters>
Parameters
Parameter | Description |
---|---|
cluster |
(Optional) If you are not on the source cluster, provide the name of the source cluster on which this command should run. |
dstcluster |
(Required) The name of the cluster on which the gateways are located. If you are replicating table data to another data-fabric cluster, specify the name of that destination cluster. This destination cluster could be the source cluster if you are performing intra-cluster replication. If you are indexing table data in an Elasticsearch cluster, specify the name of the source data-fabric cluster because that is where the gateways are located. |
Example
Gets the list of gateways that is stored on a source data-fabric cluster. The gateways are being used for table replication and are located in the destination data-fabric cluster sfcluster
.
- CLI
-
maprcli cluster gateway get -dstcluster sfcluster
- REST
-
curl -X GET -u <username> https://abc.sj.us:8443/rest/cluster/gateway/get?dstcluster=sfcluster
- Example Output
cluster gatewayConfig sfcluster gw1 gw2