Switching Roles of the Primary and Standby DNs in Shards

Function

This API is used to perform a primary/standby DN switchover for one or more shards. In a shard, only one standby node can be promoted to primary. Before calling this API:

URI

Request

Example Request

Switching roles of primary and standby DNs in multiple shards
{
"shards":[ 
               { 
                      "node_id":"0bc478b4d132494a8f7b804da521b4b2no14", 
                      "component_id":"dn_6001" 
               }, 
               { 
                      "node_id":"53dee94c50574d36a0060db0a6b644f6no14", 
                      "component_id":"dn_6004" 
               } 
        ]
}

Response

Status Code

Error Code

For details, see Error Codes.