oci-cli icon indicating copy to clipboard operation
oci-cli copied to clipboard

Suggestion: Allow compartment name in addition to compartment-id

Open cartershanklin opened this issue 7 years ago • 2 comments

Quality of life suggestion.

Example if I run: oci os bucket list --compartment-id --namespace-name

I would prefer to be able to run: oci os bucket list --compartment --namespace-name

The UI has a tendency to report the compartment name. This affects a number of areas / commands.

There does not seem to be any way to achieve this with CLI version 2.4.27 apart from pulling the compartment IDs using "iam compartment list".

Thanks for considering

cartershanklin avatar Jul 05 '18 16:07 cartershanklin

Thanks Carter for your suggestion. It seems a useful change; however needs to be thought through as it affects most of the command which use compartment-id. We will get back once we have more info on this request.

viralmodi avatar Jul 24 '18 21:07 viralmodi

As another option, the UI could report the compartment IDs at least alongside the compartment names.

cknowles avatar Nov 22 '23 17:11 cknowles