---
title: "GET /2020-05-31/function/{Name}"
method: GET
path: "/2020-05-31/function/{Name}"
---

# GET /2020-05-31/function/{Name}

`GET /2020-05-31/function/{Name}`

Gets the code of a CloudFront function. To get configuration information and metadata about a function, use `DescribeFunction`.

To get a function's code, you must provide the function's name and stage. To get these values, you can use `ListFunctions`.

## Path parameters

- `Name` string, required

## Query parameters

- `Stage` 'DEVELOPMENT' | 'LIVE'

## Response `200`

Success

## Other responses

- `480` — NoSuchFunctionExists
- `481` — UnsupportedOperation

---

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