API Management
13.2 13.1 13.0 12.2 12.1 12.0 11.0
13.2 13.1 13.0 12.2 12.1 12.0 11.0

Project Level Policies

The policies added for a particular scope in this section are applied to all the resources in a project. For example, if a policy is added to the Proxy Request scope, all the resources will have this policy processed firstly.

Adding policies at the Project level

To add a policy to a particular scope, perform the following actions:

  1. Click any of the following endpoint tabs to choose the scope that needs to be applied for all resources within a project:

    1. Proxy Request

    2. Proxy Response

    3. Target Request

    4. Target Response

    5. Error

  2. Click the Add icon, select the required policies from the list of policies (configured policies get prepopulated).

  3. Click OK and click the Save icon.

    Server Group to which the project level policies can be set after clicking any of the policies added; see Figure 4.


ProjectPolicy.png

Policies will be added in the Project level policies screen, which gets displayed as icons.

ProjectLevelPoliciesAdded.png

Displaying policy names below the icons

Policy names can be displayed below their respective icons by choosing the Show policy names option.

policynamesdisplay1.png

Viewing the Policy Configuration

Click the icon that represents the policy to display the policy configuration.

The selected policy changes its colour from black to blue.

DisplayProjectDetails.jpg

Configuration cannot be changed from this screen; to change policy configuration, go the Policy Configurations section.

Changing the order of policy execution

The order in which the policies are applied to the attached scope can be identified by the arrow mark between the policies.

This order of execution can be altered by using the left and right arrow icons.

The selected policy changes its colour from black to blue.

Select the policy that needs a change in the order and click the arrow button based on the direction it has to be moved.

ProjectSort.png

Notice the change in the order of policies.

ProjectSorted.png

Removing an added Policy

To remove an added policy, select the policy and click the Remove icon.

DeletePolicy1.png

The policy gets removed from the screen.

RemovePolicy.png

Error scope

The policies in this scope will be executed only when a policy that is added to any of the other four scopes fails to execute.

image2019-10-9 16:32:9.png

In the above example, Decrypt Policy present in the target response scope has failed, hence the execution flow has moved on to the policies present in the error scope i.e Build Message Policy in this case. Thus, a customized message rather than an error message is obtained in the response payload section.

Whenever a change is made, click the Save icon to apply the changes.