I am trying to determine which of the grafana apis are used by the grafana provider in terraform so we can whitelist them inside our infrastructure. Thanks
I’m not sure if there are any Grafana provider developers in this forum.
I don’t know the direct answer to your question, but I do know that in the provider’s code you can look for all of the calls to the methods of the
Client type from the Grafana API package to see what operations it’s calling. It seems like the naming convention in the provider is to assign the client to a variable called
client, so if you search in the codebase for the string
client. (where the period is to find method calls) then hopefully that will turn up all of the relevant calls.
If you intend to allow only a subset of the resource types then you could restrict your searching to just the source files implementing those resource types.
Once you’ve found the methods, you can look in the Grafana client library to see which specific HTTP method/path each of the Go methods relates to.
Thanks, this was a perfect answer!!