Detailed Status of Machine Image Upload Request
get
/appstore/publisher/v1/machineimages/{uploadRequestId}
Get the detailed status of a machine image upload request.
Request
Path Parameters
-
uploadRequestId: integer(int64)
Upload request ID.
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
Root 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
400 Response
Invalid Parameter Value
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example returns the details of machineimage, 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/2797087"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token
Request Body
None
HTTP Status Code:
200 OK
JSON Response:
{ "uploadRequestId": 2797087, "application": "APS1826_WWP_061218", "version": "OL67", "operatingSystem": "Linux", "fileName": "wordpress.tar.gz", "imageFilePath": "oracle_pdc2/mi/APS1826_WWP_061218/OL67/Linux/wordpress.tar.gz", "statusName": "Completed", "uploadedChunks": 75, "pendingChunks": 0, "createdBy": "John Doe", "createdDate": "2018-06-12T04:28:50.001Z", "lastModifiedBy": "anonymous", "lastModifiedDate": "2018-06-12T04:52:51.001Z", "overwriteStorageFile": false, "dataCenterImageUploadRequests": [ { "dataCenterName": "US2 COMMERCIAL CHERRY", "statusName": "Completed", "uploadProgress": "100%", "region": "US2 Commercial Cherry", "lastUpdatedDate": "2018-06-12T04:52:51.001Z", "copyUpload": false, "overwriteUpload": false, "replicaDataCenter": false } ] }Back to Top