Merge Machine Image Chunk
patch
/appstore/publisher/v1/machineimages/{uploadRequestId}
This is the final step of chunk upload. It is to request the merge of the chunk files and complete the upload.
Request
Supported Media Types
- multipart/form-data
Path Parameters
-
uploadRequestId: integer(int64)
ID of the upload request with which the chunks are to be associated.
Provide required information.
Root Schema : schema
Type:
string
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
400 Response
Invalid Parameter Value
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example uploads the machineimage, by submitting a PATCH request on the REST resource using cURL.
cURL Example
curl -X PATCH -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/machineimages/7361253"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token
Request Body
[form-data] action: upload
HTTP Status Code
200 OK
JSON Response
{ "message": "OK", "entityId": "7934756" }Back to Top