Gateway extensions manifest
The gateway extensions manifest controls how gateway extensions are applied to the DataPower® API Gateway.
The gateway extensions manifest enables you to deploy multiple extension implementations in a
single package. The manifest is a JSON file that lists the extensions .zip
files to
be applied and when they are to be deployed. You can also use the manifest to enable v5 policy
emulation for the API Connect gateway service.
V5 policy emulation enables 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.
manifest.json
file must be at the root level of the extensions
.zip
file, along with the gateway extension files specified in the manifest. For
example:manifest.json
jws-sign-policy.zip
add_udp.zip
The manifest.json
file contains the following sections.
properties
section
The properties section determines whether to enable the 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.
|
defer-all-override |
An override toggle to force the deployment property of all extension entries (including V5E) to
be deferred. When enabled, the user must restart the |
files
section
The files
section is an array of file entries that reference extension
implementations. Each entry must reference a file that is in the extension.zip
file
(or the extension is rejected).
Property | Description |
---|---|
filename
|
The name of the file that contains the extension implementation. This property is required and cannot be changed while the extension is deployed as part of an update. |
type
|
The type of extension implementation to be deployed. This property is required. The following types are supported.
|
deploy
|
When to process manifest file entry events such as create, update, and delete.
|
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"
]
},
"files":[
{
"filename":"proxy_service.zip",
"deploy":"immediate",
"type":"dp-import"
},
{
"filename":"add_udp.zip",
"deploy":"deferred",
"type":"extension"
},
{
"filename":"override-parse-defaults.json",
"type":"gwd_extension"
},
{
"filename":"jws-sign-policy.zip",
"deploy":"immediate",
"type":"policy-v5"
},
{
"filename":"jwe-decrypt-policy.zip",
"deploy":"deferred",
"type":"policy-v5",
"catalog":"extension-org_ext-cat-2"
},
{
"filename":"mypolicy.zip",
"deploy":"immediate",
"type":"user-defined-policy"
},
{
"filename":"Invoke-Private-Backend-policy.yaml",
"deploy":"immediate",
"type":"user-defined-policy-yaml"
}
]
}
}