> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# View a data quality rule

> View a data quality rule to inspect its associated SQL logic.

View a data quality rule to see its associated SQL command.

## Prerequisites

* Access to the NexusOne portal
* Appropriate permission: `nx1_quality`

## View a rule

<Tabs>
  <Tab title="Web portal" icon="browser">
    Perform these steps to view a rule.

    1. Log in to NexusOne.
    2. On the top navigation bar, hover your mouse over **Data Pipeline** and then select **Quality**.
    3. Select your preferred catalog:
       * **iceberg**: When using an Iceberg table
       * **LLM**: Not applicable yet
    4. Select a schema and table.
    5. Scroll to the bottom of the page to find the Existing Rules table.
    6. Find the rule you want to view.
    7. Click **View**.
  </Tab>

  <Tab title="CLI" icon="square-terminal">
    Use the following `nx1` command to:

    * [View rules by ID](/api-reference/endpoints/data-quality/rules-by-id).
    * [View accepted rules by table](/cli-reference/nx1/dq#rules).
    * [View all rules by table](/cli-reference/nx1/dq#rules).
  </Tab>

  <Tab title="REST API" icon="code">
    Use the following API endpoints to:

    * [View rules by ID](/api-reference/endpoints/data-quality/rules-by-id).
    * [View accepted rules by table](/api-reference/endpoints/data-quality/rules-by-table).
    * [View all rules by table](/api-reference/endpoints/data-quality/rules-by-table2).
  </Tab>
</Tabs>

## Additional resources

* For general instructions about how to ingest a file in NexusOne, refer to [How to ingest a file](/documentation/data-pipeline/tasks/ingest/ingest-a-file).
* For instructions on how to set or delete a data quality rule, refer to the following:
  * [Set a data quality rule](./set-a-dq-rule)
  * [Delete a data quality rule](./delete-a-dq-rule)
* For more information about roles or permissions, refer to [Govern Overview](/documentation/govern/overview).
