Get Dependencies for Selected Migration Resources or a Migration Package from Source Site
/rest/v19/migrationResources/dependencies
Request
- application/json
-
password(required): string
Source site user password.
-
siteUrl(required): string
Source site URL.
-
username(required): string
Source site user name.
objectdependency-Request-
contents:
object Contents
Title:
Contents -
packageIdentifier:
string
Title:
Package IdentifierIdentifier of the package the user wishes to get dependencies
objectContents-
items:
array Migration Package Content List
Title:
Migration Package Content ListList of Migration Package Contents
arrayMigration Package Content List-
Array of:
object migrationPackage-requestChildren
Content for the Create, Update and Update Contents Migration Package
object-
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
arrayList of children contents-
Array of:
object migratePackage-subChildren
Migration Resource children contents
object-
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
arrayList of children contentsobject-
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.
arrayList of children contentsobject-
resourceType(required):
string
Title:
resourceTypeThis field represents the type of resource -
variableName(required):
string
Title:
variableNameThis field represents the variableName of the resource.
Response
- application/json
Default Response
object-
items:
array List of Dependent Resources
Title:
List of Dependent ResourcesList of dependent resources
arrayList of Dependent Resources-
Array of:
object dependencyResponse-children
Dependency response
object-
category:
string
Title:
Migration Resource CategoryCategory -
children:
array List of Resources
Title:
List of ResourcesList of resources -
name:
string
Title:
Migration Resource Category NameName of the category
arrayList of Resources-
Array of:
object dependencyResponse-subChildren
Migration resource
object-
dependencies:
array List of Migration Resource Dependencies
Title:
List of Migration Resource DependenciesList of migration resource dependencies -
name:
string
Title:
Migration Resource NameName of resource -
resourceType:
string
Title:
Migration Package node nameresourceType refers to the node type -
resourceTypeLabel:
string
Title:
Migration Resource Type LabelresourceTypeLabel refers the node type label -
variableName:
string
Title:
Migration Resouce Variable NameMigration resource variable name
arrayList of Migration Resource Dependencies-
Array of:
object dependencyDetails
Migration resource dependency
object-
category:
string
Title:
Migration Resource CategoryMigration resource category -
hierarchy:
string
Title:
Migration Resource HierarchyHierarchy refers path information of the resource -
hierarchyLabel:
string
Title:
Migration Resource Hierarchy LabelHierarchy label refers path information of the resource -
name:
string
Title:
Migration Resource NameName of the resource -
resourceType:
string
Title:
Migration Package node nameresourceType refers to the node type -
resourceTypeLabel:
string
Title:
Migration Resource Type LabelresourceTypeLabel refers the node type label -
type:
string
Title:
Migration Resource Dependency TypeMigration resource dependency type -
variableName:
string
Title:
Migration Resource Variable NameMigration resource variable name
Examples
The Get Dependencies for Selected Migration Resources or a Migration Package from Source Site REST API retrieve dependencies for selected migration resources or migration package from a source site by specifying an advanced query object (i.e. "q" criteria) as a request body parameter. This allows administrators to customize the query by specifying various combinations of criteria.
The following examples show how to search parts 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 "Content-type: application/json" https://sitename.oracle.com/rest/v19/migrationResources/dependencies
Example of Dependencies of Selected Migration Resources from a Source Site
Request Body Sample
{
"contents": {
"items": [{
"category": "COMMERCE",
"children": [{
"name": "test",
"variableName": "test",
"granular": true,
"children": [{
"variableName": "test",
"resourceType": "process",
"checked": false,
"children": [{
"name": "Main",
"variableName": "main",
"resourceType": "document",
"children": [{
"name": "Save",
"variableName": "save",
"resourceType": "action",
"modifiedByUser": "superuser",
"lastModified": "08/01/2023 10:28 PM"
}, {
"name": "Submit",
"variableName": "submit",
"resourceType": "action",
"modifiedByUser": "superuser",
"lastModified": "08/01/2023 10:27 PM"
}
]
}
]
}
]
}
]
}
]
}
}
Response Body Sample
{
"items": [{
"name": "Commerce",
"category": "COMMERCE",
"children": [{
"name": "Test",
"variableName": "test",
"resourceType": "process",
"resourceTypeLabel": "Commerce",
"granular": true,
"dependencies": [{
"name": "Step Name",
"category": "COMMERCE",
"variableName": "stepName",
"resourceType": "attribute",
"resourceTypeLabel": "Attribute(s)",
"type": "LOW_LEVEL",
"hierarchy": "test~process/main~document/stepName~attribute",
"hierarchyLabel": "Test/Document(s)/Main/Attribute(s)/Step Name",
"source": [{
"name": "Save",
"variableName": "save",
"resourceType": "action",
"resourceTypeLabel": "Action(s)",
"hierarchyLabel": "Test/Document(s)/Main/Action(s)"
}
]
}, {
"name": "HTML Field 1",
"category": "COMMERCE",
"variableName": "hTMLField1",
"resourceType": "attribute",
"resourceTypeLabel": "Attribute(s)",
"type": "LOW_LEVEL",
"hierarchy": "test~process/main~document/hTMLField1~attribute",
"hierarchyLabel": "Test/Document(s)/Main/Attribute(s)/HTML Field 1",
"source": [{
"name": "Save",
"variableName": "save",
"resourceType": "action",
"resourceTypeLabel": "Action(s)",
"hierarchyLabel": "Test/Document(s)/Main/Action(s)"
}, {
"name": "Submit",
"variableName": "submit",
"resourceType": "action",
"resourceTypeLabel": "Action(s)",
"hierarchyLabel": "Test/Document(s)/Main/Action(s)"
}
]
}
]
}
]
}
]
}
Example of Dependencies of a Migration Package from a Source Site
Request Body Sample
{
"packageIdentifier": "migrationPackage_v1",
"contents": {
"items": [{
"category": "COMMERCE",
"children": [{
"name": "test",
"variableName": "test",
"granular": true,
"children": [{
"variableName": "test",
"resourceType": "process",
"checked": false,
"children": [{
"name": "Main",
"variableName": "main",
"resourceType": "document",
"children": [{
"name": "Save",
"variableName": "save",
"resourceType": "action",
"modifiedByUser": "superuser",
"lastModified": "08/01/2023 10:28 PM"
}, {
"name": "Submit",
"variableName": "submit",
"resourceType": "action",
"modifiedByUser": "superuser",
"lastModified": "08/01/2023 10:27 PM"
}
]
}
]
}
]
}
]
}
]
}
}
Response Body Sample
{
"items": [{
"name": "Commerce",
"category": "COMMERCE",
"children": [{
"name": "Test",
"variableName": "test",
"resourceType": "process",
"resourceTypeLabel": "Commerce",
"granular": true,
"dependencies": [{
"name": "Step Name",
"category": "COMMERCE",
"variableName": "stepName",
"resourceType": "attribute",
"resourceTypeLabel": "Attribute(s)",
"type": "LOW_LEVEL",
"hierarchy": "test~process/main~document/stepName~attribute",
"hierarchyLabel": "Test/Document(s)/Main/Attribute(s)/Step Name",
"source": [{
"name": "Save",
"variableName": "save",
"resourceType": "action",
"resourceTypeLabel": "Action(s)",
"hierarchyLabel": "Test/Document(s)/Main/Action(s)"
}
]
}, {
"name": "HTML Field 1",
"category": "COMMERCE",
"variableName": "hTMLField1",
"resourceType": "attribute",
"resourceTypeLabel": "Attribute(s)",
"type": "LOW_LEVEL",
"hierarchy": "test~process/main~document/hTMLField1~attribute",
"hierarchyLabel": "Test/Document(s)/Main/Attribute(s)/HTML Field 1",
"source": [{
"name": "Save",
"variableName": "save",
"resourceType": "action",
"resourceTypeLabel": "Action(s)",
"hierarchyLabel": "Test/Document(s)/Main/Action(s)"
}, {
"name": "Submit",
"variableName": "submit",
"resourceType": "action",
"resourceTypeLabel": "Action(s)",
"hierarchyLabel": "Test/Document(s)/Main/Action(s)"
}
]
}
]
}
]
}
]
}