/api/application/appcatalog/helm: POST

Creates and installs a helm chart (and it adds an -application suffix to the end of the name for easy retrieval).

The following table shows which roles can access this REST API endpoint:
Table 1. Access by role
Data admin CollectionAdmin Data user Admin Service user
X X Χ Χ

Synopsis of the request URL

curl -k -H “Authorization: Bearer <token>” -H "Content-Type: application/json"  
https://<spectrum_discover_host>/api/application/appcatalog/helm

Supported request types and response formats

Supported request types:
  • POST
Supported response formats:
  • JSON

Examples

The following example shows how to create an application as a helm chart. In the example:
application_name
The name of the chart.
description
The description of the chart.
version
The semver2 version number.
repo_name
The name of the tagged image that is in the local docker registry.
For the contents of the exif.json file, enter this information:
[moadmin@spectrum-discover ~]$ cat exif.json
{
    "application_name":"exif-header-extractor",
    "version":"0.0.2",
    "description":"This extracts exif header information for jpg/jpeg or tiff files.",
    "repo_name":"ibmcom/spectrum-discover-exif-header-extractor"
}
Request:
curl -X POST -k -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" https://<spectrum_discover_host>/api/application/appcatalog/helm -d@exif.json | jq
Response:
{
  "success": "true",
  "message": "Successfully deployed application.",
  "chart_name": "exif-header-extractor-application-0-0-2",
  "deployment_name": "exif-header-extractor-application-0-0-2"
}