Obtaining the API Version of Resources in Provider

Different resources provided by a particular Cloud using/exposes different API Versions for that resource, so how can we find the apiversion of a resource that is used by the provider. For e.g. how to find the apiversion of Microsoft.Network/privateEndpoints used in Azure Provider