---
title: "Download Template File"
method: GET
path: "/api/v2/TemplateFiles/{templateFileName}"
tags: ["TemplateFiles"]
---

# Download Template File

`GET /api/v2/TemplateFiles/{templateFileName}`

Download the CloudFormation template from the FortiCNAPP Console for a specific template file name by invoking the following endpoint:

 > `GET https://YourAccount.lacework.net/api/v2/TemplateFiles/{templateFileName}`

  Here is an example invocation: 

  > `GET https://YourAccount.lacework.net/api/v2/TemplateFiles/AwsConfig` 

  Here is another example invocation: 

  > `GET https://YourAccount.lacework.net/api/v2/TemplateFiles/AwsCloudTrail` 

  Optionally pass in `intgGuid` as a query parameter for the `AwsEksAuditSubscriptionFilter` template file name. Here is an example invocation: 

  > `GET https://YourAccount.lacework.net/api/v2/TemplateFiles/AwsEksAuditSubscriptionFilter?intgGuid=ROIJ898329....`

## Path parameters

- `templateFileName` 'AwsCloudTrail' | 'AwsConfig', required

## Headers

- `Authorization` string, required
- `Content-Type` string, required

## Response `200`

No Error (Template File Content)

## Other responses

- `4XX` — Client Error
- `5XX` — Internal Server Error

---

[API](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation.md) · [All operations](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lacework/forticnapp-api-2-0-documentation/revisions/7015f76895f2/schema)
