Skip to main content
Skip table of contents

Attaching Policy to a Resource

A resource can be attached to a policy while adding the particular policy or after adding it.

While adding a policy

To attach the policy to a resource while adding the particular policy, select the respective resource from the list that appears in the dialog box. To attach to a certain end point, select from the Scope drop-down.

After adding the policy

A proxy flow is comprised of any of the four endpoints as below:

  • Proxy Request
  • Target Request
  • Target Response
  • Proxy Response

To attach an existing policy (already created) to the respective endpoint, perform the following actions:

  1. Click the Resources tab present below the Policies tab on the left navigation panel.
  2. A resource named 'DefaultResource' will already be present under the tab; add a new resource or edit the Default Resource.
  3. Click on the resource to view the resource editor on the right side. Policies can be attached at four places, each of them appearing as an arrow on the resource editor.
    1. Selecting any of these arrows will open an editor window.
    2. Click the Edit
      button beside the editor to display the sections below:
      • Policies: Lists the policies added to respective endpoints.
      • Available Policies: Lists the policies available to be added.
  4. Select the required policies and add them to the endpoint by dragging it from Available Policies section to Policies section or by using the Arrow button available between the sections.
  5. After this is done, click the Save 
     button to apply the changes and to attach the policy to the project

Refer to the Resources section to know how to add a new resource and to understand the various options available in this section of the API Manager.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.