clustergroup updateprimary
Updates the primary cluster for the group.
Makes an existing cluster the primary for the cluster group. The difference between
setprimary and updateprimary is that the
setprimary command adds a new entry in the cluster group, while the
updateprimary command elevates an existing entry as the primary.
Syntax
- CLI
-
maprcli clustergroup updateprimary -clustername <name> - REST
Request Type POST Request URL http[s]://<host>:<port>/rest/clustergroup/updateprimary?<parameters>
Parameters
| Parameter | Description |
|---|---|
|
|
(Required) Name of the cluster to elevate as the primary cluster. |
Example
- CLI
- Updates the primary cluster for the cluster group to
cluster2.maprcli clustergroup updateprimary -clustername cluster2
- REST
-
NOTEWhen using a self-signed certificate, pass the
-koption tocurlto avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/clustergroup/updateprimary?clustername=cluster2