<p>I need to execute <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-token-em-" rel="nofollow noreferrer">this operation</a> from my (.NET) application. How do I figure out which <a href="https://kubernetes.io/docs/reference/" rel="nofollow noreferrer">k8s API to map</a> this command to? Ideally, how do I use <a href="https://github.com/kubernetes-client/csharp" rel="nofollow noreferrer">the .NET SDK</a> to make this call?</p>

Marc
<p>You can read the API docs: <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#tokenrequest-v1-authentication-k8s-io" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#tokenrequest-v1-authentication-k8s-io</a></p>
<p>You can also inpsect what kubectl is doing by increasing the verbosity level: <a href="https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-output-verbosity-and-debugging" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-output-verbosity-and-debugging</a></p>
<blockquote>
<p>Kubectl verbosity is controlled with the -v or --v flags followed by an integer representing the log level. General Kubernetes logging conventions and the associated log levels are described <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/logging.md" rel="nofollow noreferrer">here</a>.</p>
</blockquote>
