Contents

Popular

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
titleContents

Table of Contents

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 firstfirstly.

Adding policies at the Project level

To add a policy to a particular scope, choose the scope and add from existing policies by using the Edit Image Removed button.Image Removed
Figure 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 Image Added icon, select the required policies from the list of policies (configured policies get prepopulated).
  3. Click OK and click the Save Image Added icon.

    Info

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

Image Added
Figure 1: Project Level Policies configuration page

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

Image Added
Figure 2: Project Level Policies added

Displaying policy names below the icons

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

Image Added
Figure 3: Policy names displayed under their respective icons

Viewing the Policy Configuration

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

Info

The selected policy changes its colour from black to blue.

Image Added
Figure 4: Policy configuration displayed under the policy icons

Note

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 Image Added and right Image Added arrow icons.

Info

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.

Image Added
Figure 5: Changing the order of the policy

Notice the change in the order of policies.

Image Added
Figure 6: Order of the policy changed

Removing an added Policy

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

Image Added
Figure 7: Removing a policy

The policy gets removed from the screen.

Image Added
Figure 8: Policy removed

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.

Image Added
Figure 9: Error policy getting executed in the event of an error

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.

Warning

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

Adaptavist ThemeBuilder EngineAtlassian Confluence