template command

Example: Templatize a bundle
gateway83
Purpose and Usage
Templating lets you control environment-specific values between
API Gateway
s. You can migrate the same policies, services, and folders into a Gateway while changing only environmental settings. Specifically, you can:
  • Templatize content after a 
    migrateOut
  • Use the detemplate command before
    migrateIn
    to detemplatize, or use the
    --template
    argument during migrateIn.
Run the template command last, just before the migrateIn command.
Example: Templatize a bundle
This command modifies the bundle and creates a properties file.
$ ./GatewayMigrationUtility.sh template --bundle bundle.xml --template bundleTemplate.properties
Example: Templatized bundle snippet
In the following example, the cluster property, 
authCache.maxFailureTime
 is templatized.
templatized_bundle_snippet3
templatized_bundle_snippet3
The prefix "template.cluster_property" must appear before all cluster properties being templatized. To templatize a custom context variable, prefix it with "template". For example,
$#{
template
.some.variable.name}#
Example: Template file (key=value pairs)
template_keyvaluepairs2
template_keyvaluepairs2