Skip to content

Import an Application to the Catalog

This guide describes how to import application to the Catalog using exported .app file, the following HTTP request you may need related api documentation:

  1. a POST request with your username and password and receive a lightweight token that will enable you as a user to authenticate future requests.
  2. a POST request to import a new application to catalog.
  3. a GET request to receive the status of the imported application with the job id.

Get authentication token for IEM API

See Authentication guide.

Importing Application to Catalog

First, you need to export an .app file of the application. Then using the following request you can import an application to the catalog:

curl -i -X POST \
-H "Authorization:<your-authorization-token>" \
'https://<your-iem-url>/portal/api/v1/application-import-jobs'
--form 'file=<your-.app-file>'

A successful response looks like this for example:

{
    "data": {
        "id": "eea1ed58a01f444c805a138cea33247a",
        "status": "PENDING",
        "message": ""
    }
}

Status Check Of An Imported Application

You can check the status of the imported application by using the following request. Note that for this, you require the job ID of the imported application:

curl -i -X GET \
-H "Authorization:<your-authorization-token>" \
'https://<your-iem-url>/portal/api/v1/application-import-jobs/<job-id>'

A successful response looks like this for example:

{
    "data": {
        "id": "eea1ed58a01f444c805a138cea33247a",
        "status": "COMPLETED",
        "message": "Import application successfully."
    }
}