Migrate Package
post
/rest/v19/migrationPackages/actions/migrate
This endpoint migrates a package.
Request
Supported Media Types
- application/json
Migrate package request.
Root Schema : migratePackage-request
Type:
object
Title:
Show Source
migratePackage-request
-
cleanPkgsOfSameName:
boolean
Title:
Clean Packages Of Same Name
Delete the packages from resources having the same name -
contents:
object Migration Resource Content
Title:
Migration Resource Content
-
includeSnapshot:
boolean
Title:
Include Snapshot
If true,create a snapshot -
migrationDescription:
string
Title:
Migration Description
Description to migrate package -
sendNotificationTo:
string
Title:
Send Notification To
Email address to send migrate Package info(success or error) -
targetProcessVarName:
string
Title:
Target Process Variable Name
variable name to perform Cross process migration -
uploadedPackageIdentifier:
string
Title:
Uploaded Package Identifier
Identifier of uploaded ZIP file in the server
Nested Schema : Migration Resource Content
Type:
object
Title:
Show Source
Migration Resource Content
-
items:
array Migration Resource Content List
Title:
Migration Resource Content List
List of Migration Resource Contents
Nested Schema : Migration Resource Content List
Type:
array
Title:
Migration Resource Content List
List of Migration Resource Contents
Show Source
-
Array of:
object migrationPackage-requestChildren
Content for the Create, Update and Update Contents Migration Package
Nested Schema : migrationPackage-requestChildren
Type:
object
Content for the Create, Update and Update Contents Migration Package
Show Source
-
category(required):
string
Title:
Migration Package Contents Category
Category of migration contents -
checked:
boolean
Title:
checked
Default Value:true
If true, add the resource to the package content -
children:
array List of children contents
Title:
List of children contents
List of children contents -
name:
string
Title:
Migration Package Contents Name
Name is an optional field in the request payload
Nested Schema : List of children contents
Type:
array
Title:
List of children contents
List of children contents
Show Source
-
Array of:
object migratePackage-subChildren
Migration Resource children contents
Nested Schema : migratePackage-subChildren
Type:
object
Migration Resource children contents
Show Source
-
checked:
boolean
Title:
checked
If true, add the resource to the package content -
children:
array List of children contents
Title:
List of children contents
List of children contents -
granular:
boolean
Title:
granular
Default Value:false
If true, the resource has low-level details -
name:
string
Title:
Migration Package Resource Name
Name is an optional field in Request Payload -
resourceType(required):
string
Title:
Migration Package node name
resourceType refers the node (This field is mandatory only for low-level details objects) -
variableName(required):
string
Title:
Migration Package Content Child Name
variableName refers the child name
Nested Schema : List of children contents
Type:
array
Title:
List of children contents
List of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest
Type:
Show Source
object
-
checkedAllChildren:
boolean
Title:
checkedAllChildren
Default Value:false
If true, considers all the children of the resource as selected. -
children:
array List of children contents
Title:
List of children contents
List of children contents -
resourceType(required):
string
Title:
resourceType
This field represents the type of resource. -
variableName(required):
string
Title:
variableName
This field represents the variableName of the resource.
Nested Schema : List of children contents
Type:
array
Title:
List of children contents
List of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest-children
Type:
Show Source
object
-
resourceType(required):
string
Title:
resourceType
This field represents the type of resource -
variableName(required):
string
Title:
variableName
This field represents the variableName of the resource.
Response
Supported Media Types
- application/json
Default Response
Migrate package task response
Root Schema : Task details
Type:
object
Title:
Task details
Task details
Show Source
-
links:
array Links to the related objects
Title:
Links to the related objects
Links to the related objects -
taskId:
integer
Title:
Task Id
Task Id
Nested Schema : Links to the related objects
Type:
array
Title:
Links to the related objects
Links to the related objects
Show Source
-
Array of:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : reference links
Type:
object
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related object
URL to the related object -
rel:
string
Title:
Link Relationship to the current object
Link Relationship to the current object
Examples
The following example shows how to migrate a package that has been uploaded to the server by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/migrationPackages/actions/migrate
Request Body Sample
{ "uploadedPackageIdentifier": "MigrationPackage_21668616413578", "targetProcessVarName": "", "sendNotificationTo": "lisa.jones@yourcompany.com", "includeSnapshot": false, "cleanPkgsOfSameName": true }
Response Body Sample
{ "taskId": 3023444194, "links": [{ "rel": "related", "href": "http://sitename.oracle.com/rest/v19/tasks/3023444194" } ], "messages": { "info": ["There are other migration tasks that are currently running. Your request will be queued."] } }