I need to fetch all the instances (authorized) in the tenancy. In Oracle Cloud documentation, I have seen fetching the instances by compartment ID(ListInstances API). So in order to fetch all instances, I need all the compartments.
Any inputs? Or Is there a way of fetching all instances irrespective of compartments?