API-based endpoint discovery of resources in cloud edge locations embedded in telecommunications networks