> For the complete documentation index, see [llms.txt](https://docs.prismacloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prismacloud.io/admin-guide/32/runtime-defense/import-export-individual-rules.md).

# Import and export individual rules

Prisma Cloud lets you import and export rules from one Console to another. Every rule created in Prisma Cloud under the **Defend** section has copy and export buttons in the **Actions** menu. An import button is located at the bottom of every rule table.

## Copying rules

To copy a rule:

1. Go to **Defend > Runtime > {Vulnerabilities | Compliance | Access}**.
2. Click **Actions > Copy** for the rule you want to copy.

   A dialog box named **Edit copy of….** opens.
3. Make any desired changes to the copied rule.
4. Click **Save**.

## Exporting rules

Click **Actions > Export** next to any rule to export it in json format.

**Example**

```json
{
  "name": "Default - ignore Prisma Cloud components",
  "owner": "system",
  "modified": "2017-05-31T20:47:21.573Z",
  "effect": "alert",
  "resources": {
    "hosts": [
      "*"
    ],
    "images": [
      "docker.io/twistlock/private:console*"
    ],
    "labels": [
      "*"
    ],
    "containers": [
      "twistlock_console"
    ],
    "services": []
  },
  .
  .
  .
}
```

## Importing rules

A rule can be imported into Console in JSON format. To capture a rule in JSON format, use the export function described above.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.prismacloud.io/admin-guide/32/runtime-defense/import-export-individual-rules.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
