Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the endpoint (IP) for a kafka service #36

Closed
pantelis-karamolegkos opened this issue Mar 14, 2024 · 2 comments
Closed

Get the endpoint (IP) for a kafka service #36

pantelis-karamolegkos opened this issue Mar 14, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@pantelis-karamolegkos
Copy link

pantelis-karamolegkos commented Mar 14, 2024

What can we help you with?

I have a kafka service deployed and running on Aiven. I want to get the endpoint (the IP) for this kafka service's cluster.

I have tried using the following code

		listProjectServiceTypesOut, err := aivenClient.ListProjectServiceTypes(ctx, project.ProjectName)
		if err != nil {
			fmt.Printf("error listing services for for project: %s: %s", project.ProjectName, err)
		}

however I get &{Any:<nil>} although there is definitely a kafka cluster running.

Where would you expect to find this information?

Examples / README.md

@Serpentiel
Copy link
Contributor

Hey, @pantelis-karamolegkos! 👋

Thank you for bringing this up! Please try retrieving the information that you're looking for via aivenClient.ServiceList(ctx, project.ProjectName).

Since methods of the client include the endpoint URL in the comment, I can recommend taking a look at https://api.aiven.io/doc/.

Additionally, each method also has a direct link to the API doc page of the specific endpoint:

// ServiceList list services
// GET /project/{project}/service
// https://api.aiven.io/doc/#tag/Service/operation/ServiceList
ServiceList(ctx context.Context, project string) ([]ServiceOut, error)

Cf. ListProjectServiceTypes vs. ServiceList.

I will close this issue for now, please feel free to open it if you have any additional questions 🙂

@Serpentiel Serpentiel closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2024
@Serpentiel Serpentiel added the question Further information is requested label Mar 14, 2024
@Serpentiel Serpentiel self-assigned this Mar 14, 2024
@Serpentiel
Copy link
Contributor

Related to #34.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants