# getCustomTemplateFile

> Function getCustomTemplateFile in pulumi-portainer.

<!-- Generated from the pulumi-portainer SDK. -->

Function getCustomTemplateFile in pulumi-portainer.

Invoke token: `portainer:index/getCustomTemplateFile:getCustomTemplateFile`.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as portainer from "pulumi-portainer"

const result = await portainer.getCustomTemplateFile({
  templateId: 0,
})
```

`getCustomTemplateFileOutput` accepts Input values and returns `Output` of the same result.

## Arguments

| Property     | Type     | Required | Description |
| ------------ | -------- | -------- | ----------- |
| `id`         | `string` | no       |             |
| `templateId` | `number` | yes      |             |

## Result

| Property      | Type     | Always present | Description |
| ------------- | -------- | -------------- | ----------- |
| `fileContent` | `string` | yes            |             |
| `id`          | `string` | yes            |             |
| `templateId`  | `number` | yes            |             |
