
Gateway extensions manifest
A Gateway extensions manifest allows you to control how gateway extensions are applied to the DataPower® API Gateway.
The manifest allows you to deploy multiple extensions of different types in a single package. It
is a JSON file that lists all of the extensions .zip
files that are to be applied
and instructions on when to deploy them. You can also use the manifest to enable v5 policy emulation
for the API Connect
Gateway Service. v5 policy emulation allows you to deploy supported v5 built-in policies and custom
policies, and manage them from API Manager without having to
rewrite them for DataPower API
Gateway. v5 policy emulation is supported only for policies that are applied to the Gateway service
scope.
The manifest.json
file must be at the root level of the extensions
.zip
file with all of the Gateway extension files specified in the manifest.
The manifest.json
file contains the following sections.
properties
section
The properties section determines whether to enable v5 framework to deploy supported v5 built-in policies and custom policies and manage them from API Manager without having to rewrite them for DataPower API Gateway.
Property | Description |
---|---|
deploy-policy-emulator |
Determines whether to enable v5 framework emulation. Valid values are v5 framework emulation is enabled for the API Connect Gateway service
if |
deploy-policies |
Contains a list of built-in policies to advertise for v5 emulation. The following policies
are supported.
|
files
section
The files
section is an array of file entries. Each file entry must reference a
file that is in the extension.zip
file.
Property | Description |
---|---|
filename
|
The location of the file in the .zip file. This property is required only if
files are specified. |
type
|
The file type. This property is required. The following types are supported.
|
deploy
|
When to deploy the file.
|
catalog |
Indicates that a v5 policy is to be used only by certain catalogs and should not be
advertised as a gateway service-level user policy. This property is valid only if the file type is
policy-v5 . The catalog value must be in the format
orgname_catalogname . |
Example manifest.json
The following example manifest.json
file enables v5 policy emulation and
specifies two built-in v5 policies to deploy. The files section lists two v5 policy implementation
files and two extension files.
{
"extension": {
"properties": {
"deploy-policy-emulator": true,
"deploy-policies": [ "invoke_1.5.0", "proxy_1.5.0" ]
},
"files": [
{
"filename":"jws-sign-policy.zip",
"deploy": "deferred",
"type": "policy-v5",
"catalog": "testorg_testcatalog"
},{
"filename":"jws-verify-policy.zip",
"deploy": "immediate",
"type": "policy-v5"
},{
"filename":"APIGWLegacyExt_1.zip",
"deploy": "deferred",
"type": "extension"
},{
"filename":"APIGWLegacyExt_2.zip",
"deploy": "immediate",
"type": "extension"
}
]
}
}