---
title: "# Download Kubernetes agent YAML"
method: GET
path: "/v1/agents/kubernetes/download-yaml"
tags: ["Agents"]
---

# # Download Kubernetes agent YAML

`GET /v1/agents/kubernetes/download-yaml`

## Request

- Base URL: `https://api.picussecurity.com`
- URL: `https://api.picussecurity.com/v1/agents/kubernetes/download-yaml`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/picussecurity/apis/picus-rest-api/docs/v1/agents/kubernetes/download-yaml/get.ts> (a function with typed inputs; its response is checked against the schema)

Downloads the Kubernetes agent YAML file for the given agent name and agent ID.

## Query parameters

- `agent_name` string, required
- `agent_id` integer

## Response `200`

A file download response

- integer[]

## Other responses

- `422`: validationErrorSwagger is represents the erroneous cases
- `default`: genericErrorSwagger is represents the erroneous cases

---

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