Machine Image Upload Request Search

get

/appstore/publisher/v1/machineimages

Get the list of machine image upload requests

Request

Query Parameters
  • This is a filter option to filter the result set based on the keyword specified
  • 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).
  • This is a filter option to filter the result set based on the specified machineimage statuses. It accepts multiple comma seperated values. Acceptable values are COMPLETED, DELETED, DELECTION FAILED, FAILED, IN PROGESS, INITIATED, PENDING, REJECTED, VIRUS SCAN IN PROGRESS
  • 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).
  • This property sorts the result set. Acceptable values are NAME and LASTUPDATEDATE
  • This property specifies the order in which to sort the result set. Acceptable values are ASC and DESC.
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 machineimages, 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/machineimages?keyword=2016&limit=1"

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": {
      "uploadRequestId": 2684317,
      "application": "2016-April-0330",
      "version": "9.0",
      "operatingSystem": "linux",
      "fileName": "TestCrome.gz",
      "statusName": "Pending",
      "createdBy": "Fname Lname",
      "createdDate": "Mon, 04 Apr 2016 12:08:59 GMT",
      "lastModifiedBy": "Fname Lname",
      "lastModifiedDate": "2017-02-22T11:06:59.001Z"
      }
    },
    {
    "machineimage": {
      "uploadRequestId": 2684283,
      "application": "2016-April-0330",
      "version": "9.0",
      "operatingSystem": "linux",
      "fileName": "TestCrome.gz",
      "statusName": "Initiated",
      "createdBy": "Fname Lname",
      "createdDate": "Mon, 04 Apr 2016 11:54:21 GMT",
      "lastModifiedBy": "Fname Lname",
      "lastModifiedDate": "2017-02-22T11:06:59.001Z"
      }
    }
  ],
  "hasMore": false,
  "count": 2,
  "totalResults": 2,
  "links": [
    {
      "rel": "CANONICAL",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/machineimages"
    },
    {
      "rel": "SELF",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/machineimages?keyword=2016&limit=2"
    }
  ]
}


Back to Top