UsersApi
All URIs are relative to https://kafka.de-fra.ionos.com
Get /clusters/{clusterId}/users/{userId}/access
Retrieve Apache Kafka User with Credentials
ClustersUsersAccessGet
var result UserReadAccess = ClustersUsersAccessGet(ctx, clusterId, userId)
.Execute()Retrieve Apache Kafka User with Credentials
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.
userId := "d11db12c-2625-5664-afd4-a3599731b5af" // string | The ID (UUID) of the user.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := kafka.NewAPIClient(configuration)
resource, resp, err := apiClient.UsersApi.ClustersUsersAccessGet(context.Background(), clusterId, userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.ClustersUsersAccessGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `ClustersUsersAccessGet`: UserReadAccess
fmt.Fprintf(os.Stdout, "Response from `UsersApi.ClustersUsersAccessGet`: %v\n", resource)
}Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
clusterId
string
The ID (UUID) of the cluster.
userId
string
The ID (UUID) of the user.
Other Parameters
Other parameters are passed through a pointer to an apiClustersUsersAccessGetRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersUsersGet
var result UserReadList = ClustersUsersGet(ctx, clusterId)
.Execute()Retrieve all Users
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.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := kafka.NewAPIClient(configuration)
resource, resp, err := apiClient.UsersApi.ClustersUsersGet(context.Background(), clusterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.ClustersUsersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `ClustersUsersGet`: UserReadList
fmt.Fprintf(os.Stdout, "Response from `UsersApi.ClustersUsersGet`: %v\n", resource)
}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 apiClustersUsersGetRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
Last updated
