Add a policy to an API

About this task

Add a policy to an API to enforce rules and manage API behavior.

Procedure

  1. From the quick action page, click Add a policy.
    The Create a policy pop-up window appears.
  2. Click Add.
    The Add policy pop-up window appears.
  3. Provide the following details:
    • Policy name
    • Namespace
    • Version
    • Tags
  4. Click Save.
    The policy sequence file is created. It displays the default policy map and Policy configuration.
  5. In the Policy configuration section, select the required policy from the List of policies.
  6. On selecting a policy, you can do one of the following:
    • Add a new policy. Click Add a new policy and provide the required policy details.
    • Refer exisiting policy. Click Refer exisiting policy and select one of the previously defined policies.
    The chosen policies are listed in the Selected policies section.
  7. From the Selected policies section, click on the policy link created.
    The policy form view for the selected policy appears.
  8. Specify the required details in the policy form view.
    For more information about the available Form view field configurations in the supported policies, refer Supported policies.