# getPolicyTemplate

> Function getPolicyTemplate in pulumi-portainer.

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

Function getPolicyTemplate in pulumi-portainer.

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

## 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.getPolicyTemplate()
```

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

## Arguments

| Property     | Type     | Required | Description |
| ------------ | -------- | -------- | ----------- |
| `id`         | `string` | no       |             |
| `name`       | `string` | no       |             |
| `templateId` | `string` | no       |             |

## Result

| Property      | Type     | Always present | Description |
| ------------- | -------- | -------------- | ----------- |
| `category`    | `string` | yes            |             |
| `data`        | `string` | yes            |             |
| `description` | `string` | yes            |             |
| `id`          | `string` | yes            |             |
| `name`        | `string` | no             |             |
| `policyType`  | `string` | yes            |             |
| `templateId`  | `string` | no             |             |
