Helm Chart APIs for Application Management
You can find the following APIs in the 'Apps - Managed by Helm Chart' section of the TIBCO Flogo® Capability APIs page. For instructions on how to access the APIs, see Accessing the API Documentation with Swagger UI.
-
Apps deployed using a Helm chart are identified with the "
Managed" in the App Details page. This label indicates that the app deployment is managed through Helm, providing clear identification of Helm-managed applications.
-
Apps deployed using the Helm chart APIs cannot be managed using the FLOGO provisioner APIs. You can manage these apps using the APIs under the 'Apps - Managed by Helm Chart' and 'Apps and Builds' sections.
-
To use a namespace other than the default data plane namespace for APIs using the Namespace parameter, see Deploying App Outside Data Plane Namespace.
API for Generating the YAML File from an App Build
Use the GET /v2/dp/builds/{buildId}/values
API to generate the values.yaml
file from an app build for the provided build Id.
To generate the YAML file, you need the build Id parameter. To get the build Id, see API for Building an Application Executable Using app.json or app.flogo File.
Build Id: The applications build Id.
METHOD | Path Parameter |
---|---|
GET |
|
API for Deploying an Application Helm Chart Using YAML File
Use the POST /v2/dp/deploy/release
API to deploy or upgrade a TIBCO Flogo application Helm chart using the values.yaml
file.
values.yaml
file is mandatory for upgrading an existing application. If you are deploying the application for the first time, the App Id remains blank.To deploy the app, you need the following parameters:
-
Namespace: The namespace where the application is deployed. This parameter is not mandatory and is only required if the application is running outside of the default data plane namespace.
-
Chart Name: (Optional) The TIBCO Flogo application Helm chart name.
-
Chart Version: (Optional) The TIBCO Flogo application Helm Chart version.
-
Retain Failed App: This parameter controls whether failed app deployments are retained. The app is always retained for the app upgrade flow. The default value is false. Set to true to retain failed app deployments.
-
EULA: The End-User License Agreement for the TIBCO Flogo application.
METHOD | Path Parameters |
---|---|
POST |
|
App not present in dp
". In this case, you can delete the app and redeploy it using the relevant APIs to resolve the issue.
API for Viewing Helm Chart Values
Use the GET /v2/dp/apps/{appId}/release/values
API to return a list of helm chart values from the TIBCO Flogo app deployment.
To view the helm chart values, you need the following parameters:
-
App Id: The application Id.
-
Namespace: The namespace where the application is deployed. This parameter is not mandatory and is only required if the application is running outside of the default data plane namespace.
-
All values: All the required computed values. The default value is false.
METHOD | Path Parameters |
---|---|
GET |
|
API for Updating Helm Chart values
Use the PUT /v2/dp/apps/{appId}/release/values
API to update the Helm chart values for the TIBCO Flogo application chart. The values can be provided in the values.yaml
payload.
To update the helm chart values, you need the following parameters:
-
App Id: The application Id.
-
Namespace: The namespace where the application is deployed. This parameter is not mandatory and is only required if the application is running outside of the default data plane namespace.
METHOD | Path Parameters |
---|---|
PUT |
|
API for Viewing Status of an Application Chart Deployment Chart Values
Use the GET /v2/dp/apps/{appId}/release/status
API to return a list of the status of an application deployed for an app Id.
To view the status of an application chart, you need the following parameters:
-
App Id: The application Id.
-
Namespace: The namespace where the application is deployed. This parameter is not mandatory and is only required if the application is running outside of the default data plane namespace.
METHOD | Path Parameters |
---|---|
GET |
|
API to Roll back an Application Helm Chart Release
Use the PUT /v2/dp/apps/{appId}/release/rollback
API to roll back an application's Helm chart release to a specific version. With this API, you can revert your application to a previous deployment state.
To roll back an application's Helm chart release, you need the following parameters:
-
App Id: The application Id.
-
Namespace: The namespace where the application is deployed. This parameter is not mandatory and is only required if the application is running outside of the default data plane namespace.
-
Revision: The revision number to roll back to. Default value: 0 (previous revision).
-
Force: A boolean flag indicating whether to force the rollback. The default value is false.
METHOD | Path Parameters |
---|---|
PUT |
|
API for Renaming an Application Chart Deployment
Use the PUT /v2/dp/apps/{appId}/rename
API to rename an application deployment.
To rename an application deployment, you need the following parameters:
-
App Id: The application Id.
-
App Name: The new application name.
-
Namespace: The namespace where the application is deployed. This parameter is not mandatory and is only required if the application is running outside of the default data plane namespace.
METHOD | Path Parameters |
---|---|
PUT |
|
API for Enabling or Disabling Service Mesh for an Application
Use the PUT /v2/dp/apps/{appId}/servicemesh
API to enable or disable service mesh sidecar of an application.
To enable or disable service mesh for an app, you need the following parameters:
-
App Id: The application Id.
-
Namespace: The namespace where the application is deployed. This parameter is not mandatory and is only required if the application is running outside of the default data plane namespace.
-
Enable: A boolean flag to enable or disable the service mesh. Set to true to enable, false to disable.
METHOD | Path Parameters |
---|---|
PUT |
|
API for Modifying or Creating Auto Scaling Configuration for an Application
Use the PUT /v2/dp/apps/{appId}/autoscaling
API to modify or create the auto scaling configuration instance for a deployed application. You can define the minimum and maximum number of replicas and set CPU and memory thresholds for scaling in the Request body section.
To modify or create an auto scaling configuration for an app, you need the following parameters:
-
App Id: The application Id.
-
Namespace: The namespace where the application is deployed. This parameter is not mandatory and is only required if the application is running outside of the default data plane namespace.
METHOD | Path Parameters |
---|---|
PUT |
|
Request Body Field Descriptions:
-
hpaMetrics: Defines the metrics used for Horizontal Pod Autoscaler (HPA).
-
cpuUtilization: Configures CPU-based scaling.
-
averageCpuUtilization: The desired average CPU utilization (as a percentage) before scaling occurs.
-
enabled: Set to true to enable CPU-based scaling.
-
memoryUtilization: Configures memory-based scaling.
-
averageMemoryUtilization: The desired average memory utilization (as a percentage) before scaling occurs.
-
enabled: Set to true to enable memory-based scaling.
-
maxReplicas: The maximum number of replicas that the application can scale up to.
-
minReplicas: The minimum number of replicas that the application should always have running.
API for Removing Auto Scaling for an Application
Use the DELETE /v2/dp/apps/{appId}/autoscaling
API to delete auto scaling configuration for an application.
To remove the auto scaling configuration of an app, you need the following parameters:
-
App Id: The application Id.
-
Namespace: The namespace where the application is deployed. This parameter is not mandatory and is only required if the application is running outside of the default data plane namespace.
METHOD | Path Parameters |
---|---|
DELETE |
|
API for Changing an Application Endpoint to Private
Use the DELETE /v2/dp/apps/{appId}/endpoints/public
API to change an applications endpoint to private. This API removes the Ingress resource from the application to make the endpoint private.
To change the app endpoint to private, you need the following parameters:
-
App Id: The application Id.
-
Namespace: The namespace where the application is deployed. This parameter is not mandatory and is only required if the application is running outside of the default data plane namespace.
METHOD | Path Parameters |
---|---|
DELETE |
|
API for Changing an Application Endpoint to Public
Use the POST /v2/dp/apps/{appId}/endpoints/public
API to change an application endpoint to public. This API allows you to configure ingress settings to expose your application to external access.
To change the app endpoint to public, you need the following parameters:
-
App Id: The application Id.
-
Namespace: The namespace where the application is deployed. This parameter is not mandatory and is only required if the application is running outside of the default data plane namespace.
METHOD | Path Parameters |
---|---|
POST |
|
Request Body Field Descriptions:
-
IngressClassName
: The name of the Ingress class to use for this application. -
IngressControllerName
: The name of the ingress controller to use. -
IngressHostName
: The hostname to use for the Ingress rule. This is the public address used to access the application. -
IngressTLSConfigs
: (Optional) An array of TLS configurations for HTTPS access.-
hosts
: A list of hostnames that the TLS certificate should be valid for. -
secretName
: The name of the Kubernetes secret containing the TLS certificate and key.
-
-
portServicePathMappings
: An array defining how application ports are mapped to services and paths.-
port
: The application port number. -
servicePath
: The path that is appended to the Ingress hostname to access this port. -
isPublic
: Set totrue
to make this port public. -
isServicediscoveryEnabled
: Set totrue
to enable service discovery for this port.
-
-
customAnnotations
: (Optional) An array of custom annotations to add to the Ingress rule.