All URIs are relative to https://api.confluent.cloud
Method | HTTP request | Description |
---|---|---|
ListConnectv1ConnectorTasks | Get /connect/v1/environments/{environment_id}/clusters/{kafka_cluster_id}/connectors/{connector_name}/tasks | List of Connector Tasks |
ReadConnectv1ConnectorStatus | Get /connect/v1/environments/{environment_id}/clusters/{kafka_cluster_id}/connectors/{connector_name}/status | Read a Connector Status |
[]map[string]interface{} ListConnectv1ConnectorTasks(ctx, connectorName, environmentId, kafkaClusterId).Execute()
List of Connector Tasks
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.StatusConnectV1Api.ListConnectv1ConnectorTasks(context.Background(), connectorName, environmentId, kafkaClusterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatusConnectV1Api.ListConnectv1ConnectorTasks``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListConnectv1ConnectorTasks`: []map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `StatusConnectV1Api.ListConnectv1ConnectorTasks`: %v\n", resp)
}
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 apiListConnectv1ConnectorTasksRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
[]map[string]interface{}
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]
InlineResponse2001 ReadConnectv1ConnectorStatus(ctx, connectorName, environmentId, kafkaClusterId).Execute()
Read a Connector Status
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.StatusConnectV1Api.ReadConnectv1ConnectorStatus(context.Background(), connectorName, environmentId, kafkaClusterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatusConnectV1Api.ReadConnectv1ConnectorStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReadConnectv1ConnectorStatus`: InlineResponse2001
fmt.Fprintf(os.Stdout, "Response from `StatusConnectV1Api.ReadConnectv1ConnectorStatus`: %v\n", resp)
}
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 apiReadConnectv1ConnectorStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
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]