Retrieve Details of a Machine Image
/machineimage/{name}
Compute_Monitor
or Compute_Operations
role. If this role isn't assigned to you or you're not sure, then ask your system administrator to ensure that the role is assigned to you in Oracle Cloud My Services. See Modifying User Roles in Managing and Monitoring Oracle Cloud.Request
- application/oracle-compute-v3+json
-
name: string
The three-part name of the object (
/Compute-identity_domain/user/object
or/oracle/public/object
.)
-
Cookie: string
The Cookie: header must be included with every request to the service. It must be set to the value of the set-cookie header in the response received to the POST /authenticate/ call.
Response
- application/oracle-compute-v3+json
200 Response
-
set-cookie: string
The cookie value is returned if the session is extended
object
-
account(optional):
string
Two-part name of the account (
/Compute-identity_domain/cloud_storage
that contains the credentials and access details of the associated Oracle Cloud Infrastructure Object Storage Classic instance. -
attributes(optional):
object attributes
Additional Properties Allowed: additionalProperties
An optional JSON object or dictionary of arbitrary attributes to be made available to the instance. These are user-defined tags. After defining attributes, you can view them from within an instance at http://192.0.0.192/. See Retrieving User-Defined Instance Attributes in Using Oracle Cloud Infrastructure Compute Classic.
-
audited(optional):
string
Last time when this image was audited
-
checksums(optional):
object checksums
Additional Properties Allowed: additionalPropertiesNot used
-
description(optional):
string
Arbitrary text describing the image.
-
error_reason(optional):
string
Description of the state of the machine image if there is an error.
-
file(optional):
string
Name of the machine image file.
-
hypervisor(optional):
object hypervisor
Additional Properties Allowed: additionalPropertiesA dictionary of hypervisor-specific attributes.
-
image_format(optional):
string
The format of the image.
-
name(optional):
string
The three-part name of the object.
-
no_upload(optional):
boolean
true
indicates that the image file is available in Oracle Cloud Storage Service. -
platform(optional):
string
The OS platform of the image.
-
quota(optional):
string
Not used
-
signature(optional):
string
Not used
-
signed_by(optional):
string
Not used
-
sizes(optional):
object sizes
Size values of the image file.
-
state(optional):
string
The state of the uploaded machine image.
-
uri(optional):
string
Uniform Resource Identifier
object
An optional JSON object or dictionary of arbitrary attributes to be made available to the instance. These are user-defined tags. After defining attributes, you can view them from within an instance at http://192.0.0.192/. See Retrieving User-Defined Instance Attributes in Using Oracle Cloud Infrastructure Compute Classic.
object
object
object
object
object
Examples
cURL Command
The following example shows how to retrieve details of a machine image by submitting a GET
request on the REST resource using cURL. For more information about cURL, see Use cURL.
Enter the command on a single line. Line breaks are used in this example for readability.
curl -X GET -H "Cookie: $COMPUTE_COOKIE" -H "Accept: application/oracle-compute-v3+json" https://api-z999.compute.us0.oraclecloud.com/machineimage/Compute-acme/jack.jones@example.com/oraclelinux-x64
-
COMPUTE_COOKIE
is the name of the variable in which you stored the authentication cookie earlier. For information about retrieving the authentication cookie and storing it in a variable, see Authentication. -
api-z999.compute.us0.oraclecloud.com
is an example REST endpoint URL. Change this value to the REST endpoint URL of your Compute Classic site. For information about finding out REST endpoint URL for your site, see Send Requests. -
acme
andjack.jones@example.com
are example values. Replaceacme
with the identity domain ID of your Compute Classic account, andjack.jones@example.com
with your user name.
Example of Response Body
The following example shows the response body in JSON format.
Some lines may be truncated with ellipses (...) for readability.
{ "account": "/Compute-acme/cloud_storage", "name": "/Compute-acme/jack.jones@example.com/oraclelinux-x64", "sizes": { "uploaded": 1853334188, "total": 1853334188, "decompressed": 22020096000 }, "uri": "http://api-z999.compute.us0.oraclecloud.com/machineimage/Compute-acme/jack.jones@example.com/oraclelinux-x64", "quota": null, "no_upload": true, "state": "available", "signed_by": null, "file": "http://api-z999.compute.us0.oraclecloud.com/machineimage/Compute-acme/jack.jones@example.com/oraclelinux-x64", "signature": "", "checksums": {}, "attributes": {}, "error_reason": "", "audited": null }