Get All Migration Package Content
get
                    /rest/v19/migrationPackages/{identifier}/contents
This endpoint retrieves all content within a migration package.
                
                Request
Path Parameters
                - 
                    identifier(required): string
                    
                    The unique identifier of the package the user wants to fetch.
Query Parameters
                - 
                        retrieveFromPackageZip: boolean
                        
                        To fetch uploaded package content.
- 
                        targetProcessVarName: string
                        
                        Cross process migration variable name.This field is only applicable if retrieveFromPackageZip is set as true.
Response
Supported Media Types
                - application/json
Default Response
Migration package content information
                
                
                    Root Schema : migrationContent-collection
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            items: 
            array  Migration resources list
            
            Title:Migration resources listList of migration resources
- 
            links: 
            array  Migration Package Links
            
            Title:Migration Package LinksLinks for Migration Package Contents. These links contains self and parent link
Nested Schema : Migration resources list
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Migration resources listList of migration resources
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  migrationContent
            
            Low-level details
Nested Schema : Migration Package Links
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Migration Package LinksLinks for Migration Package Contents. These links contains self and parent link
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  referenceLinks
            
            Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : migrationContent
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectLow-level details
    
    
    
    
    Show Source
        - 
            category: 
            string
            Title:Migration Package Contents CategoryIt's a category of migration contents
- 
            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  migrationContent-children
            
            Migration Resource children contents
Nested Schema : migrationContent-children
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectMigration Resource children contents
    
    
    
    
    Show Source
        - 
            granular: 
            boolean
            Title:granularIf true, the resource has low-level details
- 
            links: 
            array  Category Migration Resource Links
            
            Title:Category Migration Resource LinksLinks for Category Migration Package Contents low-level details. These links contains related link (This links populate only when granular=true)
- 
            name: 
            string
            Title:Migration Resource Child NameName is an optional field in Request Payload
- 
            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 Resource Child VarNamevariable name refers the child varname
Nested Schema : Category Migration Resource Links
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Category Migration Resource LinksLinks for Category Migration Package Contents low-level details. These links contains related link (This links populate only when granular=true)
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  referenceLinks
            
            Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : referenceLinks
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectReference links for the Parent, Self, Children and Related as applicable
    
    
    
    
    Show Source
        - 
            href: 
            string
            Title:URL to the related objectURL to the related object
- 
            rel: 
            string
            Title:Link Relationship to the current objectLink Relationship to the current object
Examples
The following example shows how to get all migration resources for an existing migration package by submitting a GET 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/migrationPackage_v1/contents
Response Body Sample
{
  "items": [{
      "name": "Configuration",
      "category": "CONFIGURATION",
      "children": [{
          "name": "Integration",
          "variableName": "integration",
          "resourceType": "product_family_configuration"
        }
      ]
    }, {
      "name": "Commerce",
      "category": "COMMERCE",
      "children": [{
          "name": "Test",
          "variableName": "test",
          "resourceType": "process"
        }
      ]
    }
  ],
  "links": [{
      "rel": "self",
      "href": "http://sitename.oracle.com/rest/v19/migrationPackages/migrationPackage_v1/contents"
    }, {
      "rel": "parent",
      "href": "http://sitename.oracle.com/rest/v19/migrationPackages/migrationPackage_v1"
    }
  ]
}