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
Path Parameters
Body ()
Provide the body with required information.
Root Schema : StorageImageCopyRequest
Type: object
Show Source
Nested Schema : copyToDataCenters
Type: array
Show Source
Nested Schema : overwriteDataCenters
Type: array
Show Source
Back to Top

Response

Supported Media Types

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 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