Add a policy to an API
About this task
Add a policy to an API to enforce rules and manage API behavior.
Procedure
-
From the quick action page, click Add a policy. The Create a policy pop-up window appears.
- Click Add.
The Add policy pop-up window appears.
- Provide the following details:
- Policy name
- Namespace
- Version
- Tags
- Click Save. The policy sequence file is created. It displays the default policy map and Policy configuration.
- In the Policy configuration section, select the required policy from the List of policies.
- 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. - From the Selected policies section, click on the policy link
created. The policy form view for the selected policy appears.
- 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.