Copy storage image to DataCenter
post
/appstore/publisher/v1/storageimages/{machineImagePath}
Post a request to copy or over write storage image to other data centers.
Request
Supported Media Types
- application/xml
- application/json
Path Parameters
-
machineImagePath: string
Machine image path which need to be copied.
Provide the body with required information.
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
400 Response
Invalid Parameter Value
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example copy or over write the machineimage, by submitting a POST request on the REST resource using cURL.
cURL Example
curl -X POST -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/storageimages/mi/sun/sun/sun/ruby-2.4.1.tar.gz"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token
Request Body
{ "sourceDataCenter": "ngcompute", "copyToDataCenters": [ "Sydney Account", "ashpublisher" ], "overwriteDataCenters": [ "Cherry" ] }
HTTP Status Code:
200 OK
JSON Response:
{ "message": "Request initiated to copy image : mi/sun/sun/sun/ruby-2.4.1.tar.gz", "entityId": "7934470" }Back to Top