Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to get the all compartments in tenancy through API ?

edited Sep 3, 2019 11:01AM in OCI - General 1 comment

Content

I need the root compartment info as well as all other compartments in tenancy.

Right now, I am using ListCompartments API for fetching all compartments & GetCompartment API for root compartment.

Is there a API that returns all the compartments including root compartment?

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!