---
title: "Export admission control configuration as a yaml format. The exported yaml file can be imported by CRD or REST API to update the admission control settings."
method: POST
path: "/file/admission"
tags: ["File"]
---

# Export admission control configuration as a yaml format. The exported yaml file can be imported by CRD or REST API to update the admission control settings.

`POST /file/admission`

## Request

- Base URL: `/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/file/admission`
- Auth: none declared. Required headers: `X-Auth-Token`
- TypeScript: <https://skmtc.dev/neuvector/apis/neuvector-api/docs/file/admission/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `scope` 'local'

## Headers

- `X-Auth-Token` string, required

## Request body

- RESTAdmCtrlRulesExport
  - `export_config` boolean
  - `ids` integer[]

## Response `200`

Success. Get a yaml file.

---

[API](https://skmtc.dev/neuvector/apis/neuvector-api.md) - [All operations](https://skmtc.dev/neuvector/apis/neuvector-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neuvector/apis/neuvector-api/revisions/b8d8d28840b3?raw)
