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
-
datacenter(optional): string
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
-
keyword(optional): string
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(optional): integer(int32)
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(optional): integer(int32)
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).
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
Nested Schema : MachineImageUploadRequest
Type:
Show Source
object
-
application(optional):
string
-
checkSum(optional):
string
-
createdBy(optional):
string
-
createdDate(optional):
string
-
dataCenterImageUploadRequests(optional):
array dataCenterImageUploadRequests
-
fileName(optional):
string
-
imageFilePath(optional):
string
-
lastModifiedBy(optional):
string
-
lastModifiedDate(optional):
string
-
operatingSystem(optional):
string
-
overwriteStorageFile(optional):
boolean
-
pendingChunks(optional):
integer(int32)
-
statusName(optional):
string
-
uploadedChunks(optional):
integer(int32)
-
uploadRequestId(optional):
integer(int64)
-
version(optional):
string
Nested Schema : Link
Type:
Show Source
object
-
href(optional):
string
-
rel(optional):
string
Allowed Values:
[ "SELF", "CANONICAL", "NEXT", "TEMPLATE", "PREV" ]
400 Response
Invalid Parameter Value
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
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