Get list of machine images from data centers.

get

/appstore/publisher/v1/storageimages

Get a list of all the machine images available in default data center. Other data center names can be passed in query param, if user wants to fetch details from other data centers.

Request

Query Parameters
  • This is to specify from which all data centers machine image details need to be fetched. If no value is specified, details from default data center will be provided
  • This is a filter option to filter the result set based on the keyword specified. Keyword value will be matched with Name, Version and Operating System
  • Limit tells how many records to return (starting from the offset). Limit should be greater than zero and less than or equal to 100 (default=30).
  • Offset and limit together determine how many records to return from the collection. Offset is the starting index of the records to return, which should be greater than or equal to zero (default=0).
Back to Top

Response

Supported Media Types

200 Response

Successful Operation
Body ()
Root Schema : collection
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : MachineImageUploadRequest
Type: object
Show Source
Nested Schema : dataCenterImageUploadRequests
Type: array
Show Source
Nested Schema : DataCenterImageUploadRequest
Type: object
Show Source

400 Response

Invalid Parameter Value

401 Response

Not Authorized

404 Response

Entity Not Found

500 Response

System Error
Back to Top

Examples

The following example fetches all the machineimage details from data centers, by submitting a GET request on the REST resource using cURL.

cURL Example

curl -X GET -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/storageimages"

Request Header

X-Oracle-UserId: fname.lname@oracle.com 
Authorization: Bearer Access-token 

Request Body

None

HTTP Status Code:

200 OK

JSON Response:

{
  "items": [
    {
            "machineimage": {
                "application": "111",
                "version": "111",
                "operatingSystem": "111",
                "fileName": "jaxrs-ri-2.22.1.gz",
                "imageFilePath": "mi/111/111/111/jaxrs-ri-2.22.1.gz",
                "lastModifiedDate": "Apr 25, 2017 at 04:25 PM UTC"
            }
        },
        {
            "machineimage": {
                "application": "121212",
                "version": "121212",
                "operatingSystem": "121212",
                "fileName": "jaxrs-ri-2.22.1.gz",
                "imageFilePath": "mi/121212/121212/121212/jaxrs-ri-2.22.1.gz",
                "lastModifiedDate": "Apr 24, 2017 at 12:19 PM UTC"
            }
        }
  ],
  "hasMore": false,
  "count": 2,
  "totalResults": 2,
  "links": [
    {
      "rel": "CANONICAL",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/storageimages"
    },
    {
      "rel": "SELF",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/storageimages"
    }
  ]
}
Back to Top