PingIntelligence

Adding the RetainHeader policy

About this task

To add the RetainHeader policy to the Akana API Gateway:

Steps

  1. Sign on to Akana Policy Manager and click Tenant in the left navigation.

  2. Under Policies, click Operational Policies.

  3. Select Add Policy and choose Private Operational Script Policy from the Type drop-down list.

    A screenshot of the Select Policy Creation Option page in Akana Policy Manager.
  4. Click Next.

  5. Enter Policy Name and Description, click Finish, and then click Close.

A screenshot of the Specify Policy Details page in Akana Policy Manager.
  1. Navigate to the Workbench tab.

  2. In the Private Operational Script Policy section, select the policy name and click Modify.

A screenshot of the Workbench tab in Akana Policy Manager.
  1. For Script Language, select JavaScript from the drop-down list.

  2. Copy the contents of the retain-header-policy.js script and paste them into Expression.

  3. For Function, select Pre-policy Auditing from the drop-down list.

    A screenshot of the Modify Script Policy page in Akana Policy Manager.
  4. Click Finish and then click Close.

  5. Under the WorkFlow Actions, click Activate Policy to activate the RetainHeader policy.