// RestartConnector restarts the connector and its tasks.
// It returns a 409 (Conflict) status code error if rebalance is in process.
RestartConnector restarts the connector and its tasks.
It returns a 409 (Conflict) status code error if rebalance is in process.
// RestartConnector restarts the connector and its tasks . // It returns a 409 ( Conflict ) status code error if rebalance is in process .
func (c *Client) RestartConnector(clusterName, name string) error {
	if clusterName == "" {
		return errRequired("clusterName")
	}
	if name == "" {
		return errRequired("name")
	}
	path := fmt.Sprintf(connectorPath+"/restart", clusterName, name)
	resp, err := c.Do(http.MethodPost, path, "", nil)
	if err != nil {
		return err
	}
	return resp.Body.Close()
}
func ( c * Client ) RestartConnector ( clusterName , name string ) error { if clusterName == " " { return errRequired ( " " ) } if name == " " { return errRequired ( " " ) } path := fmt . Sprintf ( connectorPath + " " , clusterName , name ) resp , err := c . Do ( http . MethodPost , path , " " , nil ) if err != nil { return err } return resp . Body . Close ( ) }
RestartConnector restarts the connector and its tasks.
RestartConnector restarts the connector and its tasks .
// # Restart a connector // POST /api/proxy-connect/(string: clusterName)/connectors/(string: name)/restart