TopicsApi
All URIs are relative to https://kafka.de-fra.ionos.com
ClustersTopicsDelete
var result = ClustersTopicsDelete(ctx, clusterId, topicId)
.Execute()Delete Topic
Example
package main
import (
"context"
"fmt"
"os"
kafka "github.com/ionos-cloud/sdk-go-bundle/products/kafka"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
clusterId := "e69b22a5-8fee-56b1-b6fb-4a07e4205ead" // string | The ID (UUID) of the cluster.
topicId := "ae085c4c-3626-5f1d-b4bc-cc53ae8267ce" // string | The ID (UUID) of the topic.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := kafka.NewAPIClient(configuration)
resp, err := apiClient.TopicsApi.ClustersTopicsDelete(context.Background(), clusterId, topicId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TopicsApi.ClustersTopicsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
}Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
clusterId
string
The ID (UUID) of the cluster.
topicId
string
The ID (UUID) of the topic.
Other Parameters
Other parameters are passed through a pointer to an apiClustersTopicsDeleteRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
(empty response body)
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersTopicsFindById
Retrieve Topic
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
clusterId
string
The ID (UUID) of the cluster.
topicId
string
The ID (UUID) of the topic.
Other Parameters
Other parameters are passed through a pointer to an apiClustersTopicsFindByIdRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersTopicsGet
Retrieve all Topics
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
clusterId
string
The ID (UUID) of the cluster.
Other Parameters
Other parameters are passed through a pointer to an apiClustersTopicsGetRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersTopicsPost
Create Topic
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
clusterId
string
The ID (UUID) of the cluster.
Other Parameters
Other parameters are passed through a pointer to an apiClustersTopicsPostRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated
