Quick Start Guide: API Manager Governance¶
This guide provides a step-by-step overview of how to set up and apply governance policies in the API Manager.
Prerequisites¶
Before configuring API governance, ensure that:
- The API Manager is installed and running.
- You have the necessary permissions to configure governance policies.
- APIs are registered in the API Manager.
Step 1: Understanding API Governance¶
API governance helps maintain security, compliance, and consistency across APIs. It involves:
- Defining rulesets that establish governance policies.
- Creating policies that apply these rulesets to APIs.
- Using labels to categorize APIs for policy enforcement.
Step 2: Creating a Ruleset¶
A ruleset is a collection of rules that define governance policies.
- Log in to Admin portal
- Navigate to Governance > Ruleset Catalog in the API Manager.
- Click Create Ruleset and provide:
- Name: A unique identifier for the ruleset.
- Description (optional): Additional details about the ruleset.
- Validation Type: Choose from API Definition, API Metadata, or API Documentation.
- Artifact Type: Choose from REST API or Async API
- Add specific rules related to security, compliance, and performance.
- Save and activate the ruleset.
Step 3: Defining a Policy¶
A policy is a high-level grouping of rulesets that apply governance policies to APIs.
- Navigate to Governance > Policies.
- Click Create Policy and enter:
- Name and Description.
- Rulesets to be enforced.
- Enforcement Criteria:
- API State (e.g., Create, Update, Publish, Deploy).
- Rule Violation Level (Error, Warn, Info).
- Rule Violation Action (Block or Notify).
- Save the policy.
Step 4: Applying Policies Using Labels¶
A label groups APIs based on type or purpose, enabling automated policy enforcement.
- Navigate to Governance > Labels.
- Click Create Label and enter:
- Name and Description.
- Associated Policies to be applied.
- Save the label.
- Assign the label to relevant APIs in the API Manager.
Step 5: Monitoring Governance Compliance¶
To track policy enforcement and compliance:
- Navigate to Governance > Dashboards.
- Review violations, warnings, and enforcement actions.
- Adjust rulesets, policies, or labels as needed to improve compliance.
Next Steps¶
- Explore advanced governance configurations.
- Automate governance checks using API Manager’s CI/CD pipelines.
- Integrate API governance with security and analytics tools.
This guide provides a foundational setup for API governance. For detailed configurations, refer to the API Manager Governance Documentation.