<p>I am using python to access my cluster. The only thing I came across, that is close is <a href="https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/CoreV1Api.md#list_namespaced_pod" rel="noreferrer">list_namespaced_pod</a>, which does not give me the actual names of the pods.</p>

A_test_user
<p>As stated in the comments, you can access all information in the <code>metadata</code> of each pod in the list of pod items returned by the API call. </p>

<p>Here is an example: </p>

<pre><code>def get_pods():  

    v1 = client.CoreV1Api()
    pod_list = v1.list_namespaced_pod("example")
    for pod in pod_list.items:
        print("%s\t%s\t%s" % (pod.metadata.name,
                              pod.status.phase,
                              pod.status.pod_ip))
</code></pre>
