Listing Images and Viewing Details

In both the Compute Web UI and the OCI CLI, platform images are listed first, followed by custom images. The list of platform images includes the three most recently published versions of each major distribution. Any older versions that were previously listed are still available by specifying the image OCID.

Using the Compute Web UI

  1. On the Dashboard, click the Compute/View Images button.

  2. Use the Compartment drop-down menu above the image list to select the compartment where you want to list images.

  3. To see details of an image, click the name of the image in the list.

Using the OCI CLI

  1. Gather the information that you need to run the command:

    • Compartment OCID (oci iam compartment list)

  2. Run the image list command.

    Syntax:

    oci compute image list --compartment-id compartment_OCID

    The newest three published versions of each platform image are listed, and all custom images in the specified compartment are listed.

    Example:

    Platform images do not show a compartment OCID because platform images are available in all compartments.

    oci compute image list --compartment-id ocid1.compartment.unique_ID
    {
      "data": [
        {
          "agent-features": null,
          "base-image-id": null,
          "billable-size-in-gbs": null,
          "compartment-id": "",
          "create-image-allowed": true,
          "defined-tags": {},
          "display-name": "uln-pca-Oracle-Linux-8-2022.08.29_0.oci",
          "freeform-tags": {},
          "id": "ocid1.image.unique_ID",
          "launch-mode": "PARAVIRTUALIZED",
          "launch-options": {
            "boot-volume-type": "PARAVIRTUALIZED",
            "firmware": "UEFI_64",
            "is-consistent-volume-naming-enabled": false,
            "is-pv-encryption-in-transit-enabled": false,
            "network-type": "PARAVIRTUALIZED",
            "remote-data-volume-type": "PARAVIRTUALIZED"
          },
          "lifecycle-state": "AVAILABLE",
          "listing-type": null,
          "operating-system": "OracleLinux",
          "operating-system-version": "8",
          "size-in-mbs": 47694,
          "time-created": "2022-10-28T20:02:38.833966+00:00"
        },
    ...
        {
          "agent-features": null,
          "base-image-id": "ocid1.bootvolume.unique_ID",
          "billable-size-in-gbs": null,
          "compartment-id": "ocid1.compartment.unique_ID",
          "create-image-allowed": true,
          "defined-tags": {},
          "display-name": "Sales Team Image",
          "freeform-tags": {},
          "id": "ocid1.image.unique_ID",
          "launch-mode": "PARAVIRTUALIZED",
          "launch-options": {
            "boot-volume-type": "PARAVIRTUALIZED",
            "firmware": "BIOS",
            "is-consistent-volume-naming-enabled": false,
            "is-pv-encryption-in-transit-enabled": false,
            "network-type": "PARAVIRTUALIZED",
            "remote-data-volume-type": "PARAVIRTUALIZED"
          },
          "lifecycle-state": "AVAILABLE",
          "listing-type": null,
          "operating-system": "CUSTOM",
          "operating-system-version": "CUSTOM",
          "size-in-mbs": 51200,
          "time-created": "2021-09-17T18:26:03.221604+00:00"
        },
    }
  3. To see this information for just one image, run the image get command with the OCID of the image. You can use the image list command to get the OCID of the image.

    Syntax:

    oci compute image get --image-id ocid1.image.unique_ID