---
schema_version: "1"
id: e33f807d66bc991b0f44fa5d9f2ffe01b202c7a1b5b6705800bcecb1f6de2390
title: Monitoring API Conformance
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/api-governance/monitor-api-conformance.md
canonical_url: https://docs.mulesoft.com/api-governance/monitor-api-conformance
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6069e3387df70a284b5e32118f5665e5c1a8bb69de924eb62cd118feac395755
description: MuleSoft Documentation Site
latest: true
---
---
product: API Governance
---

# Monitoring API Conformance

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

> [!NOTE] We updated the terminology in the API Governance UI to reflect a broader range of asset
> types. Where Governance previously used "APIs," it now uses "Services." There are no changes to
> functionality. During this transition, you may see a mix of the new and previous terms in our
> documentation.

After you configure governance profiles for your APIs and the resulting governance data is
available, you can monitor and report on your organization’s conformance.

## Test Profile Settings Using Draft Profiles

Consider using draft profiles to test profile settings. This enables you to limit the scope of the
profiles to just what you need before alerting the API owners about identified conformance issues.

![conformance information for a selected draft profile](/mulesoft/current/en-us/api-governance/_images/api-gov-draft-profile-view.png)

<table><tbody><tr><td><i data-value="1"></i><b>1</b></td><td>View a summary of conformance for the selected draft profile.</td></tr><tr><td><i data-value="2"></i><b>2</b></td><td>View the APIs targeted by the draft profile. These APIs are governed, but their conformance information isn’t shown outside of the draft profile view unless they’re also targeted by an active profile.</td></tr><tr><td><i data-value="3"></i><b>3</b></td><td>Export a conformance report in CSV format for all APIs targeted by this draft profile.</td></tr><tr><td><i data-value="4"></i><b>4</b></td><td>View, edit, or duplicate profile settings.</td></tr><tr><td><i data-value="5"></i><b>5</b></td><td>Export a report of only this API’s conformance information or open the API in Exchange.</td></tr></tbody></table>

To test profile settings using draft profiles:

1.  On the Governance console, select the **Profiles** tab.

2.  Select **Draft**.

3.  Select a profile.

4.  View conformance information.

5.  Edit the profile settings and view the conformance results for different selections until you
    target the desired set of APIs and apply the optimal set of rules to them.

6.  Activate the profile to share the conformance information across Anypoint Platform so that
    developers can take action to resolve the conformance issues in APIs they own.

## Monitor Conformance Information for Active Profiles

To view conformance information for services targeted by active profiles, view the summary
information in the governance console and in validation reports.

![Screenshot of the Governance console](/mulesoft/current/en-us/api-governance/_images/api-gov-console.png)

<table><tbody><tr><td><i data-value="1"></i><b>1</b></td><td>View a summary of your governance usage and conformance status information to monitor your organization’s conformance.</td></tr><tr><td><i data-value="2"></i><b>2</b></td><td>View, filter, search, and act on a summary list of your active and draft governance profiles or your governed services.</td></tr><tr><td><i data-value="3"></i><b>3</b></td><td>Export conformance reports in CSV format.</td></tr><tr><td><i data-value="4"></i><b>4</b></td><td>Create a profile and save it as draft or active.</td></tr><tr><td><i data-value="5"></i><b>5</b></td><td>View the comprehensive governance report for a service.</td></tr><tr><td><i data-value="6"></i><b>6</b></td><td>Select from the more options menu to take relevant actions. You can export reports for a selected profile or service, view, edit, or delete a profile, notify service owners, or open a service in Exchange.</td></tr></tbody></table>

> [!NOTE] Only API Governance and organization administrators can create, edit, and delete profiles.

Use the summary on the governance console to monitor your governance:

Governance Usage by Profile Type

Shows the usage of governance, including number of governed services, total number of services by
profile type, and subscription limit information. Because some services might be in both active and
draft profiles, this tile specifies how many are in draft only.

Active Profile Status

Shows profile statuses for active profiles based on the percentage of conformant APIs in the
profiles:

- Normal:

  More than 70% of APIs are conformant.

- At Risk:

  Fewer than 70% of APIs are conformant.

Conformance Status

Shows the breakdown of conformance for the APIs targeted by your governance profiles as follows:

- Conformant:

  The APIs pass all applied governance rulesets.

- Not Conformant:

  The APIs fail at least one governance ruleset.

- Not Validated:

  The APIs are not validated because they are not included in a governance profile.

Nonconformance by Severity

Shows the severity of API nonconformance to rulesets based on the percentage of all of the required
rulesets that the APIs passed. The higher the severity, the fewer rulesets the APIs passed.

- High Severity:

  0 - 40% rulesets passed

- Medium Severity:

  41% - 80% rulesets passed

- Low Severity:

  81% - 99% rulesets passed

## Monitor Cross-Gateway Conformance

If you have connected third-party gateway providers, API Governance provides a unified conformance
view across all gateways and MuleSoft APIs in a single report.

> [!NOTE] Cross-gateway conformance monitoring is available only in the enhanced MuleSoft
> experience.

## API Governance Usage Reports

You can view usage reports to understand and monitor your monthly usage of API Governance. See
[Viewing Usage Reports for API Governance](https://docs.mulesoft.com/general/usage-reports#api-governance).

## Governance Validation Report

You can view conformance details for governed services in their governance validation reports in API
Governance and API Manager. See
[Finding and Fixing Conformance Issues](https://docs.mulesoft.com/api-governance/find-and-fix-conformance-issues).

## Export Conformance Information

You can export profile and conformance information in CSV format from several places in the
Governance console.

- [Conformance Information by Profile](#gov-profile-export)

- [Governed Services Targeted by Active Profiles](#gov-api-export)

- [Conformance Information for a Specific Profile](#gov-spec-profile-export)

### Conformance Information by Profile

To export profile information:

1.  On the Governance console, select the **Profiles** tab.

2.  Click **Export Report**.

    The exported CSV file contains conformance information for each profile in your organization.
    The information includes:

    - Organization ID

    - Profile IDs

    - Profile name

    - Profile type (ACTIVE or DRAFT)

    - Total APIs validated

    - Number of conformant APIs (pass)

    - Number of nonconformant APIs (fail)

    - Timestamp

    - Associated tags in Exchange

### Governed Services Targeted by Active Profiles

To export a report of all governed services targeted by your active profiles:

1.  On the Governance console, select the **Governed Services** tab.

2.  Click **Export Report**.

    The exported CSV file contains conformance information for each API targeted by the active
    profiles in your organization. The information includes:

    - Organization ID

    - API ID

    - API Version

    - Total number of asset versions for that API Version

    - Number of conformant APIs (pass)

    - Number of nonconformant APIs (fail)

    - Timestamp

    - Provider (for APIs discovered from connected third-party providers; blank for MuleSoft APIs)

### Conformance Information for a Specific Profile

To export a conformance report for APIs targeted by a specific active or draft profile:

1.  On the Governance console, select the **Profiles** tab.

2.  Select **Active** or **Draft**.

3.  Select a profile.

4.  Click **Export to CSV**.

    The exported CSV file contains conformance information for each API targeted by the selected
    profile. The information includes:

    - Organization ID

    - API ID

    - API Version

    - Total number of asset versions for that API Version

    - Number of conformant APIs (pass)

    - Number of nonconformant APIs (fail)

    - Timestamp

    - Provider (for APIs on connected third-party providers; blank for MuleSoft APIs)

### Conformance Information for Topic Center

If you’re using MuleSoft for Agentforce: Topic Center, you can view the auto-generated **SF API
Topic Center** profile, and use the provided governance rules to validate that your API is ready to
generate agent actions and topics in Salesforce.

The **SF API Topic Center** profile is read-only, and APIs in this profile are not metered.

To export a conformance report for APIs targeted by the **SF API Topic Center** profile:

1.  On the Governance console, select the **Profiles** tab.

2.  Select **Active**.

3.  Select the **SF API Topic Center** profile.

4.  Click **Export to CSV**.

    The exported CSV file contains conformance information for each API targeted by the **SF API
    Topic Center** profile.

### Cross-Gateway Policy Audit Export

The cross-gateway policy audit export consolidates policy application evidence across all connected
providers and MuleSoft APIs to support compliance audits such as SOC 2 or GDPR.

> [!NOTE] The cross-gateway policy audit export is available only in the enhanced MuleSoft
> experience.

## Evaluate Conformance Using the CLI

To use a command to evaluate the potential rulesets for your API project, use the
`governance:api:evaluate` command.

Those who don’t have access to API Governance, such as developers, can use the CLI to evaluate which
rulesets their APIs might be subject to validation against based on given filters. This enables
developers to be proactive in understanding the potential conformance of APIs to rulesets before
their APIs become governed.

Additionally, those who do have access to API Governance, such as governance officers, might use
this command to plan or debug profile configurations.

### governance:api:evaluate

`> governance:api:evaluate [flags]`

Evaluates specified filters to determine the rulesets that would be applied to your APIs that meet
that criteria.

In addition to the [default flags](https://docs.mulesoft.com/api-governance/#default-options), this command accepts the following flags:

<table><colgroup><col> <col></colgroup><thead><tr><th>Flag</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p><code>--api=&lt;api&gt;</code></p></div></div></td><td><div><div><p>The API project against which you want to evaluate. The command uses the criteria in the project’s <code>exchange.json</code> file.</p></div></div></td></tr><tr><td><div><div><p><code>--criteria &lt;filtertype:filtervalue&gt;,…​</code></p></div></div></td><td><div><div><p>Enables you to apply filters to select the list of APIs to which the profile rulesets apply. Specify a list of comma-separated filters where each filter has a type and value in the format <code>filtertype:filtervalue</code>.</p></div><div><p>Available filters include:</p></div><div><ul><li><p><code>scope</code>: API type. Supported values are: <code>async-api</code>, <code>http-api</code>, or <code>rest-api</code>.</p></li><li><p><code>tag</code>: Tag defined for APIs in Exchange.</p></li><li><p><code>category</code>: Category defined for APIs in Exchange, where the filter value is specified in two parts as <code>categoryName:value</code>.</p></li><li><p><code>env-type</code>: Environment type. Supported values are: <code>any</code>, <code>production</code>, or <code>sandbox</code>.</p></li><li><p><code>env-id</code>: The ID for the environment name in API Manager. You can get this value using <strong>API Manager</strong> &gt; <strong>Environment information</strong>. See <a href="https://docs.mulesoft.com/api-manager/latest/environments-concept">Reviewing Environment Concepts</a>.</p><div><p>If <code>env-type</code> or <code>env-id</code> is used, the <strong>API Instance</strong> filter is set in the profile, so that only APIs that have instances are filtered.</p></div><div><p>To deselect the <strong>API Instance</strong> filter in the profile using the CLI, update the profile using the <code>--criteria</code> flag with neither <code>env-type</code> nor <code>env-id</code>.</p></div></li></ul></div><div><p>Example: tag:tag1,category:category1:value,category:category2:value2,scope:rest-api,scope:async-api,env-type:production</p></div></div></td></tr></tbody></table>

> [!NOTE] This command must be run with either the `--criteria` or the `--api` flag.

**Example commands:**

`anypoint-cli-v4 governance:api:evaluate --criteria "tag:best,category:API Type:Experience API,scope:rest-api"`

`anypoint-cli-v4 governance:api:evaluate --api order-api-1.0.0-raml.zip`  
where `order-api-1.0.0-raml.zip` contains an API and its `exchange.json` file

**Example output:**

╔════════════════════════════════════════════════════════════════════╗ ║ Ruleset GAV ║
╟────────────────────────────────────────────────────────────────────╢ ║
68ef9520-24e9-4cf2-b2f5-620025690913/anypoint-best-practices/1.5.1 ║
╟────────────────────────────────────────────────────────────────────╢ ║
68ef9520-24e9-4cf2-b2f5-620025690913/anypoint-best-practices/1.0.1 ║
╚════════════════════════════════════════════════════════════════════╝

## See Also

- [Finding and Fixing Conformance Issues](https://docs.mulesoft.com/api-governance/find-and-fix-conformance-issues)
