Creating a policy sequence

Learn how to create and configure a policy sequence that defines the order in which policies run for your API.

About this task

Create a policy sequence to define the order in which policies apply to your API during request and response processing. A well-structured sequence ensures that routing, transformation, security, and validation steps occur in the intended order. This helps maintain predictable behavior, improves maintainability, and supports consistent policy governance.

The policy editor updates dynamically based on the gateway you select. Each gateway supports a specific set of policies and configuration options, and the editor adjusts its fields and available actions accordingly. Selecting the appropriate gateway is important because it determines which policies you can use and how they can be configured.

Procedure

  1. Open the API project where you want to create a policy sequence.
  2. Click Add a policy sequence on the Quick start page, or click + next to Policy sequences in the Explorer, or click Policy sequence in the Outline section.
  3. Provide the following information:
    • Select gateway. Choose the gateway where you want to author the policy.
    • Policy sequence name. Unique identifier for the scope.
    • Namespace. Logical grouping for organizing policies.
    • Version. Version number to track policy changes.
    • Tags. Keywords associated with the policy for categorization.
    • API. Select an API to link to the policy sequence.
  4. Click Add to create the policy.
    The policy configuration page displays policies based on the selected gateway.
  5. Select the policies you want to apply and configure them as required.
  6. For DataPower Nano Gateway and DataPower API Gateway, use the Build assembly flow to add policies. For more information about the available field configurations in the supported policies, see DataPower Nano Gateway API policies and DataPower API policies and logic constructs.
  7. For webMethods API Gateway, add or reference policies from the list. The chosen policies are listed in the Selected policies section.
    1. From the Selected policies section, click on the policy link created.
      The policy form view for the selected policy appears.
    2. Specify the required policy details.
      For more information about the available field configurations in the supported policies, refer webMethods API Gateway policies.