The Service Configuration Profile Import and Export capability enables you to exchange service configuration parameters of an app between two environments.
Every service profile includes configuration parameters of all the services that are linked to an app. The details of the service profile are available in the form of a JSON file. You can export a service profile from one environment, edit the required service parameters in the JSON file, and then import the updated service profile to another environment.
Service profiles can be versioned in a Git repository and these versions can be used for app upgrades. This provides full portability of a service profile to deploy the profile to new clouds.
Service profiles support is available for Kony Fabric Console and MFCLI. The Export and Import features are in the Publish > Service & Web Client > CONFIGURE and PUBLISH page.
You can use service reconfiguration based on the following scenario:
To export or import a service configuration profile from the Publish tab, do the following:
Important: After you import a service profile, the existing configuration parameters get modified. This modification is based on the data imported before the SAVE & PUBLISH button was clicked.
You can export or import service profiles by using MFCLI commands for continuous integration.
The export-config
helps you to export the Service Profile for the existing services (Integration, Identity and Object), for a given app and an environment. The profile is downloaded as per the specified .json file.
java -jar mfcli.jar export-config -u <user> -p <password> -t <account id> [-f <file name> [-a <app name>] [-v <app version>] [-e <environment name>]
For example:
java -jar mfcli.jar export-config -u abc@kony.com -p password -t 100054321 -f "C:\\tmp\\Sample.json" -a MyApp_23 -v 1.0 -e MyCloudEnvironment
java -jar mfcli.jar export-config -u <user> -p <password> -au <Identity URL> -cu <Console URL> [-f <file name> [-a <app name>] [-v <app version>] [-e <environment name>]
For example:
java -jar mfcli.jar export-config -u abc@kony.com -p password -au http://10.10.24.79:8080 -cu http://10.10.24.78:8081 -f "C:\\tmp\\Sample.json" -a MyApp_23 -v 1.0 -e MyCloudEnvironment
The following arguments are supported for the export-config command:
For example, to get the summary help on all the commands,
java -jar mfcli.jar export-config help Usage: Run the self-executable JAR with relevant arguments:
Arguments | Description |
---|---|
-t, --account | Nine-digit ID of the Kony Cloud account (visible on top right corner in Console), for example, 100054321. Not relevant for an on-premise installation. |
* -a, --app | Name of the app for which Service Configuration profile is to be exported. |
-cu, --console |
URL of Kony Fabric Console (without context path), relevant for on-premise installation only. For example, http://10.10.24.78:8081 |
* -e, --environment | Name of the environment for which a Service Configuration profile is to be exported. |
* -f, --file | Name of the file to import or export. For example, C:\\tmp\\Sample.json. |
-au, --identity | URL of Kony Fabric Identity Services (without context path), relevant for on-premise installation only. For example, http://10.10.24.79:8080 |
--mfa |
If specified, Multi-Factor Authentication is enabled. The secret key for
MFA required for generating one-time password (OTP) needs to
be specified in the properties file.
The default value is set to false |
-p, --password | Password for the Kony user account. This could be plain text or, encrypted using 'encrypt' command. This is mandatory. |
-u, --user | Kony user required for authentication. For example, abc@kony.com. This is mandatory. |
-v, --version | Version of the app for which a Service Configuration profile to be
exported. The default version is set to 1.0 |
The import-config
command helps you to import the specified Service Profile in a .json file into the given app and in an environment.
java -jar mfcli.jar import-config -u <user> -p <password> -t <account id> [-f <file name> [-a <app name>] [-v <app version>] [-e <environment name>]]
For example:
java -jar mfcli.jar import-config -u abc@kony.com -p password -t 100054321 -f "C:\\tmp\\Sample.zip" -a MyApp_23 -v 1.0 -e MyCloudEnvironment
java -jar mfcli.jar import-config -u <user> -p <password> -au <Identity URL> -cu <Console URL> [-f <file name> [-a <app name>] [-v <app version>] [-e <environment name>]
For example:
java -jar mfcli.jar import-config -u abc@kony.com -p password -au http://10.10.24.79:8080 -cu http://10.10.24.78:8081 -f "C:\\tmp\\Sample.zip" -a MyApp_23 -v 1.0 -e MyCloudEnvironment
For example, to get summary help on all the commands,
java -jar mfcli.jar import-config help
Usage: Run the self-executable JAR with relevant arguments:
Arguments | Description |
---|---|
-t, --account | Nine-digit ID of the Kony Cloud account (visible on top right corner in Console), for example, 100054321. Not relevant for an on-premise installation. |
* -a, --app | Name of the app for which a Service Configuration profile is to be exported. |
-cu, --console | URL of Kony Fabric Console (without context path), relevant for on-premise installation only. For example, http://10.10.24.78:8081 |
* -e, --environment | Name of the environment for which a Service Configuration profile is to be exported. |
* -f, --file | Name of the file to import or export. For example, C:\\tmp\\Sample.json. |
-au, --identity | URL of Kony Fabric Identity Services (without context path), relevant for on-premise installation only. For example, http://10.10.24.79:8080 |
--mfa |
If specified, Multi-Factor Authentication is enabled. The secret key for
MFA required for generating one-time password (OTP) needs to
be specified in the properties file.
The default value is set to: false |
-p, --password | Password for the Kony user account. This could be plain text or, encrypted using 'encrypt' command. This is mandatory. |
-u, --user | Kony user required for authentication, For example, abc@kony.com. This is mandatory. |
-v, --version | Version of the app for which a Service Configuration profile to be
exported. The default version is set to 1.0 . |
Copyright © 2020 Kony, Inc. All rights reserved. |