---
title: "GET /greengrass/v2/components/{arn}"
method: GET
path: "/greengrass/v2/components/{arn}"
---

# GET /greengrass/v2/components/{arn}

`GET /greengrass/v2/components/{arn}`

Gets the recipe for a version of a component.

## Path parameters

- `arn` string, required

## Query parameters

- `recipeOutputFormat` 'JSON' | 'YAML'

## Response `200`

Success

- GetComponentResponse
  - `recipeOutputFormat` 'JSON' | 'YAML', required — The format of the recipe.
  - `recipe` string, required — The recipe of the component version.
  - `tags` object — A list of key-value pairs that contain metadata for the resource. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html">Tag your resources</a> in the <i>IoT Greengrass V2 Developer Guide</i>.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ResourceNotFoundException
- `483` — ThrottlingException
- `484` — InternalServerException

---

[API](https://skmtc.net/aws/apis/greengrassv2.md) · [All operations](https://skmtc.net/aws/apis/greengrassv2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/greengrassv2/versions/f491b1d234d1/schema)
