<p>Using command-line utility <code>kubectl</code> we can list a custom resource instances as follows</p>
<pre><code>kubectl get &lt;customresource_kind&gt;
</code></pre>
<p>In a similar fashion, do we have a REST API to achieve the same? i.e. the API takes the Kind of the CustomResource and lists all the instances created?</p>
<p>I am referring to this API Reference :
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/</a></p>

krckumar
<p>You can list crds like every other API resources using Kubernetes REST API.</p>
<p>The final URL path will differ, depending on object's scope: <code>Cluster</code> or <code>Namespaced</code>.</p>
<p>The general rule for constructing the URL path is described <a href="https://kubernetes.io/docs/reference/using-api/api-concepts/#standard-api-terminology" rel="nofollow noreferrer">here</a> in official documentation.</p>
<p>Just to give you an example based on calico's <a href="https://gist.github.com/nepomucen/bd091b509ae60f6948969d859878e568#file-crds-yaml-L324" rel="nofollow noreferrer">clusterinformations.crd.projectcalico.org (v1)</a>:</p>
<pre><code>kubectl proxy --port=8080 &amp;

curl http://localhost:8080/apis/crd.projectcalico.org/v1/clusterinformations | jq '.items[].metadata.name

&quot;default&quot; &lt;- I have only one instance of this type of custom resource
</code></pre>
