-3

I am looking what OCI cli show only custom image? I HAVE TRIED

oci compute image list --compartment --all

However that not listed all my custom image, shows only handfull but for sure I have in hundreds. I can see all my custom image on GUI but not cli command only 13 image only.

Thanks

1 Answer 1

1

To filter oci custom images using --query to filter out Custom "operating-system": "Custom"

oci compute image list --compartment-id ocid1.tenancy.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxx --all --auth instance_principal --query "data[?\"operating-system\" == 'Custom']" --output table

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.