Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Status Codes

Description

200 OK

The event successfully called the method, and the body contains the results

To export the application to a zip file, run a curl command like the following:

curl http://localhost:11015/v3/export/apps > outfile.zip

The zip file contains the JSON of the application.

Details of a List of Applications

...

Code Block
[
  {
    "type": "App",
    "name": "POS_Sales_per_Region",
    "version": "1.0.0",
    "description": "Data Pipeline Application",
    "artifact": {
      "name": "cdap-data-pipeline",
      "version": "6.2.3",
      "scope": "SYSTEM"
    }
  },
  {
    "type": "App",
    "name": "POS_Sales_per_Region_v1",
    "version": "1.0.1",
    "description": "Data Pipeline Application",
    "artifact": {
      "name": "cdap-data-pipeline",
      "version": "6.2.3",
      "scope": "SYSTEM"
    }
  }
]

To export the list of applications to a zip file, run a curl command like the following:

...

The zip file contains the JSON files for each application listed in the response.

Upgrade an Application

Notes:

  • Upgrading real-time pipelines (cdap-data-streams) to use the latest version of application artifacts is not supported.

  • Back up all applications before performing the upgrade.

  • To get the name of the application you want to upgrade, use the GET request listed in “List Applications”.

...

Export All Application Details

To If you’re running Windows, you can export all application details for all namespaces as a ZIP archive file, usewith the following request:

Code Block
GET /v3/export/apps

...

If you’re running Windows and have powershell, you can use the this command instead:

Code Block
powershell -c Invoke-WebRequest http://localhost:11015/v3/export/apps -OutFile ./outfile.zip

This creates These commands create a folder with the name of the zip file and writes write the contents to a file called outfile.zip in the directory you ran the command from. output.zip contains the JSON files for all of the applications in all namespaces in the CDAP instance.

...