Associate Policy Templates to API

You can associate policy templates to an API and deploy the API to proxy as part of the API publishing workflow.
Typically, this workflow is intended for the API Publisher.
Prerequisites:
The Gateway bundle is deployed to the proxy that you intend to deploy your API to.
If the Gateway bundle for the selected policy template is not deployed to the proxy, the API deployment will fail.

Associate a Policy Template to an API

Follow these steps:
  1. Log in to API Portal as Publisher.
  2. From the menu bar, select
    Manage, APIs
    .
  3. Choose from the following options:
    • If you are publishing and deploying an API for the first time, click
      Add API
      and, as you add your API details, select
      Policy Templates
      from the left-frame menu.
    • For already published APIs, select the API that will consume the policy, go to
      Actions > Edit API Details
      , and select
      Policy Templates
      from the left-frame menu.
  4. Select the desired policy template in the drop-down list. You can select more than one policy template.
  5. Add the policy template to the API so the policy will be applied when requests to this API are processed.
    Policy templates are formatted to show the bundle's group name, name, and version. For example: BundleGroupA - BundleNameB - 1.0.0.
  6. Click
    Save & Next
    . The policy is now associated with the API.
  7. Continue with the workflow to update the API.

Deploy an API to a Proxy

Prerequisites:
The Gateway bundle has been deployed to the proxy where the API will be deployed.
If the Gateway bundle for the selected policy template is not deployed to the proxy, the API deployment will fail.
For instructions on deploying an API, see Deploy APIs.