---
title: "List all content rules"
method: GET
path: "/nas/v1/orgs/{OrgID}/reports/contentrules"
tags: ["NAS"]
---

# List all content rules

`GET /nas/v1/orgs/{OrgID}/reports/contentrules`

Returns a list of all content rule for NAS devices.

## Path parameters

- `OrgID` integer, required

## Query parameters

- `pageToken` string

## Response `200`

success

- NASGetContentRulesResponse — GetContentRulesResponse is response schema for GetContentRules
  - `contentRules` NASRuleStruct[]
    - `backupContent` NASBackupContentStruct — BackupContentStruct is response schema for GetContentRules
      - `excludeExtension` string[] — The list of file types that are excluded from the backup. You can select pre-defined file types that you want to exclude from the backup.
      - `excludeFolders` string[] — The list of folders that are excluded from the backup. See <a href=https://help.druva.com/en/articles/8651422-about-data-protection-for-file-servers>Folders excluded from File server backup</a>.
      - `excludePattern` string[] — The list of file extensions that are excluded in the backup.
      - `excludeType` string[] — The list of file types that are excluded from the backup. You can select pre-defined file types that you want to exclude from the backup.
      - `includeExtension` string[] — The list of file extensions that are included in the backup.
      - `includeFolders` string[] — List of folders/directories included in the backup operation.
      - `includePattern` string[] — The list of file patterns that are included in the backup.
      - `includeType` string[] — The list of file types that are included in the backup. You can select pre-defined file types that you want to include in the backup. See <a href=https://help.druva.com/en/articles/8651422-about-data-protection-for-file-servers>File types supported for backup</a>.
      - `isCaseInsensitive` boolean — The status of the case insensitivity flag.
    - `organizationName` string — The name of NAS organization.
    - `ruleName` string — Name of the content rule.
    - `ruleType` string — The data that is backed up on a server.
  - `nextPageToken` string — The token to access the next page of results. This parameter will be empty for the last page of results.

## Other responses

- `400` — Bad Request
- `401` — The request did not include an authentication token or the authentication token was expired.
- `403` — Forbidden
- `404` — The requested resource was not found.
- `500` — The request was not processed due to an internal error in Cloud.

---

[API](https://skmtc.dev/druva/apis/authentication.md) · [All operations](https://skmtc.dev/druva/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/druva/authentication/revisions/2af2bf148b25/schema)
