API Policy Manager Access and Operations

In this article

API Policy Manager Asset Support

You can use the API Policy Manager to apply API policies to the following SnapLogic assets.

  • Org: Select the Shared folder under your Org to apply API policies at the Org level (only Org admins have this access).

  • API: Apply API policies at the API level API Manager console.

  • Version: Apply API policies at the version level in the API Manager console. 

  • Project Space: Select the shared folder in your Project Space to apply API policies at the Project Space level in Manager.

  • Project: Select the Project to apply API policies at the Project level in Manager.

Applying Policies at the Org level

Prerequisite: You must be an Org admin to apply policies to the global shared folder.

  1. In Manager, click the shared folder for your Org (also known as the global shared folder), then click Manage API Policy to view the API Policy Manager -shared dialog window, which displays a list of existing API policies and their status.

     

  2. In the API Policy Manager -shared dialog window, click Add Policy to view a list of policies.

  3. Select a policy from the list of policies to open the settings dialog window.

  4. Enter/modify the fields to configure the policy as required, then click Validate and Save.

    The policy settings dialog window closes, and your policy is displayed in the API Policy Manager-shared dialog window.

You can also import and export policies in the API Policy Manager-shared dialog window.

Applying Policies in the API Manager console

You can apply policies at the API and API version level.

Adding API Policies to APIs

  1. In the SnapLogic Manager navigation pane under API Management, click API Manager

     

    The API Manager page opens.

  2. Click the target API to open the API Details page, and click to display the list of API policies.

  3. Enter or modify the fields as required to configure the policy.

  4. Click Validate and Save.

    The policy settings dialog window closes, and your policy is displayed on the API Details page.

Adding API Policies to API Versions

  1. In the SnapLogic Manager navigation pane under API Management, click API Manager

    The API Manager page opens.

  2. Click the target API to view the API Details page.

  3. In the API Details page, click the Versions tab, then click the target API version to view the Version Details page.

     

  4. In the Version Details page, click the target to view the API Details page, and click   to display the list of API policies.

  5. Enter or modify the fields as required to configure the policy.

  6. Click Validate and Save.

    The policy settings dialog window closes, and your policy is displayed in the API Details page.

Adding API Policies to Projects and Project Space Shared Folders in Manager

You can apply API policies to the projects and Project Space shared folders that you have access to. Previously, only Org admins could see the Add API Policy option in the dropdown.

For Projects and Project Spaces, all API policies applied at a hierarchy level are automatically applied to all Tasks at that level. For example, an API policy applied at the Project Space level automatically applies to all Tasks within all the Projects inside that Project Space. If the same API policy type is applied at a Project Space and a Project, then the configuration of the lower-level API policy is used. 

 

  1. In Manager, select the target Project Space/Project, click to open the dropdown list, and select Manage API Policy to open the API Policy Manager dialog window.

     

  2. Click Add Policy. A list of all the API policy types appears. 

  3. Click the API policy that you want to add. The settings dialog window for that policy is displayed. 

  4. Enter/modify the field values to configure the policy, then click Validate & Save. The API policy is added to the list of API policies. 

  5. Click Close to close the API Policy Manager dialog.

Enabling/Disabling Policies at the Org and Project Level

  1. Open the API Policy Manager dialog. 

  2. Click the target API policy to open its settings.

  3. Change the value of the Status field. 

  4. Click Validate & Save. You can confirm the Status of the API policy is updated.
    To enable the API policy, repeat steps 2 through 4. 

     

Adding the same API policy type at a lower-level in the hierarchy automatically overrides all API policies of the same type at higher levels. For example, if a Callout Authenticator API policy is added at an Org-level and also at the Project-space-level, the Org-level is automatically overridden as far as the Tasks within that Project Space are concerned.

Viewing Policies for a Task

  1. In Manager, navigate to the target task.

  2. Point the cursor at the target task and click   to open the dropdown, and select Related API Policy.

    The Related Policies dialog window for the target Task is displayed.

  3. Click the Hierarchy tab to open the policy hierarchy.

Editing Policies in Manager

You can edit an API Policy by clicking on it to view its settings.

  1. Depending on the asset associated with the API policy, choose one of the following methods to view the settings dialog window for an API policy.

    • For an Org:

      • Navigate to the Org-level shared folder in Manager, and place the cursor over the target Project Space/Project,

      • Click    to view the dropdown list and select Manage API Policy

    • For a Project Space or Project,

      1. Navigate to the target asset in Manager, and place the cursor over the target Project Space/Project,

      2. Click    to view the dropdown list and select Manage API Policy.  

    • For the API Management space, click the target API policy at one of the following levels:

      • Org-level shared folder.

      • API Details page

      • Version Details page

  2. Edit/update the API policy and click Validate & Save.

Policy Import and Export in API Manager

You can import and export API policies in an API, API Version, or Proxy.

You can find the import and export controls in the same place regardless of the APIM Asset.

API Manager > API Details

API Manager > Version > Version Details

API Proxy > Proxy Details

Importing Policies in API Manager

The policies in the API Policy Manager are SnapLogic Assets that share the same permissions as those described in Migrating Accounts. Policies can be imported only between trusted Orgs.

  1. Navigate to the destination API Asset in API Manager.

  2. Click to open the Import Policy dialog.

  3. Select Choose File and go to the policy file on your machine.

  4. Select an import option.

    • Import non-existent only: (Default) Only uploads the API policies in the selected file that do not already exist in the target API, API Version, or Proxy.

    • Import all policies: Imports all API policies in the selected file:

  5. Click Import. The Import Policy Result popup appears with the following options:

    • Added: The API policies added to the Project Folder.

    • Overwritten: The existing API policies overwritten by the imported ones.

    • Ignored: The existing API policies not overwritten by the imported ones.

Exporting Policies in API Manager

  1. Go to the destination API Asset in API Manager.

  2. Click to export API policies to your local machine.
    The API policies are downloaded to the specified folder (the default is the Downloads folder on your machine).

Policy Import and Export in Manager

You can access the UI options for importing and exporting API policies at the Project Space, Project level, or shared folder levels in SnapLogic Manager.

Importing Policies in Manager

  1. Navigate to the target Project or shared folder in the Project Space in SnapLogic Manager.

  2. Right-click to open the dropdown list, and click Manage API Policy. The API Policy Manager dialog appears.

  3. Select Choose File and navigate to the target file.

    • Import non-existent only: (Default) Only uploads API policies in the selected file that do not already exist in the Project or shared folder.

    • Import all policies: Imports all API policies in the selected file.

  4. Click Import. The Import Policy Result popup appears with the following Status:

    • Added: The API policies added to the Project Folder.

    • Overwritten: The existing API policies overwritten by the imported ones.

    • Ignored: The existing API policies not overwritten by the imported ones.

Exporting Policies in Manager

  1. In Manager, navigate to the target Project or shared folder in the Project Space.

  2. Right-click on the Project or shared folder to open the dropdown menu, and click Manage API Policy.

  3. When the API Policy Manager dialog appears, click Export. The API policies are downloaded to the specified folder (the default is the Downloads folder on your machine).

Deleting Policies in Manager

  1. Open the API Policy Manager dialog. 

  2. Point the cursor on the right side of the target API policy and click the  to delete it.

  3. In the confirmation prompt, click Delete. The API policy is deleted.