Defining, packaging, and publishing a global-scoped policy for the API Gateway
Create a global-scoped, user-defined policy that is available to APIs in any of the catalogs in any provider organization.
About this task
When a global-scoped policy is published, you can use it in the API Assembler's Policy palette for APIs in any catalog belonging to any provider organization. Complete the following tasks to define, package, and publish the global-scoped policy.
zip
command on the command line with the following flags:
-x ".DS_Store" -x "__MACOSX"
Including the flags prevents the auto-generated .DS_Store and __MACOSX files from being added to the zip.
Step 1: Define a global-scoped policy for API Gateway
Use the DataPower Web GUI to define a new policy that can be used in API assemblies in all catalogs belonging to all provider organizations.
Procedure
Step 2: Package and publish a global-scoped policy for API Gateway
Decide how you want the new global-scoped policy to be managed, and then publish it to make it available to API assemblies.
About this task
Be sure to complete the steps in Step 1: Define a global-scoped policy for API Gateway before attempting to package and publish the new global-scoped policy. There are two methods for packaging and publishing a user-defined policy, based on how you want the policy to be managed:
Step 2, Option A: Package and publish a global-scoped policy directly in the DataPower configuration
Package and publish a global-scoped policy so it can be stored directly on the DataPower API Gateway.
About this task
When you store a global-scoped policy on the DataPower API Gateway, the policy exists in the gateway's startup domain configuration and will be unaffected by the API Manager lifecycle.
Procedure
Step 2, Option B: Package and publish a global-scoped policy as a gateway extension that API Connect manages
Package and publish a global-scoped policy as a gateway extension in API Connect.
Before you begin
The xml-manager must be enabled on the default domain of every gateway that will have a gateway-extension published to it.
About this task
When you publish a global-scoped policy as a gateway extension in API Connect, it is subject to the API Manager lifecycle.