// RestartConnectorTask restarts an individual task.
RestartConnectorTask restarts an individual task.
// RestartConnectorTask restarts an individual task .
func (c *Client) RestartConnectorTask(clusterName, name string, taskID int) error {
	if clusterName == "" {
		return errRequired("clusterName")
	}
	if name == "" {
		return errRequired("name")
	}
	path := fmt.Sprintf(taskPath+"/restart", clusterName, name, taskID)
	resp, err := c.Do(http.MethodPost, path, "", nil)
	if err != nil {
		return err
	}
	return resp.Body.Close()
}
func ( c * Client ) RestartConnectorTask ( clusterName , name string , taskID int ) error { if clusterName == " " { return errRequired ( " " ) } if name == " " { return errRequired ( " " ) } path := fmt . Sprintf ( taskPath + " " , clusterName , name , taskID ) resp , err := c . Do ( http . MethodPost , path , " " , nil ) if err != nil { return err } return resp . Body . Close ( ) }
RestartConnectorTask restarts an individual task.
RestartConnectorTask restarts an individual task .
// # Restart a connector task // POST /api/proxy-connect/(string: clusterName)/connectors/(string: name)/tasks/(int: taskid)/restart