Some services support additional configuration parameters in the create-service
request. These parameters are parsed in a valid JSON object containing the service-specific configuration parameters.
The deploy service supports the following methods for the specification of service creation parameters:
-
Method A - an entry in the MTA deployment descriptor or the extension
-
Method B - a JSON file with the required service configuration parameters
If service-creation information is supplied both in the deployment (or extension) descriptor and in a supporting JSON file, the parameters specified directly in the deployment (or extension) descriptor override the parameters specified in the JSON file.
Service creation parameters - method comparison
Method A |
Method B |
Combination of the two methods |
---|---|---|
|
|
|
Using method A, all parameters under the special config
parameter are used for the service creation request. This parameter is optional.
You can use the optional
path
parameter to navigate to a JSON file containing service-specific parameters and configurations. The content of the file is used for the creation or update of the service instance.Note that if you are deploying from a local directory using an
mtad.yaml
, it needs to contain the path to the JSON file, so that the relevantMANIFEST.MF
entry is generated.
Using method B, there are dependencies on further configuration entries in other configuration files. For example, if you use this JSON method, an additional entry must be included in the MANIFEST.MF
file which defines the path to the JSON file containing the parameters as well as the name of the resource for which the parameters should be used.
Related Information
Standalone Application Router - HTML5 Application Repository