// PauseConnector pauses the connector and its tasks, which stops message processing until the connector is resumed.
// This call asynchronous and the tasks will not transition to PAUSED state at the same time.
PauseConnector pauses the connector and its tasks, which stops message processing until the connector is resumed.
This call asynchronous and the tasks will not transition to PAUSED state at the same time.
// PauseConnector pauses the connector and its tasks which stops message processing until the connector is resumed . // This call asynchronous and the tasks will not transition to PAUSED state at the same time .
func (c *Client) PauseConnector(clusterName, name string) error {
	if clusterName == "" {
		return errRequired("clusterName")
	}
	if name == "" {
		return errRequired("name")
	}
	path := fmt.Sprintf(connectorPath+"/pause", clusterName, name)
	resp, err := c.Do(http.MethodPut, path, "", nil) 
	if err != nil {
		return err
	}
	return resp.Body.Close()
}
func ( c * Client ) PauseConnector ( clusterName , name string ) error { if clusterName == " " { return errRequired ( " " ) } if name == " " { return errRequired ( " " ) } path := fmt . Sprintf ( connectorPath + " " , clusterName , name ) resp , err := c . Do ( http . MethodPut , path , " " , nil ) if err != nil { return err } return resp . Body . Close ( ) }
PauseConnector pauses the connector and its tasks, which stops message processing until the connector is resumed.
PauseConnector pauses the connector and its tasks which stops message processing until the connector is resumed .
// # Pause a connector // PUT /api/proxy-connect/(string: clusterName)/connectors/(string: name)/pause // the success status is 202 Accepted.