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:
objectTitle:
Show Source
migratePackage-request-
cleanPkgsOfSameName:
boolean
Title:
Clean Packages Of Same NameDelete the packages from resources having the same name -
contents:
object Migration Resource Content
Title:
Migration Resource Content -
includeSnapshot:
boolean
Title:
Include SnapshotIf true,create a snapshot -
migrationDescription:
string
Title:
Migration DescriptionDescription to migrate package -
sendNotificationTo:
string
Title:
Send Notification ToEmail address to send migrate Package info(success or error) -
targetProcessVarName:
string
Title:
Target Process Variable Namevariable name to perform Cross process migration -
uploadedPackageIdentifier:
string
Title:
Uploaded Package IdentifierIdentifier of uploaded ZIP file in the server
Nested Schema : Migration Resource Content
Type:
objectTitle:
Show Source
Migration Resource Content-
items:
array Migration Resource Content List
Title:
Migration Resource Content ListList of Migration Resource Contents
Nested Schema : Migration Resource Content List
Type:
arrayTitle:
Migration Resource Content ListList 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:
objectContent for the Create, Update and Update Contents Migration Package
Show Source
-
category(required):
string
Title:
Migration Package Contents CategoryCategory of migration contents -
checked:
boolean
Title:
checkedDefault Value:trueIf true, add the resource to the package content -
children:
array List of children contents
Title:
List of children contentsList of children contents -
name:
string
Title:
Migration Package Contents NameName is an optional field in the request payload
Nested Schema : List of children contents
Type:
arrayTitle:
List of children contentsList of children contents
Show Source
-
Array of:
object migratePackage-subChildren
Migration Resource children contents
Nested Schema : migratePackage-subChildren
Type:
objectMigration Resource children contents
Show Source
-
checked:
boolean
Title:
checkedIf true, add the resource to the package content -
children:
array List of children contents
Title:
List of children contentsList of children contents -
granular:
boolean
Title:
granularDefault Value:falseIf true, the resource has low-level details -
name:
string
Title:
Migration Package Resource NameName is an optional field in Request Payload -
resourceType(required):
string
Title:
Migration Package node nameresourceType refers the node (This field is mandatory only for low-level details objects) -
variableName(required):
string
Title:
Migration Package Content Child NamevariableName refers the child name
Nested Schema : List of children contents
Type:
arrayTitle:
List of children contentsList of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest
Type:
Show Source
object-
checkedAllChildren:
boolean
Title:
checkedAllChildrenDefault Value:falseIf true, considers all the children of the resource as selected. -
children:
array List of children contents
Title:
List of children contentsList of children contents -
resourceType(required):
string
Title:
resourceTypeThis field represents the type of resource. -
variableName(required):
string
Title:
variableNameThis field represents the variableName of the resource.
Nested Schema : List of children contents
Type:
arrayTitle:
List of children contentsList of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest-children
Type:
Show Source
object-
resourceType(required):
string
Title:
resourceTypeThis field represents the type of resource -
variableName(required):
string
Title:
variableNameThis field represents the variableName of the resource.
Response
Supported Media Types
- application/json
Default Response
Migrate package task response
Root Schema : Task details
Type:
objectTitle:
Task detailsTask details
Show Source
-
links:
array Links
Title:
LinksLinks to the related objects. -
taskId:
integer
Title:
Task IdThe status log task Id.
Nested Schema : Links
Type:
arrayTitle:
LinksLinks to the related objects.
Show Source
-
Array of:
object Reference Links
Title:
Reference LinksReference links for the Parent, Self, Children and Related as applicable
Nested Schema : Reference Links
Type:
objectTitle:
Reference LinksReference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
hrefURL to the related object -
rel:
string
Title:
LinkLink 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."]
}
}