When using the ccc infrastructure list CLI command with the --compartment-id-in-subtree true option, no results are returned
- Details
-
You get an empty list even though there are items in the subtree.
Example:
oci ccc infrastructure list --profile user1 --compartment-id-in-subtree true -c ocid1.tenancy.oc1..uniqueID { "data": { "items": [] } } - Workaround
-
Instead of using the
--compartment-id-in-subtreeoption, query each compartment directly using the-compartmentoption.Example:
oci ccc infrastructure list --profile user1 -compartment ocid1.tenancy.oc1..uniqueID { "data": { "items": [ list of compartment details ] } }For more information, see the ccc infrastructure CLI Reference page.