All URIs are relative to https://api.confluent.cloud
Method | HTTP request | Description |
---|---|---|
PauseConnectv1Connector | Put /connect/v1/environments/{environment_id}/clusters/{kafka_cluster_id}/connectors/{connector_name}/pause | Pause a Connector |
ResumeConnectv1Connector | Put /connect/v1/environments/{environment_id}/clusters/{kafka_cluster_id}/connectors/{connector_name}/resume | Resume a Connector |
PauseConnectv1Connector(ctx, connectorName, environmentId, kafkaClusterId).Execute()
Pause a Connector
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
connectorName := "connectorName_example" // string | The unique name of the connector.
environmentId := "environmentId_example" // string | The unique identifier of the environment this resource belongs to.
kafkaClusterId := "kafkaClusterId_example" // string | The unique identifier for the Kafka cluster.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.LifecycleConnectV1Api.PauseConnectv1Connector(context.Background(), connectorName, environmentId, kafkaClusterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LifecycleConnectV1Api.PauseConnectv1Connector``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
connectorName | string | The unique name of the connector. | |
environmentId | string | The unique identifier of the environment this resource belongs to. | |
kafkaClusterId | string | The unique identifier for the Kafka cluster. |
Other parameters are passed through a pointer to a apiPauseConnectv1ConnectorRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
cloud-api-key, confluent-sts-access-token
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResumeConnectv1Connector(ctx, connectorName, environmentId, kafkaClusterId).Execute()
Resume a Connector
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
connectorName := "connectorName_example" // string | The unique name of the connector.
environmentId := "environmentId_example" // string | The unique identifier of the environment this resource belongs to.
kafkaClusterId := "kafkaClusterId_example" // string | The unique identifier for the Kafka cluster.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.LifecycleConnectV1Api.ResumeConnectv1Connector(context.Background(), connectorName, environmentId, kafkaClusterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LifecycleConnectV1Api.ResumeConnectv1Connector``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
connectorName | string | The unique name of the connector. | |
environmentId | string | The unique identifier of the environment this resource belongs to. | |
kafkaClusterId | string | The unique identifier for the Kafka cluster. |
Other parameters are passed through a pointer to a apiResumeConnectv1ConnectorRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
cloud-api-key, confluent-sts-access-token
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]