volume container switchprimary

Switches the primary replica for a specified container to another replica in the replica chain.

This command fails if there is only one up-to-date replica for the container.

NOTE
Only the root and the MAPR_USER (user name under which HPE Ezmeral Data Fabric services run) user have permissions to run this command.

Syntax

CLI
maprcli volume container switchprimary 
   [ -cluster <cluster_name> ]
   -cid <cid> 
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/volume/container/switchprimary?<parameters> 

Parameters

Parameter Description
cluster The cluster on which to run the command. If this parameter is omitted, the command is run on the same cluster where it is issued. In multi-cluster contexts, you can use this parameter to specify a different cluster on which to run the command.
cid The unique ID number for the container that you want to run the command on.

Example

Switches the primary container for a specified container:
maprcli volume container switchprimary -cid 2049
https://abc.sj.us:8443/rest/volume/container/switchprimary?cid=2049