oracle / oci-cli

Command Line Interface for Oracle Cloud Infrastructure

Home Page:https://cloud.oracle.com/cloud-infrastructure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boot Volume ID not returned from oci compute instance get or oci ansible compute facts

daniel-aslan opened this issue · comments

I have tried running "oci compute instance get --instance-id $OCID" and do not get boot volume id in the data. Also don't get the output from ansible using oracle.oci.oci_compute_instance_facts.

Using CLI or ansible this is the return value.
"source-details": { "boot-volume-size-in-gbs": null, "boot-volume-vpus-per-gb": null, "image-id": "ocid1.image.oc1.phx.xxxxxxxxxxxxpti5kzb6qbm5mi6t26g6euqwts3a42zxkuvtq", "instance-source-image-filter-details": null, "kms-key-id": null, "source-type": "image" },

In order to get the boot volume that attached to the compute, you will need to use oci compute boot-volume-attachment list
The source-details will be populate if the instance created from boot volume or image